]> xenbits.xensource.com Git - people/aperard/xen-arm.git/commitdiff
arm: create a raw binary target.
authorIan Campbell <ian.campbell@citrix.com>
Fri, 30 Nov 2012 12:20:22 +0000 (12:20 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 30 Nov 2012 12:20:22 +0000 (12:20 +0000)
This is suitable for direct loading by a bootloader.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/Makefile

index e69b278832b1b57ecb853d7800966ccb85bd0423..fd92b7294160025799ae9adfc3cdabd6094b0ffe 100644 (file)
@@ -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/'`