Skip to contentSkip to conversation

build: export potentially overridden tool chain components

PATCH In review Jan Beulich 3 participants 3 messages Feb 28, 2022 – Mar 3, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: export potentially overridden tool chain components

When overriding the tool chain via CROSS_COMPILE, the resulting components need to be made available to, in particular (but not limited to) the check-endbr.sh script. Note that we don't allow overriding ADDR2LINE yet; this would first require additions to some config/*.mk before it would make sense to export the resulting variable as well.

The lack of NM exporting was apparently not a problem so far, but add it at this occasion as well - we're using the tool, after all.

Fixes 4d037425dccf ("x86: Build check for embedded endbr64 instructions")
xen/Makefile +1 -1
@@ -55,7 +55,7 @@ export TARGET_ARCH     := $(shell echo $
 # Allow someone to change their config file
 export KCONFIG_CONFIG ?= .config
 
-export CC CXX LD
+export CC CXX LD NM OBJCOPY OBJDUMP
 
 export TARGET := xen
 
Reviewed-by on v1 1/1
#1 lore raw

Hi Jan,

Quoted 8 lines · Jan Beulich

When overriding the tool chain via CROSS_COMPILE, the resulting components need to be made available to, in particular (but not limited to) the check-endbr.sh script. Note that we don't allow overriding ADDR2LINE yet; this would first require additions to some config/*.mk before it would make sense to export the resulting variable as well.

Quoted 5 lines

The lack of NM exporting was apparently not a problem so far, but add it at this occasion as well - we're using the tool, after all.

Fixes 4d037425dccf ("x86: Build check for embedded endbr64 instructions")

Cheers
Bertrand

Quoted 14 lines
xen/Makefile +0 -0
@@ -55,7 +55,7 @@ export TARGET_ARCH     := $(shell echo $
 # Allow someone to change their config file

export KCONFIG_CONFIG ?= .config

xen/Makefile +1 -1
-export CC CXX LD
+export CC CXX LD NM OBJCOPY OBJDUMP

export TARGET := xen

Acked-by on v1 1/1
#2 lore raw
In reply to Jan Beulich
Quoted 11 lines · Jan Beulich

When overriding the tool chain via CROSS_COMPILE, the resulting components need to be made available to, in particular (but not limited to) the check-endbr.sh script. Note that we don't allow overriding ADDR2LINE yet; this would first require additions to some config/*.mk before it would make sense to export the resulting variable as well.

The lack of NM exporting was apparently not a problem so far, but add it at this occasion as well - we're using the tool, after all.

Fixes 4d037425dccf ("x86: Build check for embedded endbr64 instructions")