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


Groups > linux.kernel > #1647519 > unrolled thread

[PATCH 1/7] RISC-V: Top-Level Makefile for riscv{32,64}

Started byPalmer Dabbelt <palmer@dabbelt.com>
First post2017-05-23 02:50 +0200
Last post2017-05-23 13:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/7] RISC-V: Top-Level Makefile for riscv{32,64} Palmer Dabbelt <palmer@dabbelt.com> - 2017-05-23 02:50 +0200
    Re: [PATCH 1/7] RISC-V: Top-Level Makefile for riscv{32,64} Arnd Bergmann <arnd@arndb.de> - 2017-05-23 13:40 +0200

#1647519 — [PATCH 1/7] RISC-V: Top-Level Makefile for riscv{32,64}

FromPalmer Dabbelt <palmer@dabbelt.com>
Date2017-05-23 02:50 +0200
Subject[PATCH 1/7] RISC-V: Top-Level Makefile for riscv{32,64}
Message-ID<tK6bn-4ju-7@gated-at.bofh.it>
RISC-V has both 32-bit and 64-bit base ISAs, but they are very similar.
Like some other platforms, we'd like to share one arch directory between
the two of them.
---
 Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Makefile b/Makefile
index 63e10bd4f14a..0606f28cd4fd 100644
--- a/Makefile
+++ b/Makefile
@@ -269,6 +269,14 @@ ifeq ($(ARCH),x86_64)
         SRCARCH := x86
 endif
 
+# Additional ARCH settings for RISC-V
+ifeq ($(ARCH),riscv32)
+	SRCARCH := riscv
+endif
+ifeq ($(ARCH),riscv64)
+	SRCARCH := riscv
+endif
+
 # Additional ARCH settings for sparc
 ifeq ($(ARCH),sparc32)
        SRCARCH := sparc
-- 
2.13.0

[toc] | [next] | [standalone]


#1647957

FromArnd Bergmann <arnd@arndb.de>
Date2017-05-23 13:40 +0200
Message-ID<tKgkq-2A2-9@gated-at.bofh.it>
In reply to#1647519
On Tue, May 23, 2017 at 2:41 AM, Palmer Dabbelt <palmer@dabbelt.com> wrote:
> RISC-V has both 32-bit and 64-bit base ISAs, but they are very similar.
> Like some other platforms, we'd like to share one arch directory between
> the two of them.

I think we mainly do the others for backwards-compatibility with ancient
build scripts, and we don't need that here. Instead, you could add one more
line to the 'SUBARCH:=' statement that interprets the uname output.

        Arnd

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web