From: Anthony PERARD Date: Tue, 7 Sep 2021 07:32:14 +0000 (+0200) Subject: build: adjust arch/x86/note.o rule X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~230 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2358d99995fb5ebb0b7c37694574a92ec6cf3f75;p=xen.git build: adjust arch/x86/note.o rule Avoid different spelling for the location of "xen-syms", and simply use the dependency variable. This avoid the assumption about $(TARGET) value. Signed-off-by: Anthony PERARD Acked-by: Jan Beulich --- diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile index 462472215c..202d4d2782 100644 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -197,7 +197,7 @@ $(TARGET)-syms: prelink.o xen.lds rm -f $(@D)/.$(@F).[0-9]* $(@D)/..$(@F).[0-9]* note.o: $(TARGET)-syms - $(OBJCOPY) -O binary --only-section=.note.gnu.build-id $(BASEDIR)/xen-syms $@.bin + $(OBJCOPY) -O binary --only-section=.note.gnu.build-id $< $@.bin $(OBJCOPY) -I binary -O elf64-x86-64 -B i386:x86-64 \ --rename-section=.data=.note.gnu.build-id -S $@.bin $@ rm -f $@.bin