mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
build: get rid of FIND_L from host.mk
This was added for Mac OS X many years ago, but recent versions also
support find -L
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit be206eba3a
)
This commit is contained in:
parent
11cd6077ba
commit
acd481470c
@ -41,11 +41,6 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
|
|||||||
echo "HOST_OS:=$$HOST_OS" > $@; \
|
echo "HOST_OS:=$$HOST_OS" > $@; \
|
||||||
echo "HOST_ARCH:=$$HOST_ARCH" >> $@; \
|
echo "HOST_ARCH:=$$HOST_ARCH" >> $@; \
|
||||||
echo "GNU_HOST_NAME:=$$GNU_HOST_NAME" >> $@; \
|
echo "GNU_HOST_NAME:=$$GNU_HOST_NAME" >> $@; \
|
||||||
if gfind -L /dev/null || find -L /dev/null; then \
|
|
||||||
echo "FIND_L=find -L \$$(1)" >> $@; \
|
|
||||||
else \
|
|
||||||
echo "FIND_L=find \$$(1) -follow" >> $@; \
|
|
||||||
fi \
|
|
||||||
) >/dev/null 2>/dev/null
|
) >/dev/null 2>/dev/null
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -56,7 +56,7 @@ 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 -aHE 'call $(GREP_STRING)' | sed -e 's#^$(SCAN_DIR)/##' -e 's#/Makefile:.*##' | uniq | awk -v of=$(OVERRIDELIST) -f include/scan.awk > $@
|
find -L $(SCAN_DIR) $(SCAN_EXTRA) -mindepth 1 $(if $(SCAN_DEPTH),-maxdepth $(SCAN_DEPTH)) -name Makefile | xargs grep -aHE '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 New Issue
Block a user