summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-04 23:15:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-04 23:15:17 +0000
commit1b838dbd95b1e9facc58184b6327d8a844e1c9e8 (patch)
tree04c4d8213dd996fbc98c344955e60d1296cc9e9a /Makefile
parent72396bd614319492aeb28b3b802d073a53b896a6 (diff)
downloadmtk-20170518-1b838dbd95b1e9facc58184b6327d8a844e1c9e8.zip
mtk-20170518-1b838dbd95b1e9facc58184b6327d8a844e1c9e8.tar.gz
mtk-20170518-1b838dbd95b1e9facc58184b6327d8a844e1c9e8.tar.bz2
make package prereq checks behave more like build prereq checks (first check all, then fail if necessary), also make them less verbose
SVN-Revision: 12106
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 72b24d1..7e43b44 100644
--- a/Makefile
+++ b/Makefile
@@ -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