• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

build


Commit MetaInfo

Revisionb4510de5db7ae52112ce1ce316f28e7e2672457e (tree)
Time2016-01-24 02:04:25
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

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

Change Summary

Incremental Difference

--- a/core/tasks/kernel.mk
+++ b/core/tasks/kernel.mk
@@ -75,17 +75,7 @@ $(BUILT_SYSTEMIMAGE): $(KERNEL_MODULES_DEP)
7575 # rules to get source of Broadcom 802.11a/b/g/n hybrid device driver
7676 # based on broadcomsetup.sh of Kyle Evans
7777 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
8979
9080 installclean: FILES += $(KBUILD_OUTPUT) $(INSTALLED_KERNEL_TARGET)
9181