]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
build: rename __LINKER__ to LINKER_SCRIPT
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 25 Feb 2022 10:03:17 +0000 (11:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Feb 2022 10:03:17 +0000 (11:03 +0100)
For two reasons: this macro is used to generate a "linker script" and
is not by the linker, and name starting with an underscore '_' are
supposed to be reserved, so better avoid them when not needed.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/Rules.mk
xen/arch/arm/include/asm/config.h

index 567a23a54cd9c2bc8ddf2030b433ff76f4116648..fea3f70cdb7233a434670cdea45d87811e61721d 100644 (file)
@@ -256,7 +256,7 @@ $(obj)/%.s: $(src)/%.S FORCE
 
 # Linker scripts, .lds.S -> .lds
 quiet_cmd_cpp_lds_S = LDS     $@
-cmd_cpp_lds_S = $(CPP) -P $(call cpp_flags,$(a_flags)) -D__LINKER__ -MQ $@ -o $@ $<
+cmd_cpp_lds_S = $(CPP) -P $(call cpp_flags,$(a_flags)) -DLINKER_SCRIPT -MQ $@ -o $@ $<
 
 targets := $(filter-out $(PHONY), $(targets))
 
index c7b77912013ea8eb275d5d53bcdec0c0e46cc473..2aced0bc3b8b0027fc564ca26ebfd03434676bb6 100644 (file)
@@ -191,7 +191,7 @@ extern unsigned long frametable_virt_end;
 #define watchdog_disable() ((void)0)
 #define watchdog_enable()  ((void)0)
 
-#if defined(__ASSEMBLY__) && !defined(__LINKER__)
+#if defined(__ASSEMBLY__) && !defined(LINKER_SCRIPT)
 #include <asm/asm_defns.h>
 #include <asm/macros.h>
 #endif