2016-02-29 14:26:19 +00:00
|
|
|
LICENSE := GPLv2
|
2023-05-25 06:16:15 +00:00
|
|
|
VERSION := individual (see sources)
|
2023-07-12 15:24:24 +00:00
|
|
|
DOWNLOADS := lxip.archive usb_hid.archive usb_modem.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
|
|
|
|
2018-08-22 14:31:34 +00:00
|
|
|
|
2018-06-19 13:09:56 +00:00
|
|
|
SRC_DIR_USB_HID := src/drivers/usb_hid
|
2023-05-25 06:16:15 +00:00
|
|
|
VERSION(usb_hid) := 4.16.3
|
|
|
|
URL(usb_hid) := https://www.kernel.org/pub/linux/kernel/v4.x/linux-${VERSION(usb_hid)}.tar.xz
|
2018-06-19 13:09:56 +00:00
|
|
|
SHA(usb_hid) := 0d6971a81da97e38b974c5eba31a74803bfe41aabc46d406c3acda56306c81a3
|
|
|
|
DIR(usb_hid) := $(SRC_DIR_USB_HID)
|
2023-05-25 06:16:15 +00:00
|
|
|
TAR_OPT(usb_hid) := --strip-components=1 --files-from - < <(sed 's/-x.x.x/-${VERSION(usb_hid)}/g' $(REP_DIR)/usb_hid.list)
|
2018-06-19 13:09:56 +00:00
|
|
|
HASH_INPUT += $(REP_DIR)/usb_hid.list
|
|
|
|
|
2018-08-22 11:52:41 +00:00
|
|
|
SRC_DIR_USB_NET := src/drivers/usb_net
|
2023-05-25 06:16:15 +00:00
|
|
|
VERSION(usb_net) := 4.16.3
|
|
|
|
URL(usb_net) := https://www.kernel.org/pub/linux/kernel/v4.x/linux-${VERSION(usb_net)}.tar.xz
|
2018-08-22 11:52:41 +00:00
|
|
|
SHA(usb_net) := 0d6971a81da97e38b974c5eba31a74803bfe41aabc46d406c3acda56306c81a3
|
|
|
|
DIR(usb_net) := $(SRC_DIR_USB_NET)
|
2023-05-25 06:16:15 +00:00
|
|
|
TAR_OPT(usb_net) := --strip-components=1 --files-from - < <(sed 's/-x.x.x/-${VERSION(usb_net)}/g' $(REP_DIR)/usb_net.list)
|
2018-08-22 11:52:41 +00:00
|
|
|
HASH_INPUT += $(REP_DIR)/usb_net.list
|
|
|
|
|
2020-07-09 13:10:21 +00:00
|
|
|
SRC_DIR_USB_MODEM := src/drivers/usb_modem
|
2023-05-25 06:16:15 +00:00
|
|
|
VERSION(usb_modem) := 4.16.3
|
|
|
|
URL(usb_modem) := https://www.kernel.org/pub/linux/kernel/v4.x/linux-${VERSION(usb_modem)}.tar.xz
|
2020-07-09 13:10:21 +00:00
|
|
|
SHA(usb_modem) := 0d6971a81da97e38b974c5eba31a74803bfe41aabc46d406c3acda56306c81a3
|
|
|
|
DIR(usb_modem) := $(SRC_DIR_USB_MODEM)
|
2023-05-25 06:16:15 +00:00
|
|
|
TAR_OPT(usb_modem) := --strip-components=1 --files-from - < <(sed 's/-x.x.x/-${VERSION(usb_modem)}/g' $(REP_DIR)/usb_modem.list)
|
2020-07-09 13:10:21 +00:00
|
|
|
HASH_INPUT += $(REP_DIR)/usb_modem.list
|
|
|
|
|
2014-10-29 17:52:47 +00:00
|
|
|
#
|
|
|
|
# IP stack sources
|
|
|
|
#
|
|
|
|
SRC_DIR_LXIP := src/lib/lxip
|
2023-05-25 06:16:15 +00:00
|
|
|
VERSION(lxip) := 4.4.3
|
|
|
|
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)
|
2023-05-25 06:16:15 +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
|
|
|
#
|
|
|
|
# Patches
|
|
|
|
#
|
2023-03-06 06:28:40 +00:00
|
|
|
PATCHES += patches/lxip_icmp.patch
|
|
|
|
PATCHES += patches/lxip_ip_config.patch
|
|
|
|
PATCHES += patches/lxip_log2.patch
|
|
|
|
PATCHES += patches/lxip_netlink.patch
|
|
|
|
PATCHES += patches/lxip_request_sock.patch
|
|
|
|
PATCHES += patches/lxip_sk_wq.patch
|
|
|
|
PATCHES += patches/lxip_skbuff_cast.patch
|
|
|
|
PATCHES += patches/usb_hid_evdev.patch
|
|
|
|
PATCHES += patches/usb_hid_hid.patch
|
|
|
|
PATCHES += patches/usb_hid_input.patch
|
|
|
|
PATCHES += patches/usb_hid_usbhid.patch
|
|
|
|
PATCHES += patches/usb_hid_wacom_sys.patch
|
|
|
|
PATCHES += patches/usb_modem_skbuff_cast.patch
|
|
|
|
PATCHES += patches/usb_net_skbuff_cast.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)
|
2020-01-03 14:52:14 +00:00
|
|
|
PATCH_OPT(patches/lxip_log2.patch) := $(LXIP_OPT)
|
2016-05-18 16:49:02 +00:00
|
|
|
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
|
|
|
|
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)
|
2021-02-01 04:46:11 +00:00
|
|
|
PATCH_OPT(patches/usb_hid_hid.patch) := $(USB_HID_OPT)
|
|
|
|
PATCH_OPT(patches/usb_hid_input.patch) := $(USB_HID_OPT)
|
2018-06-19 13:09:56 +00:00
|
|
|
|
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)
|
|
|
|
|
2020-07-09 13:10:21 +00:00
|
|
|
# USB MODEM
|
|
|
|
USB_MODEM_OPT = -p1 -d$(SRC_DIR_USB_MODEM)
|
|
|
|
PATCH_OPT(patches/usb_modem_skbuff_cast.patch) := $(USB_MODEM_OPT)
|
|
|
|
|
2014-05-20 14:09:29 +00:00
|
|
|
# vi: set ft=make :
|