x86/EFI: fix build when using GNU Make 4.1
PATCH 1/1 x86/EFI: fix build when using GNU Make 4.1
Since c/s eee5909e9d (x86/EFI: use less crude a way of generating the build ID) builds have been broken when using GNU Make 4.1. This is because there are no dependencies on buildid.o and as such GNU Make does not build it. This adds a dependency so that it is built.
Note: This patch is different than I was going to originally submit, I had used runtime.o but while testing this I saw Daniel Kiper's v14 of his multiboot2 series come along and I modified my patch so that he would not have to rebase.
---
CC: Jan Beulich <[email protected]>
CC: Andrew Cooper <[email protected]>
Jan,
This needs to be backported to 4.8 as well.
--- xen/arch/x86/efi/Makefile | 2 ++ 1 file changed, 2 insertions(+)
xen/arch/x86/efi/Makefile +2 -0
@@ -14,5 +14,7 @@ extra-$(efi) += boot.init.o relocs-dummy.o runtime.o compat.o buildid.o %.o: %.ihex $(OBJCOPY) -I ihex -O binary $< $@ +boot.init.o: buildid.o + stub.o: $(extra-y) nogcov-$(efi) += stub.o
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 02.02.17 at 23:46, <[email protected]> wrote:
Since c/s
eee5909e9d(x86/EFI: use less crude a way of generating the build ID) builds have been broken when using GNU Make 4.1. This is because there are no dependencies on buildid.o and as such GNU Make does not build it. This adds a dependency so that it is built.
While I trust you to see an actual problem, I can't follow this explanation:
xen/arch/x86/efi/Makefile extra-$(efi) += boot.init.o relocs-dummy.o runtime.o compat.o buildid.o · line 19
Quoted 9 lines
xen/arch/x86/efi/Makefile +2
-0@@ -14,5 +14,7 @@ extra-$(efi) += boot.init.o relocs-dummy.o runtime.o compat.o buildid.o %.o: %.ihex $(OBJCOPY) -I ihex -O binary $< $@ +boot.init.o: buildid.o + stub.o: $(extra-y)
Here we see a dependency of stub.o on $(extra-y), and in the hunk header we see that extra-y includes buildid.o. And if a proper dependency was missing, I wouldn't be able to tell why things work with older make, nor would I understand why it fails for you but not for me with 4.1. So there must be something more to this. Is it perhaps really Daniel's patch 2, up to v13 of which introduced this problem (in which case it should really be fixed there, instead of by a standalone change)?
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel