From: <aot...@us...> - 2004-07-30 21:06:59
|
Update of /cvsroot/gc-linux/linux/arch/ppc/boot/simple In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26574/arch/ppc/boot/simple Modified Files: Makefile Log Message: -0x80000000 is not a valid incremental value to objcopy --change-addresses. Fix that up while adding .dol-specific targets to consolidate things. We still need to generate the actual .dols, however. Index: Makefile =================================================================== RCS file: /cvsroot/gc-linux/linux/arch/ppc/boot/simple/Makefile,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Makefile 16 Jun 2004 17:30:42 -0000 1.6 +++ Makefile 30 Jul 2004 21:06:51 -0000 1.7 @@ -113,6 +113,10 @@ entrypoint-$(CONFIG_SPRUCE) := 0x00800000 misc-$(CONFIG_SPRUCE) += misc-spruce.o + zimage-$(CONFIG_GAMECUBE) := zImage-DOL +zimageinitrd-$(CONFIG_GAMECUBE) := zImage.initrd-DOL + end-$(CONFIG_GAMECUBE) := dol + # SMP images should have a '.smp' suffix. end-$(CONFIG_SMP) := $(end-y).smp @@ -167,7 +171,7 @@ --set-section-flags=.image=contents,alloc,load,readonly,data \ $(obj)/dummy.o $(obj)/image.o $(LD) $(LD_ARGS) -o $@ $(OBJS) $(obj)/image.o $(LIBS) - $(OBJCOPY) $(OBJCOPY_ARGS) $@ $@ --change-addresses=-0x80000000 -R .comment -R .stab \ + $(OBJCOPY) $(OBJCOPY_ARGS) $@ $@ -R .comment -R .stab \ -R .stabstr -R .ramdisk -R .sysmap $(obj)/zvmlinux.initrd: $(OBJS) $(LIBS) $(srctree)/$(boot)/ld.script \ @@ -179,7 +183,7 @@ --set-section-flags=.image=contents,alloc,load,readonly,data \ $(obj)/dummy.o $(obj)/image.o $(LD) $(LD_ARGS) -o $@ $(OBJS) $(obj)/image.o $(LIBS) - $(OBJCOPY) $(OBJCOPY_ARGS) $@ $@ --change-addresses=-0x80000000 -R .comment -R .stab \ + $(OBJCOPY) $(OBJCOPY_ARGS) $@ $@ -R .comment -R .stab \ -R .stabstr -R .sysmap # Sort-of dummy rules, that let us format the image we want. @@ -218,3 +222,16 @@ $(images)/zImage.initrd-PPLUS: $(obj)/zvmlinux.initrd $(MKPREP) $(MKBUGBOOT) $(MKPREP) -pbp $(obj)/zvmlinux.initrd $(images)/zImage.initrd.$(end-y) $(MKBUGBOOT) $(obj)/zvmlinux.initrd $(images)/zImage.initrd.bugboot + +# +# FIXME Must generate actual .dol's. All we're doing ATM is just adjusting +# VMA/LMA addresses of all sections in the respective images so we can just +# feed the result into `doltool'. Ick. +# +$(images)/zImage-DOL: $(obj)/zvmlinux + $(OBJCOPY) $(OBJCOPY_ARGS) $(obj)/zvmlinux $(obj)/zvmlinux \ + --change-addresses=0x80000000 + +$(images)/zImage.initrd-DOL: $(obj)/zvmlinux.initrd + $(OBJCOPY) $(OBJCOPY_ARGS) $(obj)/zvmlinux.initrd \ + $(obj)/zvmlinux.initrd --change-addresses=0x80000000 |