aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@gmail.com>2018-11-15 17:24:04 +0000
committerLuca Boccassi <luca.boccassi@gmail.com>2018-11-15 17:24:04 +0000
commita59b8a356ed3ff9679700a1d66d3378eed492fd9 (patch)
treea5ec9dcf494bcbba0984d576ef93ad2b4c022dd6 /debian/patches
parentdd48bfeef15fc0c1415e443722efa26f6e855534 (diff)
Backport patch to fix armhf build
Change-Id: Ia375a31c984fca3a2d84381ec8c72dcfecf94bd6 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/0003-build-set-mfpu-neon-flag-for-armv7a-builds.patch24
-rw-r--r--debian/patches/series1
2 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/0003-build-set-mfpu-neon-flag-for-armv7a-builds.patch b/debian/patches/0003-build-set-mfpu-neon-flag-for-armv7a-builds.patch
new file mode 100644
index 00000000..2d8167a8
--- /dev/null
+++ b/debian/patches/0003-build-set-mfpu-neon-flag-for-armv7a-builds.patch
@@ -0,0 +1,24 @@
+Description: build: set -mfpu=neon flag for armv7a builds
+ Building on armv7a with meson currenctly fails:
+
+ /usr/lib/gcc/arm-linux-gnueabihf/8/include/arm_neon.h:10369:1: error:
+ inlining failed in call to always_inline ‘vld1q_s32’: target
+ specific option mismatch
+
+ Set -mfpu=neon on that architecture like the legacy makefiles do to fix
+ the issue.
+Forwarded: yes
+Author: Luca Boccassi <bluca@debian.org>
+Last-Update: 2018-11-15
+--- a/config/arm/meson.build
++++ b/config/arm/meson.build
+@@ -89,6 +89,9 @@ if cc.sizeof('void *') != 8
+ dpdk_conf.set('RTE_CACHE_LINE_SIZE', 64)
+ dpdk_conf.set('RTE_ARCH_ARM', 1)
+ dpdk_conf.set('RTE_ARCH_ARMv7', 1)
++ # the minimum architecture supported, armv7-a, needs the following,
++ # mk/machine/armv7a/rte.vars.mk sets it too
++ machine_args += '-mfpu=neon'
+ else
+ dpdk_conf.set('RTE_CACHE_LINE_SIZE', 128)
+ dpdk_conf.set('RTE_ARCH_ARM64', 1)
diff --git a/debian/patches/series b/debian/patches/series
index e4b9e681..e1efcb35 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-build-avoid-non-supported-march-on-ppc-meson.patch
0002-build-establish-an-invariant-machine-type.patch
+0003-build-set-mfpu-neon-flag-for-armv7a-builds.patch