Modify

Opened 8 years ago

Closed 7 years ago

Last modified 4 years ago

#7139 closed enhancement (obsolete)

log to file for VERBOSE=0

Reported by: moo <moo.tinys@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

openwrt build system default VERBOSE=0, and when it's 0 any output is redirected to /dev/null, it would be nice to redirect to a log file. instead of retrying with make V=99 we can simply check the log file

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by moo <moo.tinys@…>

Index: include/verbose.mk
===================================================================
--- include/verbose.mk  (revision 20666)
+++ include/verbose.mk  (working copy)
@@ -10,6 +10,7 @@
 export NO_TRACE_MAKE
 endif

+LOG := /dev/null
 ifndef KBUILD_VERBOSE
   KBUILD_VERBOSE:=0
 endif
@@ -41,7 +42,7 @@
     SUBMAKE=$(MAKE)
   else
     ifeq ($(KBUILD_VERBOSE),0)
-      SILENT:=>/dev/null 2>&1
+      SILENT:=>>$(LOG) 2>&1
     else
       SILENT:=
     endif

i've made a simple change, but not sure if this is complete, absolute path maybe required. make LOG=pwd/log or make LOG=/tmp/openwrt-build.log

comment:2 Changed 8 years ago by nico

Use 'make ... BUILD_LOG=1' and check the './logs' directory

comment:3 Changed 7 years ago by nbd

  • Resolution set to obsolete
  • Status changed from new to closed

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.