Przeglądaj źródła

add menuconfig option to enable log files during build process

SVN-Revision: 27403
John Crispin 14 lat temu
rodzic
commit
4551f2bfcc
2 zmienionych plików z 9 dodań i 0 usunięć
  1. 5 0
      Config.in
  2. 4 0
      rules.mk

+ 5 - 0
Config.in

@@ -425,6 +425,11 @@ menuconfig DEVEL
 		  In this instance, the --refererence option of git clone will
 		  In this instance, the --refererence option of git clone will
 		  be used thus creating a quick local clone of your repo.
 		  be used thus creating a quick local clone of your repo.
 
 
+	config BUILD_LOG
+		bool "Enable log files during build process" if DEVEL
+		help
+		  If enabled log files will be written to the ./log directory
+
 menuconfig TARGET_OPTIONS
 menuconfig TARGET_OPTIONS
 	bool "Target Options"  if DEVEL
 	bool "Target Options"  if DEVEL
 
 

+ 4 - 0
rules.mk

@@ -239,6 +239,10 @@ else
   TAR_OPTIONS:=-xf -
   TAR_OPTIONS:=-xf -
 endif
 endif
 
 
+ifeq ($(CONFIG_BUILD_LOG),y)
+  BUILD_LOG:=1
+endif
+
 define shvar
 define shvar
 V_$(subst .,_,$(subst -,_,$(subst /,_,$(1))))
 V_$(subst .,_,$(subst -,_,$(subst /,_,$(1))))
 endef
 endef