1 Description: use generic march on arm64 when using 'default' machine
2 When building for generic distribution we need a stable baseline
3 architecture, or depending on the build worker the result will vary.
5 Force the default flags if the user explicitly sets marchine=default
7 Author: Luca Boccassi <bluca@debian.org>
8 Forwarded: https://patches.dpdk.org/patch/49259/
9 --- a/config/arm/meson.build
10 +++ b/config/arm/meson.build
12 march_opt = '-march=@0@'.format(machine)
14 arm_force_native_march = false
15 +arm_force_default_march = machine == 'default'
17 machine_args_generic = [
18 ['default', ['-march=armv8-a+crc+crypto']],
19 @@ -102,7 +103,11 @@ else
20 cmd_generic = ['generic', '', '', 'default', '']
21 cmd_output = cmd_generic # Set generic by default
22 machine_args = [] # Clear previous machine args
23 - if not meson.is_cross_build()
24 + if arm_force_default_march and not meson.is_cross_build()
25 + machine = impl_generic
26 + cmd_output = cmd_generic
28 + elif not meson.is_cross_build()
29 # The script returns ['Implementer', 'Variant', 'Architecture',
30 # 'Primary Part number', 'Revision']
31 detect_vendor = find_program(join_paths(