build
Révision | b4510de5db7ae52112ce1ce316f28e7e2672457e (tree) |
---|---|
l'heure | 2016-01-24 02:04:25 |
Auteur | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
kernel.mk: split wl driver rules into another makefile
Two purposes for this change:
* Centralize the wl related files into the wl subdirectory
* Can simply ignore wl driver on porting new kernel
@@ -75,17 +75,7 @@ $(BUILT_SYSTEMIMAGE): $(KERNEL_MODULES_DEP) | ||
75 | 75 | # rules to get source of Broadcom 802.11a/b/g/n hybrid device driver |
76 | 76 | # based on broadcomsetup.sh of Kyle Evans |
77 | 77 | WL_PATH := $(KERNEL_DIR)/drivers/net/wireless/wl |
78 | -WL_ENABLED := $(if $(wildcard $(WL_PATH)),$(shell grep ^CONFIG_WL=[my] $(KERNEL_CONFIG_FILE))) | |
79 | -WL_ARCH_CHANGED := $(if $(shell file $(WL_PATH)/lib/wlc_hybrid.o_shipped | grep -s $(if $(filter x86,$(TARGET_KERNEL_ARCH)),80386,x86-64)),,FORCE) | |
80 | -WL_SRC := $(WL_PATH)/hybrid-v35$(if $(filter x86,$(TARGET_KERNEL_ARCH)),,_64)-nodebug-pcoem-6_30_223_248.tar.gz | |
81 | -$(WL_SRC): | |
82 | - @echo Downloading $(@F)... | |
83 | - $(hide) curl http://www.broadcom.com/docs/linux_sta/$(@F) > $@ | |
84 | -$(WL_PATH)/Makefile : $(WL_SRC) $(wildcard $(WL_PATH)/*.patch) $(WL_ARCH_CHANGED) $(KERNEL_ARCH_CHANGED) | |
85 | - $(hide) tar zxf $< -C $(@D) --overwrite && \ | |
86 | - patch -p5 -d $(@D) -i wl.patch && \ | |
87 | - patch -p1 -d $(@D) -i linux-recent.patch | |
88 | -$(INSTALLED_KERNEL_TARGET): $(if $(WL_ENABLED),$(WL_PATH)/Makefile) | |
78 | +-include $(WL_PATH)/build.mk | |
89 | 79 | |
90 | 80 | installclean: FILES += $(KBUILD_OUTPUT) $(INSTALLED_KERNEL_TARGET) |
91 | 81 |