summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-12-16 19:47:07 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-28 23:25:41 +0000
commita16e357f261c92bf7da12b630b3ecf4f09b31bbd (patch)
tree0756974d2e782e103a2b2f6d690382f26908d072
parentbd738b5e53ecb2b3e4e59c539c7538687cac412d (diff)
downloadpoky-a16e357f261c92bf7da12b630b3ecf4f09b31bbd.tar.gz
systemd-bootchart: Add mips64 tuples
(From OE-Core rev: aa3ed11b270d8876d32f7c9b6a2453aab2e2da9d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/systemd-bootchart/systemd-bootchart/mips64.patch35
-rw-r--r--meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb1
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/mips64.patch b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/mips64.patch
new file mode 100644
index 0000000000..6206bc4b44
--- /dev/null
+++ b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/mips64.patch
@@ -0,0 +1,35 @@
1Recognise mips64 n32/n64
2
3These are supported in systemd now a days
4
5Upstream-Status: Backport [https://github.com/systemd/systemd/commit/caf49b95b3a6efe9455078098c729d83b08e5206]
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8--- a/src/architecture.h
9+++ b/src/architecture.h
10@@ -127,13 +127,22 @@ int uname_architecture(void);
11 # define native_architecture() ARCHITECTURE_SPARC
12 # define LIB_ARCH_TUPLE "sparc-linux-gnu"
13 # define PROC_CPUINFO_MODEL "cpu"
14-#elif defined(__mips64__)
15+#elif defined(__mips64) && defined(__LP64__)
16 # if __BYTE_ORDER == __BIG_ENDIAN
17 # define native_architecture() ARCHITECTURE_MIPS64
18-# error "Missing LIB_ARCH_TUPLE for MIPS64"
19+# define LIB_ARCH_TUPLE "mips64-linux-gnuabi64"
20 # else
21 # define native_architecture() ARCHITECTURE_MIPS64_LE
22-# error "Missing LIB_ARCH_TUPLE for MIPS64_LE"
23+# define LIB_ARCH_TUPLE "mips64el-linux-gnuabi64"
24+# endif
25+# define PROC_CPUINFO_MODEL "cpu model"
26+#elif defined(__mips64)
27+# if __BYTE_ORDER == __BIG_ENDIAN
28+# define native_architecture() ARCHITECTURE_MIPS64
29+# define LIB_ARCH_TUPLE "mips64-linux-gnuabin32"
30+# else
31+# define native_architecture() ARCHITECTURE_MIPS64_LE
32+# define LIB_ARCH_TUPLE "mips64el-linux-gnuabin32"
33 # endif
34 # define PROC_CPUINFO_MODEL "cpu model"
35 #elif defined(__mips__)
diff --git a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb
index 960edc75e6..a7a1f0ff1a 100644
--- a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb
+++ b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb
@@ -4,6 +4,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c
4 4
5SRC_URI = "git://github.com/systemd/systemd-bootchart.git;protocol=https \ 5SRC_URI = "git://github.com/systemd/systemd-bootchart.git;protocol=https \
6 file://0001-architecture-Recognise-RISCV-32-RISCV-64.patch \ 6 file://0001-architecture-Recognise-RISCV-32-RISCV-64.patch \
7 file://mips64.patch \
7" 8"
8 9
9SRC_URI_append_libc-musl = " \ 10SRC_URI_append_libc-musl = " \