* [PATCH resend] openrisc: Support both old (or32) and new (or1k) toolchain
@ 2015-05-13 16:56 Guenter Roeck
0 siblings, 0 replies; only message in thread
From: Guenter Roeck @ 2015-05-13 16:56 UTC (permalink / raw)
To: linux-kernel
Cc: openrisc, Jonas Bonn, Paul Bolle, anees, Andrew Morton,
Guenter Roeck, Stefan Kristiansson
The output file format for openrisc has changed from "elf32-or32"
to "elf32-or1k" when using the or1k instead of the older or32 toochain.
Select the correct output format automatically to be able to compile
the kernel with both toolchain variants.
Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Acked-by: Jonas Bonn <jonas@southpole.se>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
Andrew, please apply this patch directly. Per Jonas: "Unfortunately, I'm not
currently in a position to do anything meaningful with it, so please send it
upstream directly via Andrew Morton's collection of assorted patches"
arch/openrisc/kernel/vmlinux.lds.S | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/arch/openrisc/kernel/vmlinux.lds.S b/arch/openrisc/kernel/vmlinux.lds.S
index 2d69a853b742..1c5d21a10305 100644
--- a/arch/openrisc/kernel/vmlinux.lds.S
+++ b/arch/openrisc/kernel/vmlinux.lds.S
@@ -30,7 +30,13 @@
#include <asm/cache.h>
#include <asm-generic/vmlinux.lds.h>
-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
--
2.1.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-13 16:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-13 16:56 [PATCH resend] openrisc: Support both old (or32) and new (or1k) toolchain Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®