bitkeeper revision 1.841 (406fe8ff7-2wwxC3TfeqP0n7iOUcCA)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Sun, 4 Apr 2004 10:52:47 +0000 (10:52 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Sun, 4 Apr 2004 10:52:47 +0000 (10:52 +0000)
Makefile:
  Install debug versions of Xen and Linux images, with symbols included.

xen/Makefile
xen/arch/i386/Makefile
xenolinux-2.4.25-sparse/arch/xen/Makefile

index e75d29963688bb611f79ae434964cb3b39eea794..2bfa261c39300bea90a87324ca5784df860ea3a4 100644 (file)
@@ -21,6 +21,7 @@ install: $(TARGET)
        gzip -f -9 < $(TARGET) > $(TARGET).gz
        mkdir -p $(prefix)/boot
        install -m0644 $(TARGET).gz $(prefix)/boot
+       install -m0644 $(TARGET).dbg $(prefix)/boot
 
 dist: $(TARGET)
        $(MAKE) prefix=`pwd`/../../install dist=yes install
index 6778324206e891ac24f743d16f8849da1f9ad02f..43b1b0ca05060691d09af5b2b17df8880260a03c 100644 (file)
@@ -10,7 +10,8 @@ include $(BASEDIR)/Rules.mk
 # wrapping that with a low-memory bootstrapper.)
 default: boot/boot.o $(OBJS)
        $(LD) -r -o arch.o $(OBJS)
-       $(LD) $(LDFLAGS) boot/boot.o $(ALL_OBJS) -o $(TARGET)
+       $(LD) $(LDFLAGS) boot/boot.o $(ALL_OBJS) -o $(TARGET).dbg
+       objcopy -R .note -R .comment -S $(TARGET).dbg $(TARGET)
        $(BASEDIR)/tools/elf-reloc $(MONITOR_BASE) $(LOAD_BASE) $(TARGET)
 
 clean:
index 214675d8ecae6742065afc4a6fce0a0917e0785a..3e210c1e542a9054a79b51daee40dd1dc9060e8b 100644 (file)
@@ -110,10 +110,12 @@ bzImage: vmlinux
 install: bzImage
        mkdir -p $(prefix)/boot
        install -m0644 arch/$(ARCH)/boot/xenolinux.gz $(prefix)/boot/xenolinux.gz
+       install -m0644 vmlinux $(prefix)/boot/xenolinux.dbg
 
 dist: bzImage
        mkdir -p ../install/boot
        install -m0644 arch/$(ARCH)/boot/xenolinux.gz ../install/boot/xenolinux.gz
+       install -m0644 vmlinux ../install/boot/xenolinux.dbg
 
 archclean:
        @$(MAKEBOOT) clean