Changeset 44774


Ignore:
Timestamp:
2015-03-15T12:07:29+01:00 (3 years ago)
Author:
nbd
Message:

build: use different grep strings for scanning package vs target metadata

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/scan.mk

    r44335 r44774  
    4848        touch $@ 
    4949 
     50ifeq ($(SCAN_NAME),target) 
     51  GREP_STRING=BuildTarget 
     52else 
     53  GREP_STRING=(Build/DefaultTargets|BuildPackage|.+Package) 
     54endif 
     55 
    5056$(FILELIST): $(OVERRIDELIST) 
    5157        rm -f $(TMP_DIR)/info/.files-$(SCAN_TARGET)-* 
    52         $(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 > $@ 
     58        $(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 > $@ 
    5359 
    5460$(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST) 
Note: See TracChangeset for help on using the changeset viewer.