MIPS64 RAMDISK in 2.6
PATCH 1/1 MIPS64 RAMDISK in 2.6
Hello !
I needed the following patch to get the RAMDISK support working in MIPS64. Tested on the Broadcom SWARM. Please review
Thanks
Manish Lachwani
mips/ramdisk/Makefile renamed from mips/ramdisk/Makefile.orig +4 -0
@@ -5,7 +5,11 @@ obj-y += ramdisk.o +ifndef CONFIG_MIPS64 O_FORMAT = $(shell $(OBJDUMP) -i | head -n 2 | grep elf32) +else +O_FORMAT = $(shell $(OBJDUMP) -i | head -n 15 | grep elf64) +endif img := $(subst ",,$(CONFIG_EMBEDDED_RAMDISK_IMAGE)) # add $(src) when $(img) is relative img := $(subst $(src)//,/,$(src)/$(img))