Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1485074

[PATCH 5/7] openrisc: Support both old (or32) and new (or1k) toolchain

From Stafford Horne <shorne@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 5/7] openrisc: Support both old (or32) and new (or1k) toolchain
Date 2016-09-16 16:50 +0200
Message-ID <si2CK-608-29@gated-at.bofh.it> (permalink)
References <si2CJ-608-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Guenter Roeck <linux@roeck-us.net>

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 <linux@roeck-us.net>
Signed-off-by: Stafford Horne <shorne@gmail.com>
---
 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 d936de4..4a72d5d 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.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/7] openrisc: Misc fixes from backlog Stafford Horne <shorne@gmail.com> - 2016-09-16 16:50 +0200
  [PATCH 6/7] openrisc: add SMP and NR_CPUS Kconfig options Stafford Horne <shorne@gmail.com> - 2016-09-16 16:50 +0200
    Re: [PATCH 6/7] openrisc: add SMP and NR_CPUS Kconfig options Jonas Bonn <jonas@southpole.se> - 2016-09-19 16:40 +0200
      Re: [PATCH 6/7] openrisc: add SMP and NR_CPUS Kconfig options Stafford Horne <shorne@gmail.com> - 2016-09-19 17:00 +0200
  [PATCH 3/7] openrisc: restore call-saved regs on sigreturn Stafford Horne <shorne@gmail.com> - 2016-09-16 16:50 +0200
    Re: [PATCH 3/7] openrisc: restore call-saved regs on sigreturn Jonas Bonn <jonas@southpole.se> - 2016-09-19 16:50 +0200
      Re: [PATCH 3/7] openrisc: restore call-saved regs on sigreturn Stafford Horne <shorne@gmail.com> - 2016-09-19 17:00 +0200
  [PATCH 7/7] openrisc: remove the redundant of_platform_populate Stafford Horne <shorne@gmail.com> - 2016-09-16 16:50 +0200
    Re: [PATCH 7/7] openrisc: remove the redundant of_platform_populate Jonas Bonn <jonas@southpole.se> - 2016-09-19 16:40 +0200
      Re: [PATCH 7/7] openrisc: remove the redundant  of_platform_populate Stafford Horne <shorne@gmail.com> - 2016-09-19 17:00 +0200
      Re: [PATCH 7/7] openrisc: remove the redundant of_platform_populate Rob Herring <robh@kernel.org> - 2016-09-19 18:20 +0200
  [PATCH 5/7] openrisc: Support both old (or32) and new (or1k) toolchain Stafford Horne <shorne@gmail.com> - 2016-09-16 16:50 +0200
    Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k)  toolchain Guenter Roeck <linux@roeck-us.net> - 2016-09-18 17:30 +0200
      Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k)  toolchain Stafford Horne <shorne@gmail.com> - 2016-09-19 08:10 +0200
        Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k)  toolchain Guenter Roeck <linux@roeck-us.net> - 2016-09-19 09:20 +0200
          Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k)  toolchain Stafford Horne <shorne@gmail.com> - 2016-09-19 11:20 +0200
            Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k)  toolchain Guenter Roeck <linux@roeck-us.net> - 2016-09-19 15:20 +0200
              Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k)  toolchain Stafford Horne <shorne@gmail.com> - 2016-09-19 16:10 +0200
                Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k)  toolchain Jonas Bonn <jonas@southpole.se> - 2016-09-19 16:40 +0200
                Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k)  toolchain Guenter Roeck <linux@roeck-us.net> - 2016-09-19 17:00 +0200
                Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k)  toolchain Stafford Horne <shorne@gmail.com> - 2016-09-19 17:20 +0200
                Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k)  toolchain Guenter Roeck <linux@roeck-us.net> - 2016-09-19 16:50 +0200
                Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k)  toolchain Stafford Horne <shorne@gmail.com> - 2016-09-20 12:10 +0200
  [PATCH 1/7] Apply transparent_union attribute to union semun Stafford Horne <shorne@gmail.com> - 2016-09-16 16:50 +0200
    Re: [PATCH 1/7] Apply transparent_union attribute to union semun kbuild test robot <lkp@intel.com> - 2016-09-16 18:00 +0200
    Re: [PATCH 1/7] Apply transparent_union attribute to union semun kbuild test robot <lkp@intel.com> - 2016-09-17 01:40 +0200
      Re: [PATCH 1/7] Apply transparent_union attribute to union semun Stafford Horne <shorne@gmail.com> - 2016-09-17 02:10 +0200
    Re: [PATCH 1/7] Apply transparent_union attribute to union semun Stafford Horne <shorne@gmail.com> - 2016-09-19 16:50 +0200
    Re: [PATCH 1/7] Apply transparent_union attribute to union semun Jonas Bonn <jonas@southpole.se> - 2016-09-19 16:50 +0200
  Re: [PATCH 0/7] openrisc: Misc fixes from backlog Stafford Horne <shorne@gmail.com> - 2016-09-16 17:00 +0200

csiph-web