[PATCH 2.6.8.1] Fix EMBEDDED_RAMDISK with O= on SuperH
Tom Rini <[email protected]> Fri, 15 Oct 2004 11:38:02 -0700
| Newsgroups | gmane.linux.ports.sh.devel,gmane.linux.ports.sh.general |
|---|---|
| Message-ID | <[email protected]> |
[ Andrew, I'm cc'ing you since Paul sent you all of the other O= fixes recently ] The following fixes EMBEDDED_RAMDISK to work with O=. The problem was that we couldn't find the linker script, since we needed to specify the patch to the source tree for it. I've tested this with the ramdisk set to both 'ramdisk.gz' and '../ramdisk.gz'. I'll commit to CVS Monday afternoon (-0700) if no one objects. Signed-off-by: Tom Rini <[email protected]> --- linux-2.6.8.1.orig/arch/sh/ramdisk/Makefile +++ linux-2.6.8.1/arch/sh/ramdisk/Makefile @@ -12,8 +12,9 @@ img := $(subst $(src)//,/,$(src)/$(img)) quiet_cmd_ramdisk = LD $@ define cmd_ramdisk - $(LD) -T $(src)/ld.script -b binary --oformat $(O_FORMAT) -o $@ $(img) + $(LD) -T $(srctree)/$(src)/ld.script -b binary --oformat $(O_FORMAT) \ + -o $@ $(img) endef -$(obj)/ramdisk.o: $(img) $(src)/ld.script +$(obj)/ramdisk.o: $(img) $(srctree)/$(src)/ld.script $(call cmd,ramdisk) -- Tom Rini http://gate.crashing.org/~trini/ ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl