summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/v86d/v86d
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/v86d/v86d')
-rw-r--r--meta/recipes-bsp/v86d/v86d/Support-for-cross-compilation.patch34
-rw-r--r--meta/recipes-bsp/v86d/v86d/aarch64-host.patch18
2 files changed, 34 insertions, 18 deletions
diff --git a/meta/recipes-bsp/v86d/v86d/Support-for-cross-compilation.patch b/meta/recipes-bsp/v86d/v86d/Support-for-cross-compilation.patch
new file mode 100644
index 0000000000..15f70a59aa
--- /dev/null
+++ b/meta/recipes-bsp/v86d/v86d/Support-for-cross-compilation.patch
@@ -0,0 +1,34 @@
1From 8eda59654fd31416164c78f6068715b01767ed4e Mon Sep 17 00:00:00 2001
2From: Serhey Popovych <serhe.popovych@gmail.com>
3Date: Wed, 31 Oct 2018 07:31:47 -0400
4Subject: v86d: Support for cross compilation
5
6It is common to build on one system for another (e.g. on IBM Power
7machine for Intel x86) where HOST_ARCH (uname -m) != TARGET_ARCH.
8
9Take TARGET_ARCH from environment if it is given, otherwise fall back
10to `uname -m`.
11
12Upstream-Status: Pending
13Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
14---
15 configure | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18diff --git a/configure b/configure
19index cbbd6b3..046aa99 100755
20--- a/configure
21+++ b/configure
22@@ -23,7 +23,8 @@ copt_x86emu_type="bool"
23 copt_x86emu_def=auto
24 copt_x86emu_test()
25 {
26- local m=`uname -m`
27+ local m="${TARGET_ARCH:-$(uname -m)}"
28+
29 if [ "$m" = "i686" -o "$m" = "i586" -o "$m" = "i486" -o "$m" = "i386" ]; then
30 echo "n";
31 elif [ "$m" = "x86_64" ]; then
32--
331.8.3.1
34
diff --git a/meta/recipes-bsp/v86d/v86d/aarch64-host.patch b/meta/recipes-bsp/v86d/v86d/aarch64-host.patch
deleted file mode 100644
index 701fed7b5d..0000000000
--- a/meta/recipes-bsp/v86d/v86d/aarch64-host.patch
+++ /dev/null
@@ -1,18 +0,0 @@
1Accept aarch64 as valid build host
2
3Upstream-Status: Pending
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5
6Index: v86d-0.1.10/configure
7===================================================================
8--- v86d-0.1.10.orig/configure
9+++ v86d-0.1.10/configure
10@@ -26,7 +26,7 @@ copt_x86emu_test()
11 local m=`uname -m`
12 if [ "$m" = "i686" -o "$m" = "i586" -o "$m" = "i486" -o "$m" = "i386" ]; then
13 echo "n";
14- elif [ "$m" = "x86_64" ]; then
15+ elif [ "$m" = "x86_64" -o "$m" = "aarch64" ]; then
16 echo "y";
17 else
18 echo "It looks like your architecture '$m' isn't supported by this version of v86d." >&2