0001-config-meson-get-cpu_instruction_set-from-meson-opti.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 121e5d019f0bb6dec0ace2b361611edd10fc8ff8 Mon Sep 17 00:00:00 2001
  2. From: Lee Chee Yang <chee.yang.lee@intel.com>
  3. Date: Wed, 6 Dec 2023 16:58:10 +0800
  4. Subject: [PATCH] config/meson: get cpu_instruction_set from meson option
  5. Workaround error:
  6. | ../git/config/meson.build:178:8: ERROR: Problem encountered: Compiler
  7. does not support "x86_64" arch flag.
  8. Upstream-Status: Inappropriate [ yocto specific to set cpu_instruction_set ]
  9. Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
  10. Links: https://git.yoctoproject.org/meta-dpdk/plain/recipes-extended/dpdk/dpdk/0001-config-meson-get-cpu_instruction_set-from-meson-opti.patch
  11. Upstream: Not applicable, see Yocto's status, above
  12. Signed-off-by: Vincent Jardin <vjardin@free.fr>
  13. ---
  14. config/meson.build | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. diff --git a/config/meson.build b/config/meson.build
  17. index a9ccd56deb..f310c7adf6 100644
  18. --- a/config/meson.build
  19. +++ b/config/meson.build
  20. @@ -105,7 +105,7 @@ platform = get_option('platform')
  21. # set the cpu_instruction_set and cflags for it
  22. if meson.is_cross_build()
  23. - cpu_instruction_set = host_machine.cpu()
  24. + cpu_instruction_set = get_option('cpu_instruction_set')
  25. else
  26. cpu_instruction_set = get_option('cpu_instruction_set')
  27. machine = get_option('machine')
  28. --
  29. 2.37.3