-
-
Notifications
You must be signed in to change notification settings - Fork 270
/
Copy pathlinux-patcher.mk
33 lines (27 loc) · 993 Bytes
/
linux-patcher.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
################################################################################
#
# linux-patcher
#
################################################################################
export UIMAGE_NAME = Linux-$(LINUX_VERSION_PROBED)-$(OPENIPC_SOC_MODEL)
# Exclude buildroot yylloc patches
LINUX_POST_PATCH_HOOKS = LINUX_APPLY_LOCAL_PATCHES
ifeq ($(BR2_PACKAGE_LINUX_PATCHER_ATHEROS),y)
define LINUX_PATCHER_CONFIG_ATHEROS
$(call KCONFIG_ENABLE_OPT,CONFIG_FW_LOADER)
$(call KCONFIG_ENABLE_OPT,CONFIG_WLAN)
$(call KCONFIG_SET_OPT,CONFIG_MAC80211,m)
$(call KCONFIG_SET_OPT,CONFIG_ATH9K,m)
$(call KCONFIG_SET_OPT,CONFIG_ATH9K_HTC,m)
endef
endif
ifneq ($(BR2_PACKAGE_LINUX_PATCHER_SIGMASTAR_DTB),"")
define LINUX_PATCHER_CONFIG_SIGMASTAR_DTB
$(call KCONFIG_SET_OPT,CONFIG_SS_DTB_NAME,$(BR2_PACKAGE_LINUX_PATCHER_SIGMASTAR_DTB))
endef
endif
define LINUX_PATCHER_LINUX_CONFIG_FIXUPS
$(LINUX_PATCHER_CONFIG_ATHEROS)
$(LINUX_PATCHER_CONFIG_SIGMASTAR_DTB)
endef
$(eval $(generic-package))