diff options
Diffstat (limited to 'meta/recipes-bsp/v86d/v86d/Support-for-cross-compilation.patch')
-rw-r--r-- | meta/recipes-bsp/v86d/v86d/Support-for-cross-compilation.patch | 34 |
1 files changed, 34 insertions, 0 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 @@ | |||
1 | From 8eda59654fd31416164c78f6068715b01767ed4e Mon Sep 17 00:00:00 2001 | ||
2 | From: Serhey Popovych <serhe.popovych@gmail.com> | ||
3 | Date: Wed, 31 Oct 2018 07:31:47 -0400 | ||
4 | Subject: v86d: Support for cross compilation | ||
5 | |||
6 | It is common to build on one system for another (e.g. on IBM Power | ||
7 | machine for Intel x86) where HOST_ARCH (uname -m) != TARGET_ARCH. | ||
8 | |||
9 | Take TARGET_ARCH from environment if it is given, otherwise fall back | ||
10 | to `uname -m`. | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com> | ||
14 | --- | ||
15 | configure | 3 ++- | ||
16 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/configure b/configure | ||
19 | index 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 | -- | ||
33 | 1.8.3.1 | ||
34 | |||