build: use different grep strings for scanning package vs target metadata
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44774
This commit is contained in:
parent
1592f3f607
commit
50a5a8df22
1 changed files with 7 additions and 1 deletions
|
@ -47,9 +47,15 @@ $(OVERRIDELIST):
|
||||||
rm -f $(TMP_DIR)/info/.overrides-$(SCAN_TARGET)-*
|
rm -f $(TMP_DIR)/info/.overrides-$(SCAN_TARGET)-*
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
ifeq ($(SCAN_NAME),target)
|
||||||
|
GREP_STRING=BuildTarget
|
||||||
|
else
|
||||||
|
GREP_STRING=(Build/DefaultTargets|BuildPackage|.+Package)
|
||||||
|
endif
|
||||||
|
|
||||||
$(FILELIST): $(OVERRIDELIST)
|
$(FILELIST): $(OVERRIDELIST)
|
||||||
rm -f $(TMP_DIR)/info/.files-$(SCAN_TARGET)-*
|
rm -f $(TMP_DIR)/info/.files-$(SCAN_TARGET)-*
|
||||||
$(call FIND_L, $(SCAN_DIR)) $(SCAN_EXTRA) -mindepth 1 $(if $(SCAN_DEPTH),-maxdepth $(SCAN_DEPTH)) -name Makefile | xargs grep -HE 'call (Build/DefaultTargets|Build(Package|Target)|.+Package)' | sed -e 's#^$(SCAN_DIR)/##' -e 's#/Makefile:.*##' | uniq | awk -v of=$(OVERRIDELIST) -f include/scan.awk > $@
|
$(call FIND_L, $(SCAN_DIR)) $(SCAN_EXTRA) -mindepth 1 $(if $(SCAN_DEPTH),-maxdepth $(SCAN_DEPTH)) -name Makefile | xargs grep -HE 'call $(GREP_STRING)' | sed -e 's#^$(SCAN_DIR)/##' -e 's#/Makefile:.*##' | uniq | awk -v of=$(OVERRIDELIST) -f include/scan.awk > $@
|
||||||
|
|
||||||
$(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST)
|
$(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST)
|
||||||
( \
|
( \
|
||||||
|
|
Loading…
Reference in a new issue