2 # Makefile for a ramdisk image
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).
9 O_FORMAT = $(shell $(OBJDUMP) -i | head -2 | grep elf32)
10 img = $(CONFIG_EMBEDDED_RAMDISK_IMAGE)
11 ramdisk.o: $(subst ",,$(img)) ld.script
12 echo "O_FORMAT: " $(O_FORMAT)
13 $(LD) $(LDFLAGS) -T ld.script -b binary --oformat $(O_FORMAT) -o $@ $(img)
15 include $(TOPDIR)/Rules.make