summaryrefslogtreecommitdiffstats
path: root/recipes-extended/dpdk/dpdk/0001-config-meson-get-cpu_instruction_set-from-meson-opti.patch
blob: 92e3523cd8c8783d887621bc6e3ace09527d859e (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
From 121e5d019f0bb6dec0ace2b361611edd10fc8ff8 Mon Sep 17 00:00:00 2001
From: Lee Chee Yang <chee.yang.lee@intel.com>
Date: Wed, 6 Dec 2023 16:58:10 +0800
Subject: [PATCH] config/meson: get cpu_instruction_set from meson option

Workaround error:
| ../git/config/meson.build:178:8: ERROR: Problem encountered: Compiler
does not support "x86_64" arch flag.

Upstream-Status: Inappropriate [ yocto specific to set cpu_instruction_set ]

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
---
 config/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/meson.build b/config/meson.build
index a9ccd56deb..f310c7adf6 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -105,7 +105,7 @@ platform = get_option('platform')
 
 # set the cpu_instruction_set and cflags for it
 if meson.is_cross_build()
-    cpu_instruction_set = host_machine.cpu()
+    cpu_instruction_set = get_option('cpu_instruction_set')
 else
     cpu_instruction_set = get_option('cpu_instruction_set')
     machine = get_option('machine')
-- 
2.37.3