diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2021-12-02 04:43:20 -0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2022-01-14 11:21:55 -0800 |
commit | fdeec55408c77b06c725f8828da0de7be7503830 (patch) | |
tree | a051a2502a5e1a3ea82a7bb9266e55f09c041e2f /meta-microblaze/recipes-core | |
parent | c9afc4648479ca31bacfd1d814689794988ea5d9 (diff) | |
download | meta-xilinx-fdeec55408c77b06c725f8828da0de7be7503830.tar.gz |
microblaze systemd: Move initial patch from meta-petalinux
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-microblaze/recipes-core')
-rw-r--r-- | meta-microblaze/recipes-core/systemd/files/0001-architecture-Add-Micorblaze-architecture-to-systemd-.patch | 57 | ||||
-rw-r--r-- | meta-microblaze/recipes-core/systemd/systemd_%.bbappend | 4 |
2 files changed, 61 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-core/systemd/files/0001-architecture-Add-Micorblaze-architecture-to-systemd-.patch b/meta-microblaze/recipes-core/systemd/files/0001-architecture-Add-Micorblaze-architecture-to-systemd-.patch new file mode 100644 index 00000000..8b4f6dc8 --- /dev/null +++ b/meta-microblaze/recipes-core/systemd/files/0001-architecture-Add-Micorblaze-architecture-to-systemd-.patch | |||
@@ -0,0 +1,57 @@ | |||
1 | From 5c3f3f1b1b50d1e2a1a141943b94f08f19f59b6d Mon Sep 17 00:00:00 2001 | ||
2 | From: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | ||
3 | Date: Sun, 11 Apr 2021 20:04:06 -0700 | ||
4 | Subject: [PATCH] Add systemd support for microblaze architecture | ||
5 | |||
6 | Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | ||
7 | --- | ||
8 | src/basic/architecture.c | 3 +++ | ||
9 | src/basic/architecture.h | 4 ++++ | ||
10 | 2 files changed, 7 insertions(+) | ||
11 | |||
12 | diff --git a/src/basic/architecture.c b/src/basic/architecture.c | ||
13 | index 85837b5..dbcefbc 100644 | ||
14 | --- a/src/basic/architecture.c | ||
15 | +++ b/src/basic/architecture.c | ||
16 | @@ -54,6 +54,8 @@ int uname_architecture(void) { | ||
17 | { "mips", ARCHITECTURE_MIPS }, | ||
18 | #elif defined(__alpha__) | ||
19 | { "alpha" , ARCHITECTURE_ALPHA }, | ||
20 | +#elif defined(__microblaze__) | ||
21 | + { "microblaze" , ARCHITECTURE_MICROBLAZE }, | ||
22 | #elif defined(__arm__) || defined(__aarch64__) | ||
23 | { "aarch64", ARCHITECTURE_ARM64 }, | ||
24 | { "aarch64_be", ARCHITECTURE_ARM64_BE }, | ||
25 | @@ -173,6 +175,7 @@ static const char *const architecture_table[_ARCHITECTURE_MAX] = { | ||
26 | [ARCHITECTURE_RISCV64] = "riscv64", | ||
27 | [ARCHITECTURE_ARC] = "arc", | ||
28 | [ARCHITECTURE_ARC_BE] = "arc-be", | ||
29 | + [ARCHITECTURE_MICROBLAZE] = "microblaze", | ||
30 | }; | ||
31 | |||
32 | DEFINE_STRING_TABLE_LOOKUP(architecture, int); | ||
33 | diff --git a/src/basic/architecture.h b/src/basic/architecture.h | ||
34 | index 443e890..559ada9 100644 | ||
35 | --- a/src/basic/architecture.h | ||
36 | +++ b/src/basic/architecture.h | ||
37 | @@ -42,6 +42,7 @@ enum { | ||
38 | ARCHITECTURE_NIOS2, | ||
39 | ARCHITECTURE_RISCV32, | ||
40 | ARCHITECTURE_RISCV64, | ||
41 | + ARCHITECTURE_MICROBLAZE, | ||
42 | ARCHITECTURE_ARC, | ||
43 | ARCHITECTURE_ARC_BE, | ||
44 | _ARCHITECTURE_MAX, | ||
45 | @@ -229,6 +230,9 @@ int uname_architecture(void); | ||
46 | # define native_architecture() ARCHITECTURE_ARC | ||
47 | # define LIB_ARCH_TUPLE "arc-linux" | ||
48 | # endif | ||
49 | +#elif defined(__microblaze__) | ||
50 | +# define native_architecture() ARCHITECTURE_MICROBLAZE | ||
51 | +# define LIB_ARCH_TUPLE "microblazeel-xilinx-linux" | ||
52 | #else | ||
53 | # error "Please register your architecture here!" | ||
54 | #endif | ||
55 | -- | ||
56 | 2.7.4 | ||
57 | |||
diff --git a/meta-microblaze/recipes-core/systemd/systemd_%.bbappend b/meta-microblaze/recipes-core/systemd/systemd_%.bbappend new file mode 100644 index 00000000..7a063c6e --- /dev/null +++ b/meta-microblaze/recipes-core/systemd/systemd_%.bbappend | |||
@@ -0,0 +1,4 @@ | |||
1 | FILESEXTRAPATHS:append:microblaze := ":${THISDIR}/files" | ||
2 | SRC_URI:append:microblaze = " \ | ||
3 | file://0001-architecture-Add-Micorblaze-architecture-to-systemd-.patch \ | ||
4 | " | ||