Skip to contentSkip to conversation

build: don't shadow debug with "@debug@" in tools build

PATCH In review Wei Liu 3 participants 3 messages Oct 11, 2015 – Oct 12, 2015

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 build: don't shadow debug with "@debug@" in tools build

In 16181cbb (tools: Honor Config.mk debug value, rather than setting our own), configure doesn't set debug variable anymore. There is, however, one place that was missed. The file config/Tools.mk.in was still expecting a @debug@ value from configure. After 16181cbb that value remained "debug := @debug@" all the time because configure didn't substitute it.

The consequence was that we couldn't get a debug build even if debug was set to "y" in Config.mk.

Fix this by removing the stray line "debug := @debug@" in Tools.mk.in.

---
Cc: Fabio Fantoni <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: George Dunlap <[email protected]>

Backport candidate for 4.6.

---
 config/Tools.mk.in | 3 ---
 1 file changed, 3 deletions(-)
config/Tools.mk.in +0 -3
index 9bd5f6c..ccfe137 100644
@@ -5,9 +5,6 @@ ifeq ($(CONFIG_RUMP),y)
 XEN_OS              := NetBSDRump
 endif
 
-# A debug build of tools?
-debug               := @debug@
-
 # Tools path
 BISON               := @BISON@
 FLEX                := @FLEX@
Signature · 1 line
2.1.4
Tested-by on v1 1/1
#1 lore raw

Il 11/10/2015 16:41, Wei Liu ha scritto:

Quoted 7 lines

In 16181cbb (tools: Honor Config.mk debug value, rather than setting our own), configure doesn't set debug variable anymore. There is, however, one place that was missed. The file config/Tools.mk.in was still expecting a @debug@ value from configure. After 16181cbb that value remained "debug := @debug@" all the time because configure didn't substitute it.

Quoted 7 lines

The consequence was that we couldn't get a debug build even if debug was set to "y" in Config.mk.

Fix this by removing the stray line "debug := @debug@" in Tools.mk.in.

Thanks, tried and now seems all ok about debug things on build FWIK.

Quoted 25 lines

---
Cc: Fabio Fantoni <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: George Dunlap <[email protected]>

Backport candidate for 4.6.

---
  config/Tools.mk.in | 3 ---
  1 file changed, 3 deletions(-)
config/Tools.mk.in +0 -3
index 9bd5f6c..ccfe137 100644
@@ -5,9 +5,6 @@ ifeq ($(CONFIG_RUMP),y)
  XEN_OS              := NetBSDRump
  endif
 
-# A debug build of tools?
-debug               := @debug@
-
  # Tools path
  BISON               := @BISON@
  FLEX                := @FLEX@
Acked-by on v1 1/1
#2 lore raw
In reply to Wei Liu
Quoted 7 lines · Wei Liu

In 16181cbb (tools: Honor Config.mk debug value, rather than setting our own), configure doesn't set debug variable anymore. There is, however, one place that was missed. The file config/Tools.mk.in was still expecting a @debug@ value from configure. After 16181cbb that value remained "debug := @debug@" all the time because configure didn't substitute it.

Quoted 7 lines

The consequence was that we couldn't get a debug build even if debug was set to "y" in Config.mk.

Fix this by removing the stray line "debug := @debug@" in Tools.mk.in.

Oops -- tested not turning it on, but didn't test turning it on. :-)

Quoted 26 lines

---
Cc: Fabio Fantoni <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: George Dunlap <[email protected]>

Backport candidate for 4.6.

---
 config/Tools.mk.in | 3 ---
 1 file changed, 3 deletions(-)
config/Tools.mk.in +0 -3
index 9bd5f6c..ccfe137 100644
@@ -5,9 +5,6 @@ ifeq ($(CONFIG_RUMP),y)
 XEN_OS              := NetBSDRump
 endif
 
-# A debug build of tools?
-debug               := @debug@
-
 # Tools path
 BISON               := @BISON@
 FLEX                := @FLEX@