Re: [systemd-devel] [PATCH] architecture: Add nios2

2016-04-30 Thread Marek Vasut
On 04/30/2016 06:49 PM, Zbigniew Jędrzejewski-Szmek wrote:
> On Sat, Apr 30, 2016 at 02:04:32AM -, systemd github import bot wrote:
>> Patchset imported to github.
>> To create a pull request, one of the main developers has to initiate one via:
>> 
> 
> https://github.com/systemd/systemd/pull/3159
> 
Cool, thanks :)

-- 
Best regards,
Marek Vasut
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] [PATCH] architecture: Add nios2

2016-04-30 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Apr 30, 2016 at 02:04:32AM -, systemd github import bot wrote:
> Patchset imported to github.
> To create a pull request, one of the main developers has to initiate one via:
> 

https://github.com/systemd/systemd/pull/3159
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] [PATCH] architecture: Add nios2

2016-04-29 Thread systemd github import bot
Patchset imported to github.
To create a pull request, one of the main developers has to initiate one via:


--
Generated by https://github.com/haraldh/mail2git
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] architecture: Add nios2

2016-04-29 Thread Marek Vasut
Add nios2 architecture support. The nios2 is a softcore by Altera.

Signed-off-by: Marek Vasut 
---
 src/basic/architecture.c | 3 +++
 src/basic/architecture.h | 4 
 2 files changed, 7 insertions(+)

diff --git a/src/basic/architecture.c b/src/basic/architecture.c
index a9ecfc1..8e2c2b0 100644
--- a/src/basic/architecture.c
+++ b/src/basic/architecture.c
@@ -121,6 +121,8 @@ int uname_architecture(void) {
 { "tilegx", ARCHITECTURE_TILEGX   },
 #elif defined(__cris__)
 { "crisv32",ARCHITECTURE_CRIS },
+#elif defined(__nios2__)
+{ "nios2",  ARCHITECTURE_NIOS2},
 #else
 #error "Please register your architecture here!"
 #endif
@@ -171,6 +173,7 @@ static const char *const 
architecture_table[_ARCHITECTURE_MAX] = {
 [ARCHITECTURE_M68K] = "m68k",
 [ARCHITECTURE_TILEGX] = "tilegx",
 [ARCHITECTURE_CRIS] = "cris",
+[ARCHITECTURE_NIOS2] = "nios2",
 };
 
 DEFINE_STRING_TABLE_LOOKUP(architecture, int);
diff --git a/src/basic/architecture.h b/src/basic/architecture.h
index c22cbc8..91ec108 100644
--- a/src/basic/architecture.h
+++ b/src/basic/architecture.h
@@ -57,6 +57,7 @@ enum {
 ARCHITECTURE_M68K,
 ARCHITECTURE_TILEGX,
 ARCHITECTURE_CRIS,
+ARCHITECTURE_NIOS2,
 _ARCHITECTURE_MAX,
 _ARCHITECTURE_INVALID = -1
 };
@@ -187,6 +188,9 @@ int uname_architecture(void);
 #elif defined(__cris__)
 #  define native_architecture() ARCHITECTURE_CRIS
 #  error "Missing LIB_ARCH_TUPLE for CRIS"
+#elif defined(__nios2__)
+#  define native_architecture() ARCHITECTURE_NIOS2
+#  define LIB_ARCH_TUPLE "nios2-linux-gnu"
 #else
 #  error "Please register your architecture here!"
 #endif
-- 
2.8.0.rc3

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel