From: Pete P. <pp...@us...> - 2001-11-12 19:11:35
|
Update of /cvsroot/linux-mips/linux/arch/mips/ramdisk In directory usw-pr-cvs1:/tmp/cvs-serv15281/arch/mips/ramdisk Modified Files: Makefile Added Files: ld.script Removed Files: ld.script.in Log Message: The generic ramdisk support was broken. One of the problems was that different toolchains have different default output targets -- the elf32-trad{little/big}mips vs elf32-{little/big}mips. The updated Makefile uses objdump to figure out the proper output format. --- NEW FILE: ld.script --- OUTPUT_ARCH(mips) SECTIONS { .initrd : { *(.data) } } Index: Makefile =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/ramdisk/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile 2001/10/05 21:04:46 1.1 +++ Makefile 2001/11/12 19:11:33 1.2 @@ -6,8 +6,10 @@ # unless it's something special (ie not a .c file). # +O_FORMAT = $(shell $(OBJDUMP) -i | head -2 | grep elf32) ramdisk.o: ramdisk.gz ld.script - $(LD) -T ld.script -b binary -o $@ ramdisk.gz + echo "O_FORMAT: " $(O_FORMAT) + $(LD) -T ld.script -b binary --oformat $(O_FORMAT) -o $@ ramdisk.gz include $(TOPDIR)/Rules.make --- ld.script.in DELETED --- |