build: log package dump failures to logs to avoid forcing user to write cryptic comma...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 Apr 2011 14:48:59 +0000 (14:48 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 Apr 2011 14:48:59 +0000 (14:48 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26499 3c298f89-4303-0410-b956-a3cf2f4a3e73

include/scan.mk

index 288a100..b2b202d 100644 (file)
@@ -27,7 +27,12 @@ define PackageDir
        { \
                $$(call progress,Collecting $(SCAN_NAME) info: $(SCAN_DIR)/$(2)) \
                echo Source-Makefile: $(SCAN_DIR)/$(2)/Makefile; \
-               $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) 2>/dev/null || { $$(call progress,ERROR: please fix $(SCAN_DIR)/$(2)/Makefile\n) rm -f $$@; }; \
+               $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) 2>/dev/null || { \
+                       mkdir -p "$(TOPDIR)/logs/$(SCAN_DIR)/$(2)"; \
+                       $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) > $(TOPDIR)/logs/$(SCAN_DIR)/$(2)/dump.txt 2>&1; \
+                       $$(call progress,ERROR: please fix $(SCAN_DIR)/$(2)/Makefile - see logs/$(SCAN_DIR)/$(2)/dump.txt for details\n) \
+                       rm -f $$@; \
+               }; \
                echo; \
        } > $$@ || true
 endef
This page took 0.040165 seconds and 4 git commands to generate.