diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-08-04 23:15:17 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-08-04 23:15:17 +0000 |
commit | 79edf873140b4ae2a693bd9400516977a3375d46 (patch) | |
tree | 932dbe0689fcbbc41bc99355a3da4c61e421c000 /Makefile | |
parent | 664624ac96373ccf03d2d91fee83ae020c5158d0 (diff) | |
download | master-187ad058-79edf873140b4ae2a693bd9400516977a3375d46.tar.gz master-187ad058-79edf873140b4ae2a693bd9400516977a3375d46.tar.bz2 master-187ad058-79edf873140b4ae2a693bd9400516977a3375d46.zip |
make package prereq checks behave more like build prereq checks (first check all, then fail if necessary), also make them less verbose
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12106 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -56,8 +56,19 @@ dirclean: clean rm -rf $(STAGING_DIR) $(STAGING_DIR_HOST) $(STAGING_DIR_TOOLCHAIN) $(TOOLCHAIN_DIR) $(BUILD_DIR_HOST) rm -rf $(TMP_DIR) +tmp/.prereq_packages: .config + unset ERROR; \ + for package in $(sort $(prereq-y) $(prereq-m)); do \ + $(NO_TRACE_MAKE) -s -r -C package/$$package prereq || ERROR=1; \ + done; \ + if [ -n "$$ERROR" ]; then \ + echo "Package prerequisite check failed."; \ + false; \ + fi + touch $@ + # check prerequisites before starting to build -prereq: $(package/stamp-prereq) $(target/stamp-prereq) ; +prereq: $(target/stamp-prereq) tmp/.prereq_packages prepare: .config $(tools/stamp-install) $(toolchain/stamp-install) world: prepare $(target/stamp-compile) $(package/stamp-cleanup) $(package/stamp-compile) $(package/stamp-install) $(package/stamp-rootfs-prepare) $(target/stamp-install) FORCE |