build: do not allow the SDK to reconfigure built-in kernel modules
authorFelix Fietkau <nbd@openwrt.org>
Fri, 8 Jan 2016 23:06:59 +0000 (23:06 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 8 Jan 2016 23:06:59 +0000 (23:06 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48155

include/scan.mk

index 5af035972f6822e445817fe8abad35d4fc4458c7..00cfe31fba8f4fa5bf3b9c355bc66d55d950572d 100644 (file)
@@ -26,8 +26,12 @@ define feedname
 $(if $(patsubst feeds/%,,$(1)),,$(word 2,$(subst /, ,$(1))))
 endef
 
+ifdef SDK
+  IGNORE_PACKAGES = linux
+endif
+
 define PackageDir
-  $(TMP_DIR)/.$(SCAN_TARGET): $(TMP_DIR)/info/.$(SCAN_TARGET)-$(1)
+  $(if $(filter $(addprefix %_,$(IGNORE_PACKAGES)),$(1)),,$(TMP_DIR)/.$(SCAN_TARGET): $(TMP_DIR)/info/.$(SCAN_TARGET)-$(1))
   $(TMP_DIR)/info/.$(SCAN_TARGET)-$(1): $(SCAN_DIR)/$(2)/Makefile $(SCAN_STAMP) $(foreach DEP,$(DEPS_$(SCAN_DIR)/$(2)/Makefile) $(SCAN_DEPS),$(wildcard $(if $(filter /%,$(DEP)),$(DEP),$(SCAN_DIR)/$(2)/$(DEP))))
        { \
                $$(call progress,Collecting $(SCAN_NAME) info: $(SCAN_DIR)/$(2)) \