x86/build: correctly record dependencies of asm-offsets.s
PATCH 1/1 x86/build: correctly record dependencies of asm-offsets.s
Going through an intermediate *.new file requires telling the compiler what the real target is, so that the inclusion of the resulting .*.d file will actually be useful.
---
Already on the original patch I did suggest that perhaps Arm would want to follow suit. So again - perhaps the rules should be unified by moving to common code?
xen/arch/x86/Makefile +1 -1
@@ -241,7 +241,7 @@ efi/buildid.o efi/relocs-dummy.o: $(BASE efi/buildid.o efi/relocs-dummy.o: ; asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c $(BASEDIR)/include/asm-x86/asm-macros.h - $(CC) $(filter-out -Wa$(comma)% -flto,$(c_flags)) -S -g0 -o [email protected] $< + $(CC) $(filter-out -Wa$(comma)% -flto,$(c_flags)) -S -g0 -o [email protected] -MQ $@ $< $(call move-if-changed,[email protected],$@) asm-macros.i: CFLAGS-y += -D__ASSEMBLY__ -P
Quoted 7 lines · Jan Beulich
Going through an intermediate *.new file requires telling the compiler what the real target is, so that the inclusion of the resulting .*.d file will actually be useful.
Fixes 7d2d7a43d014 ("x86/build: limit rebuilding of asm-offsets.h")Reported-by Julien Grall <[email protected]>Signed-off-by Jan Beulich <[email protected]>
outcome of the discussion below.
Quoted 16 lines
---
Already on the original patch I did suggest that perhaps Arm would want to follow suit. So again - perhaps the rules should be unified by moving to common code?xen/arch/x86/Makefile +1
-1@@ -241,7 +241,7 @@ efi/buildid.o efi/relocs-dummy.o: $(BASE efi/buildid.o efi/relocs-dummy.o: ; asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c $(BASEDIR)/include/asm-x86/asm-macros.h - $(CC) $(filter-out -Wa$(comma)% -flto,$(c_flags)) -S -g0 -o [email protected] $< + $(CC) $(filter-out -Wa$(comma)% -flto,$(c_flags)) -S -g0 -o [email protected] -MQ $@ $< $(call move-if-changed,[email protected],$@) asm-macros.i: CFLAGS-y += -D__ASSEMBLY__ -P
Re: [PATCH] x86/build: correctly record dependencies of asm-offsets.s [and 1 more messages]
In reply to Jan BeulichAndrew Cooper writes ("Re: [PATCH] x86/build: correctly record dependencies of asm-offsets.s"):
Quoted 11 lines · Jan Beulich
Quoted 7 lines
Going through an intermediate *.new file requires telling the compiler what the real target is, so that the inclusion of the resulting .*.d file will actually be useful.
Fixes 7d2d7a43d014 ("x86/build: limit rebuilding of asm-offsets.h")Reported-by Julien Grall <[email protected]>Signed-off-by Jan Beulich <[email protected]>outcome of the discussion below.
This is a bugfix and does not need a release ack, but FTAOD
Quoted 3 lines
Quoted 3 lines
Already on the original patch I did suggest that perhaps Arm would want to follow suit. So again - perhaps the rules should be unified by moving to common code?
Quite so.
Ian.
Re: [PATCH] x86/build: correctly record dependencies of asm-offsets.s [and 1 more messages]
Quoted 6 lines · Ian Jackson
Andrew Cooper writes ("Re: [PATCH] x86/build: correctly record dependencies of asm-offsets.s"):
Quoted 5 lines · Jan Beulich
Quoted 4 lines
Going through an intermediate *.new file requires telling the compiler what the real target is, so that the inclusion of the resulting .*.d file will actually be useful.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Fixes 7d2d7a43d014 ("x86/build: limit rebuilding of asm-offsets.h")Reported-by Julien Grall <[email protected]>Signed-off-by Jan Beulich <[email protected]>outcome of the discussion below.
This is a bugfix and does not need a release ack, but FTAOD
Oh, this used to be different on prior releases once we were past the full freeze point. Are to intending to allow bug fixes without release ack until the actual release (minus commit moratorium periods, of course), or will this change at some (un?)predictable point?
Quoted 1 line
Release-Acked-by Ian Jackson <[email protected]>
Thanks.
Jan
Re: [PATCH] x86/build: correctly record dependencies of asm-offsets.s [and 1 more messages]
Jan Beulich writes ("Re: [PATCH] x86/build: correctly record dependencies of asm-offsets.s [and 1 more messages]"):
Quoted 14 lines
Oh, this used to be different on prior releases once we were past the full freeze point. Are to intending to allow bug fixes without release ack until the actual release (minus commit moratorium periods, of course), or will this change at some (un?)predictable point?
Quoted 8 lines
Friday 29th January Feature freeze
Patches adding new features should be committed by this date. Straightforward bugfixes may continue to be accepted by maintainers.
Friday 12th February **tentatve** Code freeze
Bugfixes only, all changes to be approved by the Release Manager.
I will send a proper announcement.
Ian.
Re: [PATCH] x86/build: correctly record dependencies of asm-offsets.s [and 1 more messages]
Quoted 15 lines · Ian Jackson
Jan Beulich writes ("Re: [PATCH] x86/build: correctly record dependencies of asm-offsets.s [and 1 more messages]"):
Quoted 14 lines
Oh, this used to be different on prior releases once we were past the full freeze point. Are to intending to allow bug fixes without release ack until the actual release (minus commit moratorium periods, of course), or will this change at some (un?)predictable point?
Quoted 8 lines
Friday 29th January Feature freeze
Patches adding new features should be committed by this date. Straightforward bugfixes may continue to be accepted by maintainers.
Friday 12th February **tentatve** Code freeze
Bugfixes only, all changes to be approved by the Release Manager.
Oh, looks like I forgot we have three freezes, not two.
Quoted 1 line
I will send a proper announcement.
Thanks.
Jan
Hi Jan,
Quoted 11 lines · Jan Beulich
Going through an intermediate *.new file requires telling the compiler what the real target is, so that the inclusion of the resulting .*.d file will actually be useful.
Fixes 7d2d7a43d014 ("x86/build: limit rebuilding of asm-offsets.h")Reported-by Julien Grall <[email protected]>Signed-off-by Jan Beulich <[email protected]>---
Already on the original patch I did suggest that perhaps Arm would want to follow suit. So again - perhaps the rules should be unified by moving to common code?
Sorry I missed the original patch. The recent changes looks beneficials to Arm as well.
xen/arch/x86/Makefile efi/buildid.o efi/relocs-dummy.o: $(BASE · line 243
Quoted 7 lines
xen/arch/x86/Makefile +0
-0@@ -241,7 +241,7 @@ efi/buildid.o efi/relocs-dummy.o: $(BASE efi/buildid.o efi/relocs-dummy.o: ; asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c $(BASEDIR)/include/asm-x86/asm-macros.h
On Arm, only asm-offsets.c is a pre-requisite. May I ask why you need the second on x86?
xen/arch/x86/Makefile efi/buildid.o efi/relocs-dummy.o: $(BASE · line 247
Quoted 6 lines
xen/arch/x86/Makefile +1
-1- $(CC) $(filter-out -Wa$(comma)% -flto,$(c_flags)) -S -g0 -o [email protected] $< + $(CC) $(filter-out -Wa$(comma)% -flto,$(c_flags)) -S -g0 -o [email protected] -MQ $@ $< $(call move-if-changed,[email protected],$@) asm-macros.i: CFLAGS-y += -D__ASSEMBLY__ -P
Cheers,
Signature · 1 line
Julien Grall
Quoted 13 lines · Julien Grall
Quoted 11 lines · Jan Beulich
Going through an intermediate *.new file requires telling the compiler what the real target is, so that the inclusion of the resulting .*.d file will actually be useful.
Fixes 7d2d7a43d014 ("x86/build: limit rebuilding of asm-offsets.h")Reported-by Julien Grall <[email protected]>Signed-off-by Jan Beulich <[email protected]>---
Already on the original patch I did suggest that perhaps Arm would want to follow suit. So again - perhaps the rules should be unified by moving to common code?
Quoted 2 lines
Sorry I missed the original patch. The recent changes looks beneficials to Arm as well.
Okay, I can make a patch then (for 4.16) to make this common as far as possible.
Quoted 9 lines
xen/arch/x86/Makefile efi/buildid.o efi/relocs-dummy.o: $(BASE · line 243
Quoted 6 lines
xen/arch/x86/Makefile +0
-0@@ -241,7 +241,7 @@ efi/buildid.o efi/relocs-dummy.o: $(BASE efi/buildid.o efi/relocs-dummy.o: ; asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c $(BASEDIR)/include/asm-x86/asm-macros.hOn Arm, only
asm-offsets.cis a pre-requisite. May I ask why you need the second on x86?
Because this header gets used by the file and hence needs generating up front? But that's nothing Arm needs to worry about - I intend to allow extra per-arch dependencies, no matter that common things are to become common.
Jan