summaryrefslogtreecommitdiff
path: root/openwrt
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
commit92c9733f3a9ca9ade74efcafe3e322eb1ddd9c51 (patch)
treee6cc99983a8c57f84e67f4d8d009188f6f1de3b9 /openwrt
parent66f79de399d54ee8b4893145892562783bc94e48 (diff)
downloadmtk-20170518-92c9733f3a9ca9ade74efcafe3e322eb1ddd9c51.zip
mtk-20170518-92c9733f3a9ca9ade74efcafe3e322eb1ddd9c51.tar.gz
mtk-20170518-92c9733f3a9ca9ade74efcafe3e322eb1ddd9c51.tar.bz2
Show error messages when collecting the package info
SVN-Revision: 4573
Diffstat (limited to 'openwrt')
-rw-r--r--openwrt/Makefile2
-rw-r--r--openwrt/include/package.mk2
2 files changed, 3 insertions, 1 deletions
diff --git a/openwrt/Makefile b/openwrt/Makefile
index 32cadb7..5b90c48 100644
--- a/openwrt/Makefile
+++ b/openwrt/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/openwrt/include/package.mk b/openwrt/include/package.mk
index 385a846..43f1758 100644
--- a/openwrt/include/package.mk
+++ b/openwrt/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