diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2018-08-22 14:29:16 +0300 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2018-08-24 09:51:26 +0100 |
commit | 3f0e8877632ba8461e0d42c11fc2534ff39ed0c6 (patch) | |
tree | c2f1b7dc3612f15844302e36d1a1e252123366b1 /debian/rules | |
parent | a7614bcfa6174c7657669ff19085f6a2f30cc74f (diff) |
Enable building DPDK for armhf
Change-Id: I3f82b8c7a86e822a79a3e406b4877b4d2a58751d
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index 49352608..36286738 100755 --- a/debian/rules +++ b/debian/rules @@ -56,6 +56,12 @@ RTE_MACHINE ?= "armv8a" RTE_TARGET ?= "arm64-armv8a-linuxapp-gcc" INCLUDE_ARCH := arm else +ifneq (,$(filter $(DEB_HOST_ARCH), armhf)) +DPDK_CONFIG ?= "arm-armv7a-linuxapp-gcc" +RTE_MACHINE ?= "armv7a" +RTE_TARGET ?= "arm-armv7a-linuxapp-gcc" +INCLUDE_ARCH := arm +else ifneq (,$(filter $(DEB_HOST_ARCH), ppc64el)) DPDK_CONFIG ?= "ppc_64-power8-linuxapp-gcc" RTE_MACHINE ?= "power8" @@ -68,6 +74,7 @@ RTE_TARGET ?= "$(DEB_HOST_GNU_CPU)-default-linuxapp-gcc" INCLUDE_ARCH := x86 endif endif +endif DPDK_STATIC_DIR = "debian/build/static-root" DPDK_SHARED_DIR = "debian/build/shared-root" @@ -182,12 +189,15 @@ ifeq (,$(filter dpdk_config=%,$(DEB_BUILD_OPTIONS))) -e 's,(CONFIG_RTE_EAL_IGB_UIO=).*,\1$(DPDK_CONFIG_BUILD_KMOD),' \ -e 's,(CONFIG_RTE_KNI_KMOD=).*,\1$(DPDK_CONFIG_BUILD_KMOD),' \ -e 's,(LIBRTE_PMD_PCAP=).*,\1y,' \ - -e 's,(CONFIG_RTE_LIBRTE_MLX4_PMD=).*,\1y,' \ - -e 's,(CONFIG_RTE_LIBRTE_MLX5_PMD=).*,\1y,' \ -e 's,(CONFIG_RTE_EAL_PMD_PATH=).*,\1"/usr/lib/$(DEB_HOST_MULTIARCH)/$(DPDK_DRIVER_DIR)/",' \ + $(DPDK_STATIC_DIR)/.config +ifeq (,$(filter $(DEB_HOST_ARCH), armhf)) + sed -ri -e 's,(CONFIG_RTE_LIBRTE_MLX4_PMD=).*,\1y,' \ + -e 's,(CONFIG_RTE_LIBRTE_MLX5_PMD=).*,\1y,' \ -e 's,(LIBRTE_PMD_OPENSSL=).*,\1y,' \ $(DPDK_STATIC_DIR)/.config endif +endif echo "CONFIG_RTE_MAJOR_ABI=\"$(DPDK_ABI)\"" >> \ $(DPDK_STATIC_DIR)/.config # Intel IPSEC library is amd64-only |