From: Ian Campbell Date: Fri, 30 Nov 2012 12:20:22 +0000 (+0000) Subject: arm: create a raw binary target. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7583 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c7bfd04da65ff66e7ea0324b4363af77b02e0949;p=xen.git arm: create a raw binary target. This is suitable for direct loading by a bootloader. Signed-off-by: Ian Campbell Acked-by: Tim Deegan Committed-by: Ian Campbell --- diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index e69b278832..fd92b72941 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -38,12 +38,16 @@ endif ALL_OBJS := head.o $(ALL_OBJS) -$(TARGET): $(TARGET)-syms +$(TARGET): $(TARGET)-syms $(TARGET).bin # XXX: VE model loads by VMA so instead of # making a proper ELF we link with LMA == VMA and adjust crudely $(OBJCOPY) --change-addresses +0x80000000 $< $@ $(STRIP) $@ +# +$(TARGET).bin: $(TARGET)-syms + objcopy -O binary -S $< $@ + #$(TARGET): $(TARGET)-syms $(efi-y) boot/mkelf32 # ./boot/mkelf32 $(TARGET)-syms $(TARGET) 0x100000 \ # `$(NM) -nr $(TARGET)-syms | head -n 1 | sed -e 's/^\([^ ]*\).*/0x\1/'`