summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu/cross.patch
blob: d1256a12294589d04276344929c0883376f252ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From 76c3fc4c87231bed32974ebbbdb5079cff45a6b7 Mon Sep 17 00:00:00 2001
From: Richard Purdie <richard.purdie@linuxfoundation.org>
Date: Tue, 5 Jan 2021 23:00:14 +0000
Subject: [PATCH 12/12] qemu: Upgrade 5.1.0->5.2.0

We need to be able to trigger configure's cross code but we don't want
to set cross_prefix as it does other things we don't want. Patch things
so we can do what we need in the target config case.

Upstream-Status: Inappropriate [may be rewritten in a way upstream may accept?]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

---
 configure | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/configure b/configure
index 7c08c1835..0613279f9 100755
--- a/configure
+++ b/configure
@@ -3118,7 +3118,6 @@ if test "$skip_meson" = no; then
   fi
   echo "strip = [$(meson_quote $strip)]" >> $cross
   echo "windres = [$(meson_quote $windres)]" >> $cross
-  if test "$cross_compile" = "yes"; then
     cross_arg="--cross-file config-meson.cross"
     echo "[host_machine]" >> $cross
     echo "system = '$targetos'" >> $cross
@@ -3136,9 +3135,6 @@ if test "$skip_meson" = no; then
     else
         echo "endian = 'little'" >> $cross
     fi
-  else
-    cross_arg="--native-file config-meson.cross"
-  fi
   mv $cross config-meson.cross
 
   rm -rf meson-private meson-info meson-logs
-- 
2.30.2