aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-08-16 23:43:56 +0000
committerMike Baker <mbm@openwrt.org>2006-08-16 23:43:56 +0000
commit803b055b9df6fa16a34605088107284c1bc6d2b2 (patch)
treec9457b64d32f6334d785fffa7c04de7f2048e59b
parent7452de6bd914d2c9d41b23063491f98aae7da169 (diff)
downloadupstream-803b055b9df6fa16a34605088107284c1bc6d2b2.tar.gz
upstream-803b055b9df6fa16a34605088107284c1bc6d2b2.tar.bz2
upstream-803b055b9df6fa16a34605088107284c1bc6d2b2.zip
Show error messages when collecting the package info
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4573 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--Makefile2
-rw-r--r--include/package.mk2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 32cadb7f99..5b90c482f0 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ endif
@echo Collecting package info...
@-for dir in package/*/; do \
echo Source-Makefile: $${dir}Makefile; \
- $(NO_TRACE_MAKE) --no-print-dir DUMP=1 -C $$dir 2>&- || echo "ERROR: please fix $${dir}Makefile" >&2; \
+ $(NO_TRACE_MAKE) --no-print-dir DUMP=1 -C $$dir || echo "ERROR: please fix $${dir}Makefile" >&2; \
done > $@
pkginfo-clean: FORCE
diff --git a/include/package.mk b/include/package.mk
index 385a846537..43f1758900 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -16,10 +16,12 @@ define Build/DefaultTargets
ifeq ($(DUMP),)
ifeq ($(CONFIG_AUTOREBUILD),y)
ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) .),$(PKG_BUILD_DIR))
+ $$(warning package has changed, need to rebuild $(subst $(TOPDIR)/,,$(PKG_BUILD_DIR)))
$(PKG_BUILD_DIR)/.prepared: package-clean
endif
ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p -x ipkg -x ipkg-install $(IPKG_$(1)) $(PKG_BUILD_DIR)),$(IPKG_$(1)))
+ $$(warning $(subst $(TOPDIR)/,,$(PKG_BUILD_DIR)) has changed, need to rebuild $(subst $(TOPDIR)/,,$(IPKG_$(1))))
$(PKG_BUILD_DIR)/.built: package-rebuild
endif
endif