2016-02-29 14:26:19 +00:00
|
|
|
LICENSE := GPLv2
|
|
|
|
VERSION := 2
|
|
|
|
DOWNLOADS := dwc_otg.git usb.archive intel_fb.archive lxip.archive \
|
|
|
|
wifi.archive libnl.archive wpa_supplicant.archive \
|
|
|
|
fw_6000.archive fw_6205a.archive fw_6205b.archive fw_7260.archive \
|
|
|
|
fw_7265.archive fw_8260.archive
|
2014-11-22 14:13:43 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Tools
|
|
|
|
#
|
2014-12-05 10:00:15 +00:00
|
|
|
$(call check_tool,flex)
|
|
|
|
$(call check_tool,bison)
|
|
|
|
|
|
|
|
FLEX = flex
|
|
|
|
YACC = bison
|
2014-05-20 14:09:29 +00:00
|
|
|
|
2016-05-18 16:51:11 +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.
|
|
|
|
#
|
|
|
|
usb.archive: dwc_otg.git
|
|
|
|
|
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
|
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
|
2016-05-18 16:51:11 +00:00
|
|
|
SHA(usb) := 336d66925a15ce9077cbf2c38acbdc6c2644e33f
|
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
|
|
|
|
|
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
|
|
|
|
|
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
|
2016-03-22 10:04:07 +00:00
|
|
|
VERSION_INTEL_FB := 4.4.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
|
2016-03-22 10:04:07 +00:00
|
|
|
SHA(intel_fb) := 336d66925a15ce9077cbf2c38acbdc6c2644e33f
|
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
|
2016-05-18 16:49:02 +00:00
|
|
|
VERSION_WIFI := 4.4.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
|
2016-02-29 14:26:19 +00:00
|
|
|
SHA(wifi) := 336d66925a15ce9077cbf2c38acbdc6c2644e33f
|
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
|
2016-05-18 16:49:02 +00:00
|
|
|
SHA(lxip) := 336d66925a15ce9077cbf2c38acbdc6c2644e33f
|
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
|
|
|
|
|
|
|
|
|
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
|
2014-11-22 14:13:43 +00:00
|
|
|
SHA(libnl) := b7a4981f7edf7398256d35fd3c0b87bc84ae27d1
|
|
|
|
DIR(libnl) := src/lib/libnl
|
|
|
|
|
|
|
|
|
|
|
|
default: generate_libnl_files
|
|
|
|
generate_libnl_files: $(DOWNLOADS)
|
|
|
|
@$(MSG_PREFIX)"generate libnl files "
|
|
|
|
$(VERBOSE)$(FLEX) --header-file=${DIR(libnl)}/lib/route/pktloc_grammar.h \
|
|
|
|
-o ${DIR(libnl)}/lib/route/pktloc_grammar.c \
|
|
|
|
${DIR(libnl)}/lib/route/pktloc_grammar.l
|
|
|
|
$(VERBOSE)$(YACC) -d -o ${DIR(libnl)}/lib/route/pktloc_syntax.c \
|
|
|
|
${DIR(libnl)}/lib/route/pktloc_syntax.y
|
|
|
|
$(VERBOSE)$(FLEX) --header-file=${DIR(libnl)}/lib/route/cls/ematch_grammar.h \
|
|
|
|
-o ${DIR(libnl)}/lib/route/cls/ematch_grammar.c \
|
|
|
|
${DIR(libnl)}/lib/route/cls/ematch_grammar.l
|
|
|
|
$(VERBOSE)$(YACC) -d -o ${DIR(libnl)}/lib/route/cls/ematch_syntax.c \
|
|
|
|
${DIR(libnl)}/lib/route/cls/ematch_syntax.y
|
|
|
|
|
|
|
|
#
|
|
|
|
# wpa_supplicant sources
|
|
|
|
#
|
2016-10-12 09:52:30 +00:00
|
|
|
URL(wpa_supplicant) := https://w1.fi/releases/wpa_supplicant-2.2.tar.gz
|
2014-11-22 14:13:43 +00:00
|
|
|
SHA(wpa_supplicant) := 0c2ff4fd2e2f6325147cca0357d6c9f524efa26a
|
|
|
|
DIR(wpa_supplicant) := src/app/wpa_supplicant
|
|
|
|
|
2015-02-19 17:24:06 +00:00
|
|
|
#
|
|
|
|
# Firmware images for iwlwifi Ultimate-N 6300 and Advanced-N 6200
|
|
|
|
#
|
2016-02-29 14:26:19 +00:00
|
|
|
URL(fw_6000) := https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-6000-ucode-9.221.4.1.tgz
|
|
|
|
SHA(fw_6000) := a888cf54974702594e82bcbfca20c26d8f906e9f
|
|
|
|
DIR(fw_6000) := firmware
|
2015-02-19 17:24:06 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Firmware images for iwlwifi Advanced-N 6205
|
|
|
|
#
|
2016-02-29 14:26:19 +00:00
|
|
|
URL(fw_6205a) := https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-6000g2a-ucode-18.168.6.1.tgz
|
|
|
|
SHA(fw_6205a) := a542c82dba96e0bfb1b0e01817a59575c5c87fc4
|
|
|
|
DIR(fw_6205a) := firmware
|
2015-02-19 17:24:06 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Firmware images for iwlwifi Advanced-N 6230 / 6235 and Wireless-N 130 / 1030
|
|
|
|
#
|
2016-02-29 14:26:19 +00:00
|
|
|
URL(fw_6205b) := https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-6000g2b-ucode-18.168.6.1.tgz
|
|
|
|
SHA(fw_6205b) := f4c72b75ae8415661182d63154234dc0a55bc3db
|
|
|
|
DIR(fw_6205b) := firmware
|
2015-02-19 17:24:06 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Firmware images for iwlwifi Wireless 7260
|
|
|
|
#
|
2016-02-29 14:26:19 +00:00
|
|
|
URL(fw_7260) := https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-7260-ucode-16.242414.0.tgz
|
|
|
|
SHA(fw_7260) := e167ae4d3ed5ac5ca4d8b5f154d47324809717e6
|
|
|
|
DIR(fw_7260) := firmware
|
2015-02-19 17:24:06 +00:00
|
|
|
|
2015-09-04 12:08:14 +00:00
|
|
|
#
|
|
|
|
# Firmware images for iwlwifi Wireless 7265
|
|
|
|
#
|
2016-02-29 14:26:19 +00:00
|
|
|
URL(fw_7265) := https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-7265-ucode-16.242414.0.tgz
|
|
|
|
SHA(fw_7265) := 2a408809f51d552aa2c5d26c9a582d7729ce612b
|
|
|
|
DIR(fw_7265) := firmware
|
2015-09-04 12:08:14 +00:00
|
|
|
|
2014-10-29 17:52:47 +00:00
|
|
|
#
|
2016-02-29 14:26:19 +00:00
|
|
|
# Firmware images for iwlwifi Wireless 8260
|
2014-10-29 17:52:47 +00:00
|
|
|
#
|
2016-02-29 14:26:19 +00:00
|
|
|
URL(fw_8260) := https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-8000-ucode-16.242414.0.tgz
|
|
|
|
SHA(fw_8260) := ec5ee829aeebab93e1228848a7675e4469ab3ce2
|
|
|
|
DIR(fw_8260) := firmware
|
2014-10-29 17:52:47 +00:00
|
|
|
|
2016-02-29 14:26:19 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Patches
|
|
|
|
#
|
|
|
|
PATCHES := $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/w*.patch)))
|
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/libnl*.patch)))
|
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/lxip*.patch)))
|
|
|
|
PATCHES += $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/intel*.patch)))
|
|
|
|
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)))
|
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)
|
2014-11-22 14:13:43 +00:00
|
|
|
PATCH_OPT(patches/wifi_crypto.patch) := $(WIFI_OPT)
|
2016-02-29 14:26:19 +00:00
|
|
|
PATCH_OPT(patches/wifi_mem.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)
|
|
|
|
PATCH_OPT(patches/usb_mem.patch) := $(USB_OPT)
|
|
|
|
PATCH_OPT(patches/usb_usbnet.patch) := $(USB_OPT)
|
|
|
|
|
2016-03-22 10:04:07 +00:00
|
|
|
# INTEL FB
|
|
|
|
PATCH_OPT(patches/intel_fb_export_api.patch) := -p1 -d$(SRC_DIR_INTEL_FB)
|
2016-10-18 14:14:46 +00:00
|
|
|
PATCH_OPT(patches/intel_fb_drm_remove.patch) := -p1 -d$(SRC_DIR_INTEL_FB)
|
2017-09-08 11:18:32 +00:00
|
|
|
PATCH_OPT(patches/intel_fb_backlight.patch) := -p1 -d$(SRC_DIR_INTEL_FB)
|
2016-03-22 10:04:07 +00:00
|
|
|
|
2014-05-20 14:09:29 +00:00
|
|
|
# vi: set ft=make :
|