summaryrefslogtreecommitdiff
path: root/release/src/linux/linux/arch/mips/ramdisk/Makefile
blob: 50c4049150f9037ebe097edc8c71daa87a3fbdff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# Makefile for a ramdisk image
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
O_FORMAT = $(shell $(OBJDUMP) -i | head -2 | grep elf32)
img = $(subst ",,$(CONFIG_EMBEDDED_RAMDISK_IMAGE))

ramdisk.o: $(img) ld.script
	echo "O_FORMAT:  " $(O_FORMAT)
	$(LD) -T ld.script -b binary --oformat $(O_FORMAT) -o $@ $(img)

include $(TOPDIR)/Rules.make