aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'extras/mini-os/Makefile')
-rw-r--r--extras/mini-os/Makefile11
1 files changed, 1 insertions, 10 deletions
diff --git a/extras/mini-os/Makefile b/extras/mini-os/Makefile
index fc9c2bf733..d2d478ac40 100644
--- a/extras/mini-os/Makefile
+++ b/extras/mini-os/Makefile
@@ -24,17 +24,8 @@ hypervisor-ifs:
ln -sf ../../../xen/include/hypervisor-ifs h/hypervisor-ifs
$(TARGET): hypervisor-ifs head.o $(OBJS)
- # Image will load at 0xC0000000. First bytes from head.o
- #$(LD) -N -Ttext 0xC0000000 head.o $(OBJS) -o $@.elf
$(LD) -N -T minios.lds head.o $(OBJS) -o $@.elf
- # Guest OS header -- first 8 bytes are identifier 'XenGuest'.
- echo -e -n 'XenGuest' >$@
- # Guest OS header -- next 4 bytes are load address (0xC0000000).
- echo -e -n '\000\000\000\300' >>$@
- # Create a raw bag of bytes from the ELF image.
- objcopy -O binary -R .note -R .comment $@.elf $@.raw
- # Guest OS header is immediately followed by raw OS image.
- cat $@.raw >>$@
+ objcopy -R .note -R .comment $@.elf $@
gzip -f -9 -c $@ >$@.gz
clean: