Skip to contentSkip to conversation

xen: xen.lds should depend on Kconfig's auto.conf

PATCH In review Wei Liu 2 participants 3 messages Aug 17, 2018

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH v2 1/1 xen: xen.lds should depend on Kconfig's auto.conf

xen.lds.S uses on some of the config options set by Kconfig.

---
v2: correct the path used in the patch.

---
 xen/arch/arm/Makefile | 2 +-
 xen/arch/x86/Makefile | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
xen/arch/arm/Makefile +1 -1
index b9b141dc84..55c1bf032f 100644
@@ -124,7 +124,7 @@ $(TARGET)-syms: prelink.o xen.lds $(BASEDIR)/common/symbols-dummy.o
 asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c
 	$(CC) $(filter-out -flto,$(CFLAGS)) -S -o $@ $<
 
-xen.lds: xen.lds.S
+xen.lds: xen.lds.S ../../include/config/auto.conf
 	$(CC) -P -E -Ui386 $(AFLAGS) -o $@ $<
 	sed -e 's/xen\.lds\.o:/xen\.lds:/g' <.xen.lds.d >.xen.lds.d.new
 	mv -f .xen.lds.d.new .xen.lds.d
xen/arch/x86/Makefile +2 -2
index 9b9b63ac63..bb7e1d966c 100644
@@ -218,12 +218,12 @@ efi/boot.init.o efi/runtime.o efi/compat.o efi/buildid.o: ;
 asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c
 	$(CC) $(filter-out -Wa$(comma)% -flto,$(CFLAGS)) -S -o $@ $<
 
-xen.lds: xen.lds.S
+xen.lds: xen.lds.S ../../include/config/auto.conf
 	$(CC) -P -E -Ui386 $(filter-out -Wa$(comma)%,$(AFLAGS)) -o $@ $<
 	sed -e 's/xen\.lds\.o:/xen\.lds:/g' <.xen.lds.d >.xen.lds.d.new
 	mv -f .xen.lds.d.new .xen.lds.d
 
-efi.lds: xen.lds.S
+efi.lds: xen.lds.S ../../include/config/auto.conf
 	$(CC) -P -E -Ui386 -DEFI $(filter-out -Wa$(comma)%,$(AFLAGS)) -o $@ $<
 	sed -e 's/efi\.lds\.o:/efi\.lds:/g' <.$(@F).d >.$(@F).d.new
 	mv -f .$(@F).d.new .$(@F).d
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 17.08.18 at 17:04, <[email protected]> wrote:

xen.lds.S uses on some of the config options set by Kconfig.

But .xen.lds.d already has a dependency on
/build/xen/unstable-hg/2018-07-16-64bit/xen/include/generated/autoconf.h,
which is a more correct dependency than auto.conf.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

author
#2 lore raw
Quoted 6 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 17.08.18 at 17:04, <[email protected]> wrote:

xen.lds.S uses on some of the config options set by Kconfig.

But .xen.lds.d already has a dependency on
/build/xen/unstable-hg/2018-07-16-64bit/xen/include/generated/autoconf.h,
which is a more correct dependency than auto.conf.

Hmm... in that case I'm a bit baffled why it could go out of sync. I will try to reproduce the issue next week.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel