Re: Bug#779710: systemd: Please add architecture support for Renesas SuperH (Debian sh4)
Control: tags -1 patch
On Wed, Mar 04, 2015 at 11:33:27AM +0100, John Paul Adrian Glaubitz wrote:
> Will also forward this upstream, but I hope this can also be backported to systemd-215
> so we don't have to wait until after the freeze that systemd works on the sh4 port
> of Debian.
Upstream has applied my patch that fixes the problem [1]. I am
attaching the patch in the hope that someone could apply it to the
systemd_215 package in Debian in order to fix systemd on the sh4 port
of Debian.
Cheers,
Adrian
> [1] http://cgit.freedesktop.org/systemd/systemd/patch/?id=3a867c6a2361c8af943d3ed452da6e8623a3f65d
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
>From e9241735cec20cd14b0044402cbef27837f68092 Mon Sep 17 00:00:00 2001
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Date: Thu, 5 Mar 2015 00:07:33 +0100
Subject: [PATCH] Use correct uname identifiers in arch_map for SuperH
architecture.
---
src/shared/architecture.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/shared/architecture.c b/src/shared/architecture.c
index 34c5a53..884abdd 100644
--- a/src/shared/architecture.c
+++ b/src/shared/architecture.c
@@ -108,8 +108,12 @@ int uname_architecture(void) {
{ "armv8l", ARCHITECTURE_ARM },
{ "armv8b", ARCHITECTURE_ARM_BE },
#elif defined(__sh__) || defined(__sh64__)
- { "sh64", ARCHITECTURE_SH64 },
- { "sh", ARCHITECTURE_SH },
+ { "sh5", ARCHITECTURE_SH64 },
+ { "sh2", ARCHITECTURE_SH },
+ { "sh2a", ARCHITECTURE_SH },
+ { "sh3", ARCHITECTURE_SH },
+ { "sh4", ARCHITECTURE_SH },
+ { "sh4a", ARCHITECTURE_SH },
#elif defined(__m68k__)
{ "m68k", ARCHITECTURE_M68K },
#elif defined(__tilegx__)
--
2.1.4
Reply to: