Commit 0e604b12 authored by Tom Rini's avatar Tom Rini Committed by Linus Torvalds

[PATCH] sh: fix EMBEDDED_RAMDISK with O=

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'.
Signed-off-by: default avatarTom Rini <trini@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3e0ec195
......@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment