]> xenbits.xensource.com Git - xen.git/commitdiff
build: adjust arch/x86/note.o rule
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 7 Sep 2021 07:32:14 +0000 (09:32 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Sep 2021 07:32:14 +0000 (09:32 +0200)
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 <anthony.perard@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/Makefile

index 462472215c9195c81dad9b637b81d8567d80be99..202d4d27823d06a647dcfa945cbdf2fb6145ebea 100644 (file)
@@ -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