Merge tag 'upstream/18.11-rc4' into 18.11.x
[deb_dpdk.git] / debian / patches / 0003-build-set-mfpu-neon-flag-for-armv7a-builds.patch
1 Description: build: set -mfpu=neon flag for armv7a builds
2  Building on armv7a with meson currenctly fails:
3
4  /usr/lib/gcc/arm-linux-gnueabihf/8/include/arm_neon.h:10369:1: error:
5     inlining failed in call to always_inline ‘vld1q_s32’: target
6     specific option mismatch
7
8  Set -mfpu=neon on that architecture like the legacy makefiles do to fix
9  the issue.
10 Forwarded: yes
11 Author: Luca Boccassi <bluca@debian.org>
12 Last-Update: 2018-11-15
13 --- a/config/arm/meson.build
14 +++ b/config/arm/meson.build
15 @@ -89,6 +89,9 @@ if cc.sizeof('void *') != 8
16         dpdk_conf.set('RTE_CACHE_LINE_SIZE', 64)
17         dpdk_conf.set('RTE_ARCH_ARM', 1)
18         dpdk_conf.set('RTE_ARCH_ARMv7', 1)
19 +       # the minimum architecture supported, armv7-a, needs the following,
20 +       # mk/machine/armv7a/rte.vars.mk sets it too
21 +       machine_args += '-mfpu=neon'
22  else
23         dpdk_conf.set('RTE_CACHE_LINE_SIZE', 128)
24         dpdk_conf.set('RTE_ARCH_ARM64', 1)