aboutsummaryrefslogtreecommitdiffstats
path: root/xenolinux-2.4.25-sparse/arch/xeno/boot/Makefile
diff options
context:
space:
mode:
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-02-20 11:15:03 +0000
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-02-20 11:15:03 +0000
commit92207c117ac7c3b4f3304fb6855575844da73980 (patch)
tree3e9d4af5dbfb9619d7288c0f84d22643a5cd1b71 /xenolinux-2.4.25-sparse/arch/xeno/boot/Makefile
parentb39cfce3243dfbfa5d877425adad77a108fb1094 (diff)
downloadxen-92207c117ac7c3b4f3304fb6855575844da73980.tar.gz
xen-92207c117ac7c3b4f3304fb6855575844da73980.tar.bz2
xen-92207c117ac7c3b4f3304fb6855575844da73980.zip
bitkeeper revision 1.735 (4035ec37QrObBVUp0-0jtnp646Qg3g)
xenolinux-sparse: new file Many files: Port to linux-2.4.25 .del-xenolinux-sparse~6c1e6e8b9138ffe9: Delete: xenolinux-sparse Many files: mvdir
Diffstat (limited to 'xenolinux-2.4.25-sparse/arch/xeno/boot/Makefile')
-rw-r--r--xenolinux-2.4.25-sparse/arch/xeno/boot/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/xenolinux-2.4.25-sparse/arch/xeno/boot/Makefile b/xenolinux-2.4.25-sparse/arch/xeno/boot/Makefile
new file mode 100644
index 0000000000..290783cc62
--- /dev/null
+++ b/xenolinux-2.4.25-sparse/arch/xeno/boot/Makefile
@@ -0,0 +1,22 @@
+#
+# arch/xeno/boot/Makefile
+#
+
+xenolinux.gz: xenolinux
+ gzip -f -9 < $< > $@
+
+xenolinux: $(TOPDIR)/vmlinux
+ # Guest OS header -- first 8 bytes are identifier 'XenoGues'.
+ echo -e -n 'XenoGues' >$@
+ # Guest OS header -- next 4 bytes are load address (0xC0000000).
+ echo -e -n '\000\000\000\300' >>$@
+ $(OBJCOPY) $< xenolinux.body
+ # Guest OS header is immediately followed by raw OS image.
+ # Start address must be at byte 0.
+ cat xenolinux.body >>$@
+ rm -f xenolinux.body
+
+dep:
+
+clean:
+ rm -f xenolinux xenolinux.gz \ No newline at end of file