2016-02-29 14:26:19 +00:00
|
|
|
LICENSE := GPLv2
|
|
|
|
VERSION := 2
|
|
|
|
DOWNLOADS := dwc_otg.git usb.archive intel_fb.archive lxip.archive \
|
2018-04-23 13:45:47 +00:00
|
|
|
wifi.archive fec.archive libnl.archive wpa_supplicant.git \
|
2018-08-22 11:52:41 +00:00
|
|
|
fw.archive usb_host.archive dwc_otg_host.git usb_hid.archive \
|
|
|
|
usb_net.archive
|
2014-11-22 14:13:43 +00:00
|
|
|
|
2016-05-18 16:51:11 +00:00
|
|
|
#
|
2018-08-22 14:31:34 +00:00
|
|
|
# Tools
|
2016-05-18 16:51:11 +00:00
|
|
|
#
|
2018-08-22 14:31:34 +00:00
|
|
|
$(call check_tool,flex)
|
|
|
|
$(call check_tool,bison)
|
2016-05-18 16:51:11 +00:00
|
|
|
|
2018-08-22 14:31:34 +00:00
|
|
|
FLEX = flex
|
|
|
|
YACC = bison
|
2016-02-29 14:26:19 +00:00
|
|
|
|
2014-05-20 14:09:29 +00:00
|
|
|
#
|
|
|
|
# The git checkout checks for the existence of SRC_DIR, which is created by the
|
|
|
|
# Linux extraction, therefore make sure to checkout the GIT sources first.
|
|
|
|
#
|
2014-10-29 17:52:47 +00:00
|
|
|
usb.archive: dwc_otg.git
|
2018-08-22 14:31:34 +00:00
|
|
|
usb_host.archive: dwc_otg_host.git
|
|
|
|
|
2014-05-20 14:09:29 +00:00
|
|
|
|
|
|
|
#
|
2014-10-29 17:52:47 +00:00
|
|
|
# USB
|
2014-05-20 14:09:29 +00:00
|
|
|
#
|
2014-10-29 17:52:47 +00:00
|
|
|
SRC_DIR_USB := src/lib/usb
|
2016-05-18 16:51:11 +00:00
|
|
|
VERSION_USB := 4.4.3
|
2016-10-12 09:52:30 +00:00
|
|
|
URL(usb) := https://www.kernel.org/pub/linux/kernel/v4.x/linux-$(VERSION_USB).tar.xz
|
2018-05-07 14:45:50 +00:00
|
|
|
SHA(usb) := 0b379cb19bbd7e38fc5a9a000ea927db55cce519a7400ec7fa705c581a6491dd
|
2014-10-29 17:52:47 +00:00
|
|
|
DIR(usb) := $(SRC_DIR_USB)
|
2017-05-02 18:13:06 +00:00
|
|
|
TAR_OPT(usb) := --strip-components=1 --files-from - < <(sed 's/-x.x.x/-$(VERSION_USB)/g' $(REP_DIR)/usb.list)
|
2014-10-29 17:52:47 +00:00
|
|
|
HASH_INPUT += $(REP_DIR)/usb.list
|
|
|
|
|
2018-08-22 14:31:34 +00:00
|
|
|
#
|
|
|
|
# USB host controller
|
|
|
|
#
|
|
|
|
SRC_DIR_USB_HOST := src/drivers/usb_host
|
|
|
|
VERSION_USB_HOST := 4.16.3
|
|
|
|
URL(usb_host) := https://www.kernel.org/pub/linux/kernel/v4.x/linux-$(VERSION_USB_HOST).tar.xz
|
|
|
|
SHA(usb_host) := 0d6971a81da97e38b974c5eba31a74803bfe41aabc46d406c3acda56306c81a3
|
|
|
|
DIR(usb_host) := $(SRC_DIR_USB_HOST)
|
|
|
|
TAR_OPT(usb_host) := --strip-components=1 --files-from - < <(sed 's/-x.x.x/-$(VERSION_USB_HOST)/g' $(REP_DIR)/usb_host.list)
|
|
|
|
HASH_INPUT += $(REP_DIR)/usb_host.list
|
|
|
|
|
2018-06-19 13:09:56 +00:00
|
|
|
SRC_DIR_USB_HID := src/drivers/usb_hid
|
|
|
|
VERSION_USB_HID := 4.16.3
|
|
|
|
URL(usb_hid) := https://www.kernel.org/pub/linux/kernel/v4.x/linux-$(VERSION_USB_HID).tar.xz
|
|
|
|
SHA(usb_hid) := 0d6971a81da97e38b974c5eba31a74803bfe41aabc46d406c3acda56306c81a3
|
|
|
|
DIR(usb_hid) := $(SRC_DIR_USB_HID)
|
|
|
|
TAR_OPT(usb_hid) := --strip-components=1 --files-from - < <(sed 's/-x.x.x/-$(VERSION_USB_HID)/g' $(REP_DIR)/usb_hid.list)
|
|
|
|
HASH_INPUT += $(REP_DIR)/usb_hid.list
|
|
|
|
|
2018-08-22 11:52:41 +00:00
|
|
|
SRC_DIR_USB_NET := src/drivers/usb_net
|
|
|
|
VERSION_USB_NET := 4.16.3
|
|
|
|
URL(usb_net) := https://www.kernel.org/pub/linux/kernel/v4.x/linux-$(VERSION_USB_NET).tar.xz
|
|
|
|
SHA(usb_net) := 0d6971a81da97e38b974c5eba31a74803bfe41aabc46d406c3acda56306c81a3
|
|
|
|
DIR(usb_net) := $(SRC_DIR_USB_NET)
|
|
|
|
TAR_OPT(usb_net) := --strip-components=1 --files-from - < <(sed 's/-x.x.x/-$(VERSION_USB_NET)/g' $(REP_DIR)/usb_net.list)
|
|
|
|
HASH_INPUT += $(REP_DIR)/usb_net.list
|
|
|
|
|
2014-05-20 14:09:29 +00:00
|
|
|
#
|
|
|
|
# Raspberry Pi USB controller
|
|
|
|
#
|
2016-05-18 16:51:11 +00:00
|
|
|
URL(dwc_otg) := https://github.com/ssumpf/dwc_otg.git
|
|
|
|
REV(dwc_otg) := r3
|
2014-10-29 17:52:47 +00:00
|
|
|
DIR(dwc_otg) := $(SRC_DIR_USB)/drivers/usb/host/dwc_otg
|
|
|
|
|
2018-08-22 14:31:34 +00:00
|
|
|
URL(dwc_otg_host) := https://github.com/skalk/dwc_otg.git
|
|
|
|
REV(dwc_otg_host) := r4
|
|
|
|
DIR(dwc_otg_host) := $(SRC_DIR_USB_HOST)/drivers/usb/host
|
|
|
|
|
2016-02-29 14:26:19 +00:00
|
|
|
|
2015-09-09 14:21:19 +00:00
|
|
|
#
|
|
|
|
# Intel framebuffer driver
|
|
|
|
#
|
|
|
|
SRC_DIR_INTEL_FB := src/drivers/framebuffer/intel
|
2018-04-09 21:33:34 +00:00
|
|
|
VERSION_INTEL_FB := 4.16.3
|
2016-10-12 09:52:30 +00:00
|
|
|
URL(intel_fb) := https://www.kernel.org/pub/linux/kernel/v4.x/linux-$(VERSION_INTEL_FB).tar.xz
|
2018-04-09 21:33:34 +00:00
|
|
|
SHA(intel_fb) := 0d6971a81da97e38b974c5eba31a74803bfe41aabc46d406c3acda56306c81a3
|
2015-09-09 14:21:19 +00:00
|
|
|
DIR(intel_fb) := $(SRC_DIR_INTEL_FB)
|
2017-05-02 18:13:06 +00:00
|
|
|
TAR_OPT(intel_fb) := --strip-components=1 --files-from - < <(sed 's/-x.x.x/-$(VERSION_INTEL_FB)/g' $(REP_DIR)/intel_fb.list)
|
2015-09-09 14:21:19 +00:00
|
|
|
HASH_INPUT += $(REP_DIR)/intel_fb.list
|
|
|
|
|
2014-11-22 14:13:43 +00:00
|
|
|
#
|
2016-02-29 14:26:19 +00:00
|
|
|
# mac80211 stack, iwlwifi sources
|
2014-11-22 14:13:43 +00:00
|
|
|
#
|
|
|
|
SRC_DIR_WIFI := src/lib/wifi
|
2018-04-23 13:45:47 +00:00
|
|
|
VERSION_WIFI := 4.16.3
|
2016-10-12 09:52:30 +00:00
|
|
|
URL(wifi) := https://www.kernel.org/pub/linux/kernel/v4.x/linux-$(VERSION_WIFI).tar.xz
|
2018-04-23 13:45:47 +00:00
|
|
|
SHA(wifi) := 0d6971a81da97e38b974c5eba31a74803bfe41aabc46d406c3acda56306c81a3
|
2014-11-22 14:13:43 +00:00
|
|
|
DIR(wifi) := $(SRC_DIR_WIFI)
|
2017-05-02 18:13:06 +00:00
|
|
|
TAR_OPT(wifi) := --strip-components=1 --files-from - < <(sed 's/-x.x.x/-$(VERSION_WIFI)/g' $(REP_DIR)/wifi.list)
|
2014-11-22 14:13:43 +00:00
|
|
|
HASH_INPUT += $(REP_DIR)/wifi.list
|
2014-10-29 17:52:47 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# IP stack sources
|
|
|
|
#
|
|
|
|
SRC_DIR_LXIP := src/lib/lxip
|
2016-05-18 16:49:02 +00:00
|
|
|
VERSION_LXIP := 4.4.3
|
2016-10-12 09:52:30 +00:00
|
|
|
URL(lxip) := https://www.kernel.org/pub/linux/kernel/v4.x/linux-$(VERSION_LXIP).tar.xz
|
2018-05-07 14:45:50 +00:00
|
|
|
SHA(lxip) := 0b379cb19bbd7e38fc5a9a000ea927db55cce519a7400ec7fa705c581a6491dd
|
2014-10-29 17:52:47 +00:00
|
|
|
DIR(lxip) := $(SRC_DIR_LXIP)
|
2017-05-02 18:13:06 +00:00
|
|
|
TAR_OPT(lxip) := --strip-components=1 --files-from - < <(sed 's/-x.x.x/-$(VERSION_LXIP)/g' $(REP_DIR)/lxip.list)
|
2014-10-29 17:52:47 +00:00
|
|
|
HASH_INPUT += $(REP_DIR)/lxip.list
|
|
|
|
|
2017-11-01 14:49:47 +00:00
|
|
|
#
|
|
|
|
# Freescale Ethernet controller
|
|
|
|
#
|
|
|
|
SRC_DIR_FEC := src/drivers/nic/fec
|
2019-06-21 13:04:03 +00:00
|
|
|
VERSION_FEC := 4.16.3
|
2017-11-01 14:49:47 +00:00
|
|
|
URL(fec) := https://www.kernel.org/pub/linux/kernel/v4.x/linux-$(VERSION_FEC).tar.xz
|
2019-06-21 13:04:03 +00:00
|
|
|
SHA(fec) := 0d6971a81da97e38b974c5eba31a74803bfe41aabc46d406c3acda56306c81a3
|
2017-11-01 14:49:47 +00:00
|
|
|
DIR(fec) := $(SRC_DIR_FEC)
|
|
|
|
TAR_OPT(fec) := --strip-components=1 --files-from - < <(sed 's/-x.x.x/-$(VERSION_FEC)/g' $(REP_DIR)/fec.list)
|
|
|
|
HASH_INPUT += $(REP_DIR)/fec.list
|
2014-10-29 17:52:47 +00:00
|
|
|
|
2016-02-29 14:26:19 +00:00
|
|
|
#
|
2014-11-22 14:13:43 +00:00
|
|
|
# libnl sources
|
|
|
|
#
|
2017-05-04 09:06:03 +00:00
|
|
|
URL(libnl) := https://github.com/thom311/libnl/releases/download/libnl3_2_25/libnl-3.2.25.tar.gz
|
2018-05-07 14:45:50 +00:00
|
|
|
SHA(libnl) := 8beb7590674957b931de6b7f81c530b85dc7c1ad8fbda015398bc1e8d1ce8ec5
|
2014-11-22 14:13:43 +00:00
|
|
|
DIR(libnl) := src/lib/libnl
|
|
|
|
|
|
|
|
#
|
|
|
|
# wpa_supplicant sources
|
|
|
|
#
|
2018-04-23 13:45:47 +00:00
|
|
|
URL(wpa_supplicant) := git://w1.fi/srv/git/hostap.git
|
|
|
|
REV(wpa_supplicant) := 25bd4e7beb582509596fe60cb3591e1299f3121b
|
2014-11-22 14:13:43 +00:00
|
|
|
DIR(wpa_supplicant) := src/app/wpa_supplicant
|
|
|
|
|
2015-02-19 17:24:06 +00:00
|
|
|
#
|
2018-04-23 13:45:47 +00:00
|
|
|
# Firmware images
|
2015-02-19 17:24:06 +00:00
|
|
|
#
|
2019-09-23 15:24:34 +00:00
|
|
|
FW_REV := 83f7aa92f405048d4502e80c5390a9cbbd91a14f
|
2018-04-23 13:45:47 +00:00
|
|
|
URL(fw) := https://github.com/cnuke/dde_linux_firmware/archive/$(FW_REV).tar.gz
|
2019-09-23 15:24:34 +00:00
|
|
|
SHA(fw) := 507711b75436f9b46ce126c9cfb043e2404b266517ec51061939618de1758c98
|
2018-04-23 13:45:47 +00:00
|
|
|
DIR(fw) := firmware
|
2016-02-29 14:26:19 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Patches
|
|
|
|
#
|
2018-04-23 13:45:47 +00:00
|
|
|
PATCHES := $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/wpa*.patch)))
|
2016-02-29 14:26:19 +00:00
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/libnl*.patch)))
|
2018-04-23 13:45:47 +00:00
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/wifi*.patch)))
|
2016-02-29 14:26:19 +00:00
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/lxip*.patch)))
|
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/intel*.patch)))
|
2018-08-22 14:31:34 +00:00
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/usb_host*.patch)))
|
2016-02-29 14:26:19 +00:00
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/usb*.patch)))
|
2016-03-22 10:04:07 +00:00
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/intel*.patch)))
|
2017-11-01 14:49:47 +00:00
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/fec_*.patch)))
|
2018-06-19 13:09:56 +00:00
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/usb_hid*.patch)))
|
2014-05-20 14:09:29 +00:00
|
|
|
|
2014-11-22 14:13:43 +00:00
|
|
|
#IP stack
|
2014-10-29 17:52:47 +00:00
|
|
|
LXIP_OPT = -p1 -d$(SRC_DIR_LXIP)
|
2016-05-18 16:49:02 +00:00
|
|
|
PATCH_OPT(patches/lxip_icmp.patch) := $(LXIP_OPT)
|
|
|
|
PATCH_OPT(patches/lxip_ip_config.patch) := $(LXIP_OPT)
|
|
|
|
PATCH_OPT(patches/lxip_netlink.patch) := $(LXIP_OPT)
|
|
|
|
PATCH_OPT(patches/lxip_request_sock.patch) := $(LXIP_OPT)
|
|
|
|
PATCH_OPT(patches/lxip_sk_wq.patch) := $(LXIP_OPT)
|
|
|
|
PATCH_OPT(patches/lxip_skbuff_cast.patch) := $(LXIP_OPT)
|
2014-05-20 14:09:29 +00:00
|
|
|
|
2014-11-22 14:13:43 +00:00
|
|
|
# WIFI
|
|
|
|
WIFI_OPT = -p1 -d$(SRC_DIR_WIFI)
|
2016-02-29 14:26:19 +00:00
|
|
|
PATCH_OPT(patches/wifi.patch) := $(WIFI_OPT)
|
|
|
|
PATCH_OPT(patches/wifi_mem.patch) := $(WIFI_OPT)
|
2018-07-04 15:13:16 +00:00
|
|
|
PATCH_OPT(patches/wifi_rfkill.patch) := $(WIFI_OPT)
|
2014-11-22 14:13:43 +00:00
|
|
|
|
|
|
|
# libnl
|
|
|
|
PATCH_OPT(patches/libnl.patch) := -p1 -d ${DIR(libnl)}
|
|
|
|
|
|
|
|
# WPA supplicant
|
|
|
|
PATCH_OPT(patches/wpa_supplicant.patch) := -p1 -d ${DIR(wpa_supplicant)}
|
|
|
|
|
2016-02-29 14:26:19 +00:00
|
|
|
# USB
|
|
|
|
USB_OPT = -p1 -d$(SRC_DIR_USB)
|
|
|
|
PATCH_OPT(patches/usb_ax88179.patch) := $(USB_OPT)
|
|
|
|
PATCH_OPT(patches/usb_csum.patch) := $(USB_OPT)
|
|
|
|
PATCH_OPT(patches/usb_evdev.patch) := $(USB_OPT)
|
2018-10-19 14:08:10 +00:00
|
|
|
PATCH_OPT(patches/usb_input_mt.patch) := $(USB_OPT)
|
2016-02-29 14:26:19 +00:00
|
|
|
PATCH_OPT(patches/usb_mem.patch) := $(USB_OPT)
|
|
|
|
PATCH_OPT(patches/usb_usbnet.patch) := $(USB_OPT)
|
2017-10-18 12:01:12 +00:00
|
|
|
PATCH_OPT(patches/usb_rndis.patch) := $(USB_OPT)
|
2018-06-28 13:05:38 +00:00
|
|
|
PATCH_OPT(patches/usb_tv64.patch) := $(USB_OPT)
|
2016-02-29 14:26:19 +00:00
|
|
|
|
2018-08-22 14:31:34 +00:00
|
|
|
# USB HOST
|
|
|
|
USB_HOST_OPT = -p1 -d$(SRC_DIR_USB_HOST)
|
|
|
|
PATCH_OPT(patches/usb_host_mem.patch) := $(USB_HOST_OPT)
|
|
|
|
PATCH_OPT(patches/usb_host_omap.patch) := $(USB_HOST_OPT)
|
|
|
|
|
2018-06-19 13:09:56 +00:00
|
|
|
# USB HID
|
|
|
|
USB_HID_OPT = -p1 -d$(SRC_DIR_USB_HID)
|
|
|
|
PATCH_OPT(patches/usb_hid_usbhid.patch) := $(USB_HID_OPT)
|
|
|
|
PATCH_OPT(patches/usb_hid_wacom_sys.patch) := $(USB_HID_OPT)
|
|
|
|
PATCH_OPT(patches/usb_hid_evdev.patch) := $(USB_HID_OPT)
|
|
|
|
|
2018-08-22 11:52:41 +00:00
|
|
|
# USB NET
|
|
|
|
USB_NET_OPT = -p1 -d$(SRC_DIR_USB_NET)
|
|
|
|
PATCH_OPT(patches/usb_net_skbuff_cast.patch) := $(USB_NET_OPT)
|
|
|
|
|
2016-03-22 10:04:07 +00:00
|
|
|
# INTEL FB
|
2018-04-09 21:33:34 +00:00
|
|
|
PATCH_OPT(patches/intel_fb_backlight.patch) := -p1 -d$(SRC_DIR_INTEL_FB)
|
|
|
|
PATCH_OPT(patches/intel_fb_drm.patch) := -p1 -d$(SRC_DIR_INTEL_FB)
|
|
|
|
PATCH_OPT(patches/intel_fb_early.patch) := -p1 -d$(SRC_DIR_INTEL_FB)
|
|
|
|
# drop it when https://bugs.freedesktop.org/show_bug.cgi?id=107125 gets fixed
|
|
|
|
PATCH_OPT(patches/intel_fb_hotplug.patch) := -p1 -d$(SRC_DIR_INTEL_FB)
|
2016-03-22 10:04:07 +00:00
|
|
|
|
2017-11-01 14:49:47 +00:00
|
|
|
# Freescale NIC
|
|
|
|
PATCH_OPT(patches/fec_skbuff_cast.patch) := -p1 -d$(SRC_DIR_FEC)
|
2018-04-09 12:43:29 +00:00
|
|
|
PATCH_OPT(patches/fec_tx_bounce_dma.patch) := -p1 -d$(SRC_DIR_FEC)
|
2019-06-21 13:04:03 +00:00
|
|
|
PATCH_OPT(patches/fec_ndev_owner.patch) := -p1 -d$(SRC_DIR_FEC)
|
2017-11-01 14:49:47 +00:00
|
|
|
|
2014-05-20 14:09:29 +00:00
|
|
|
# vi: set ft=make :
|