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