[PATCH] build: provide and export ADDR2LINE

Jan Beulich posted 1 patch 2 years, 1 month ago
Failed in applying to current master (apply log)
[PATCH] build: provide and export ADDR2LINE
Posted by Jan Beulich 2 years, 1 month ago
Now that x86'es check-endbr.sh script uses it, also make it available
consistently with other tool chain components.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/config/StdGNU.mk
+++ b/config/StdGNU.mk
@@ -10,6 +10,7 @@ endif
 LD_LTO     = $(CROSS_COMPILE)ld
 endif
 CPP        = $(CC) -E
+ADDR2LINE  = $(CROSS_COMPILE)addr2line
 AR         = $(CROSS_COMPILE)ar
 RANLIB     = $(CROSS_COMPILE)ranlib
 NM         = $(CROSS_COMPILE)nm
--- a/config/SunOS.mk
+++ b/config/SunOS.mk
@@ -3,6 +3,7 @@ LD         = $(CROSS_COMPILE)gld
 CC         = $(CROSS_COMPILE)gcc
 CPP        = $(CROSS_COMPILE)gcc -E
 CXX        = $(CROSS_COMPILE)g++
+ADDR2LINE  = $(CROSS_COMPILE)gaddr2line
 AR         = $(CROSS_COMPILE)gar
 RANLIB     = $(CROSS_COMPILE)granlib
 NM         = $(CROSS_COMPILE)gnm
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -55,7 +55,7 @@ export TARGET_ARCH     := $(shell echo $
 # Allow someone to change their config file
 export KCONFIG_CONFIG ?= .config
 
-export CC CXX LD NM OBJCOPY OBJDUMP
+export CC CXX LD NM OBJCOPY OBJDUMP ADDR2LINE
 
 export TARGET := xen
Re: [PATCH] build: provide and export ADDR2LINE
Posted by Luca Fancellu 2 years, 1 month ago

> On 22 Mar 2022, at 15:23, Jan Beulich <jbeulich@suse.com> wrote:
> 
> Now that x86'es check-endbr.sh script uses it, also make it available
> consistently with other tool chain components.
> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>

Cheers,
Luca

> 
> --- a/config/StdGNU.mk
> +++ b/config/StdGNU.mk
> @@ -10,6 +10,7 @@ endif
> LD_LTO     = $(CROSS_COMPILE)ld
> endif
> CPP        = $(CC) -E
> +ADDR2LINE  = $(CROSS_COMPILE)addr2line
> AR         = $(CROSS_COMPILE)ar
> RANLIB     = $(CROSS_COMPILE)ranlib
> NM         = $(CROSS_COMPILE)nm
> --- a/config/SunOS.mk
> +++ b/config/SunOS.mk
> @@ -3,6 +3,7 @@ LD         = $(CROSS_COMPILE)gld
> CC         = $(CROSS_COMPILE)gcc
> CPP        = $(CROSS_COMPILE)gcc -E
> CXX        = $(CROSS_COMPILE)g++
> +ADDR2LINE  = $(CROSS_COMPILE)gaddr2line
> AR         = $(CROSS_COMPILE)gar
> RANLIB     = $(CROSS_COMPILE)granlib
> NM         = $(CROSS_COMPILE)gnm
> --- a/xen/Makefile
> +++ b/xen/Makefile
> @@ -55,7 +55,7 @@ export TARGET_ARCH     := $(shell echo $
> # Allow someone to change their config file
> export KCONFIG_CONFIG ?= .config
> 
> -export CC CXX LD NM OBJCOPY OBJDUMP
> +export CC CXX LD NM OBJCOPY OBJDUMP ADDR2LINE
> 
> export TARGET := xen
> 
> 
>