2 # Makefile for a ramdisk image
8 O_FORMAT
= $(shell $(OBJDUMP
) -i | head
-n
2 | grep elf32
)
9 img
:= $(subst ",,$(CONFIG_EMBEDDED_RAMDISK_IMAGE))
10 # add $(src) when $(img) is relative
11 img := $(subst $(src)//,/,$(src)/$(img))
13 quiet_cmd_ramdisk = LD $@
15 $(LD) -T $(srctree)/$(src)/ld.script -b binary --oformat $(O_FORMAT) \
19 $(obj)/ramdisk.o: $(img) $(srctree)/$(src)/ld.script