From: Guenter Roeck Date: Sat, 19 Jul 2014 21:39:08 +0000 (+0300) Subject: openrisc: Support both old (or32) and new (or1k) toolchain X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1f43e235dfc44be335e484dae88928e997036026;p=openwrt%2Fstaging%2Fblogic.git openrisc: Support both old (or32) and new (or1k) toolchain The output file format for or1k has changed from "elf32-or32" to "elf32-or1k". Select the correct output format automatically to be able to compile the kernel with both toolchain variants. Signed-off-by: Guenter Roeck Tested-by: Guenter Roeck Signed-off-by: Stafford Horne --- diff --git a/arch/openrisc/kernel/vmlinux.lds.S b/arch/openrisc/kernel/vmlinux.lds.S index d68b9ede8423..ef31fc24344e 100644 --- a/arch/openrisc/kernel/vmlinux.lds.S +++ b/arch/openrisc/kernel/vmlinux.lds.S @@ -30,7 +30,13 @@ #include #include -OUTPUT_FORMAT("elf32-or32", "elf32-or32", "elf32-or32") +#ifdef __OR1K__ +#define __OUTPUT_FORMAT "elf32-or1k" +#else +#define __OUTPUT_FORMAT "elf32-or32" +#endif + +OUTPUT_FORMAT(__OUTPUT_FORMAT, __OUTPUT_FORMAT, __OUTPUT_FORMAT) jiffies = jiffies_64 + 4; SECTIONS