From a0ced5164a6180de55946565fb4a7237948c93bb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 16 Apr 2015 12:18:26 +0000 Subject: build: tell users to do non-paralle builds on errors Signed-off-by: Felix Fietkau SVN-Revision: 45457 --- include/toplevel.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/toplevel.mk') diff --git a/include/toplevel.mk b/include/toplevel.mk index 33baa86da9..d8651d923b 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -166,6 +166,8 @@ clean dirclean: .config prereq:: prepare-tmpinfo .config @+$(NO_TRACE_MAKE) -r -s $@ +WARN_PARALLEL_ERROR = $(if $(BUILD_LOG),,$(and $(filter -j,$(MAKEFLAGS)),$(findstring s,$(OPENWRT_VERBOSE)))) + ifeq ($(SDK),1) %:: @@ -184,7 +186,10 @@ else printf "$(_R)WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!$(_N)\n" >&2; \ fi \ ) - @+$(ULIMIT_FIX) $(SUBMAKE) -r $@ + @+$(ULIMIT_FIX) $(SUBMAKE) -r $@ $(if $(WARN_PARALLEL_ERROR), || { \ + printf "$(_R)Build failed - please re-run with -j1 to see the real error message$(_N)\n" >&2; \ + false; \ + } ) endif -- cgit v1.2.3