mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 19:01:54 +02:00
fix the sdk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6718 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
73b719b1c6
commit
2db90bec77
@ -40,12 +40,8 @@ $(STAMP_DIR) $(TARGET_DIR):
|
|||||||
%-clean: FORCE
|
%-clean: FORCE
|
||||||
$(MAKE) -C $(patsubst %-clean,%,$@) clean
|
$(MAKE) -C $(patsubst %-clean,%,$@) clean
|
||||||
|
|
||||||
ifeq ($(SDK),1)
|
|
||||||
GENDEP_OPTS := -s
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(TMP_DIR)/.pkgdeps: $(TMP_DIR)/.pkginfo
|
$(TMP_DIR)/.pkgdeps: $(TMP_DIR)/.pkginfo
|
||||||
@$(TOPDIR)/scripts/metadata.pl package_mk $(GENDEP_OPTS) < $< > $@ || rm -f $@
|
@$(TOPDIR)/scripts/metadata.pl package_mk < $< > $@ || rm -f $@
|
||||||
|
|
||||||
preconfig:
|
preconfig:
|
||||||
clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
|
clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
|
||||||
|
@ -33,21 +33,38 @@ export DEVELOPER
|
|||||||
SDK=1
|
SDK=1
|
||||||
export SDK
|
export SDK
|
||||||
|
|
||||||
|
export IS_TTY=$(shell tty -s && echo 1 || echo 0)
|
||||||
|
include $(TOPDIR)/include/verbose.mk
|
||||||
|
|
||||||
all: world
|
all: world
|
||||||
|
|
||||||
.pkginfo: FORCE
|
define stamp
|
||||||
ifneq ($(shell ./scripts/timestamp.pl -p .pkginfo package Makefile),.pkginfo)
|
tmp/info/.stamp-$(1)-$(shell ls $(2)/*/Makefile $(5) | (md5sum || md5) 2>/dev/null | cut -d' ' -f1)
|
||||||
@echo Collecting package info...
|
endef
|
||||||
@-for dir in package/*/; do \
|
|
||||||
echo Source-Makefile: $${dir}Makefile; \
|
|
||||||
$(MAKE) --no-print-dir DUMP=1 -C $$dir 2>&- || true; \
|
|
||||||
done > $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
pkginfo-clean: FORCE
|
STAMP=$(call stamp,pkginfo,package)
|
||||||
-rm -f .pkginfo .config.in
|
|
||||||
|
|
||||||
package/%: .pkginfo FORCE
|
$(STAMP):
|
||||||
|
@mkdir -p tmp/info
|
||||||
|
@rm -f tmp/info/.stamp-pkginfo*
|
||||||
|
@touch $@
|
||||||
|
|
||||||
|
define filedep
|
||||||
|
$(foreach FILE,$(shell ls package/*/Makefile),
|
||||||
|
tmp/.pkginfo: $(FILE)
|
||||||
|
$(FILE):
|
||||||
|
@true
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(filedep))
|
||||||
|
|
||||||
|
tmp/.pkginfo: $(STAMP)
|
||||||
|
@echo -n Collecting package info...
|
||||||
|
@$(NO_TRACE_MAKE) -s -f include/scan.mk SCAN_TARGET="pkginfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPS=""
|
||||||
|
|
||||||
|
package/%: FORCE
|
||||||
|
@$(NO_TRACE_MAKE) -s tmp/.pkginfo
|
||||||
$(MAKE) -C package $(patsubst package/%,%,$@) SDK=1
|
$(MAKE) -C package $(patsubst package/%,%,$@) SDK=1
|
||||||
|
|
||||||
download: FORCE
|
download: FORCE
|
||||||
|
Loading…
Reference in New Issue
Block a user