1#
2# Makefile for a ramdisk image
3#
4# Note! Dependencies are done automagically by 'make dep', which also
5# removes any old dependencies. DON'T put your own dependencies here
6# unless it's something special (ie not a .c file).
7#
8O_FORMAT = $(shell $(OBJDUMP) -i | head -2 | grep elf32)
9img = $(subst ",,$(CONFIG_EMBEDDED_RAMDISK_IMAGE))
10
11ramdisk.o: $(img) ld.script
12	echo "O_FORMAT:  " $(O_FORMAT)
13	$(LD) -T ld.script -b binary --oformat $(O_FORMAT) -o $@ $(img)
14
15include $(TOPDIR)/Rules.make
16