summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-07-02 14:23:19 +0200
committerFelix Fietkau <nbd@nbd.name>2018-07-02 14:27:06 +0200
commit29b2199eb084bb3d8a58f92d3b2256a4fb53fe51 (patch)
treea52f998b4e07544a812f5f9aa9d16b731804abe7 /include
parent516d995d6ada872701e05fab12c0655ea2025eca (diff)
downloadmtk-20170518-29b2199eb084bb3d8a58f92d3b2256a4fb53fe51.zip
mtk-20170518-29b2199eb084bb3d8a58f92d3b2256a4fb53fe51.tar.gz
mtk-20170518-29b2199eb084bb3d8a58f92d3b2256a4fb53fe51.tar.bz2
build: fix target metadata scan dependencies
Move SCAN_DEPS to scan.mk to eliminate redundancy with scripts/feeds Add image/*.mk to SCAN_DEPS for targets to pick up newly added devices Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include')
-rw-r--r--include/scan.mk6
-rw-r--r--include/toplevel.mk4
2 files changed, 8 insertions, 2 deletions
diff --git a/include/scan.mk b/include/scan.mk
index 86d9576..e6b21b2 100644
--- a/include/scan.mk
+++ b/include/scan.mk
@@ -12,6 +12,12 @@ OVERRIDELIST:=$(TMP_DIR)/info/.overrides-$(SCAN_TARGET)-$(SCAN_COOKIE)
export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
+ifeq ($(SCAN_NAME),target)
+ SCAN_DEPS=image/Makefile profiles/*.mk $(TOPDIR)/include/kernel*.mk $(TOPDIR)/include/target.mk image/*.mk
+else
+ SCAN_DEPS=$(TOPDIR)/include/package*.mk
+endif
+
ifeq ($(IS_TTY),1)
define progress
printf "\033[M\r$(1)" >&2;
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 3f5a750..b57dcd8 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -82,8 +82,8 @@ _ignore = $(foreach p,$(IGNORE_PACKAGES),--ignore $(p))
prepare-tmpinfo: FORCE
@+$(MAKE) -r -s staging_dir/host/.prereq-build $(PREP_MK)
mkdir -p tmp/info
- $(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="packageinfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPS="$(TOPDIR)/include/package*.mk" SCAN_DEPTH=5 SCAN_EXTRA=""
- $(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="targetinfo" SCAN_DIR="target/linux" SCAN_NAME="target" SCAN_DEPS="image/Makefile profiles/*.mk $(TOPDIR)/include/kernel*.mk $(TOPDIR)/include/target.mk" SCAN_DEPTH=2 SCAN_EXTRA="" SCAN_MAKEOPTS="TARGET_BUILD=1"
+ $(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="packageinfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPTH=5 SCAN_EXTRA=""
+ $(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="targetinfo" SCAN_DIR="target/linux" SCAN_NAME="target" SCAN_DEPTH=2 SCAN_EXTRA="" SCAN_MAKEOPTS="TARGET_BUILD=1"
for type in package target; do \
f=tmp/.$${type}info; t=tmp/.config-$${type}.in; \
[ "$$t" -nt "$$f" ] || ./scripts/$${type}-metadata.pl $(_ignore) config "$$f" > "$$t" || { rm -f "$$t"; echo "Failed to build $$t"; false; break; }; \