|
@@ -1797,11 +1797,16 @@ ifneq ($(CONFIG_PACKAGE_kmod-cfg80211)$(CONFIG_PACKAGE_kmod-lib80211),)
|
|
|
endef
|
|
|
endif
|
|
|
|
|
|
-define Build/Configure
|
|
|
- cmp $(PKG_BUILD_DIR)/include/linux/ath9k_platform.h $(LINUX_DIR)/include/linux/ath9k_platform.h
|
|
|
- cmp $(PKG_BUILD_DIR)/include/linux/ath5k_platform.h $(LINUX_DIR)/include/linux/ath5k_platform.h
|
|
|
- cmp $(PKG_BUILD_DIR)/include/linux/rt2x00_platform.h $(LINUX_DIR)/include/linux/rt2x00_platform.h
|
|
|
-endef
|
|
|
+#do not Build/Configure for EXTERNAL KERNEL
|
|
|
+ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
|
|
|
+ ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"")
|
|
|
+ define Build/Configure
|
|
|
+ cmp $(PKG_BUILD_DIR)/include/linux/ath9k_platform.h $(LINUX_DIR)/include/linux/ath9k_platform.h
|
|
|
+ cmp $(PKG_BUILD_DIR)/include/linux/ath5k_platform.h $(LINUX_DIR)/include/linux/ath5k_platform.h
|
|
|
+ cmp $(PKG_BUILD_DIR)/include/linux/rt2x00_platform.h $(LINUX_DIR)/include/linux/rt2x00_platform.h
|
|
|
+ endef
|
|
|
+ endif
|
|
|
+endif
|
|
|
|
|
|
define Build/Compile
|
|
|
$(SH_FUNC) var2file "$(call shvar,mac80211_config)" $(PKG_BUILD_DIR)/.config
|