Commit 8b57232b authored by Jim Harris's avatar Jim Harris
Browse files

dpdkbuild: add -Dplatform=generic when ARM part number is 0



This is very convenient for those of us using Linux VMs on MacBooks
where the part number is 0. Before this patch we had to pass this
option on the `make` line when first building DPDK.

Signed-off-by: default avatarJim Harris <jim.harris@samsung.com>
Change-Id: Ib7c3d6685f26d2d758bbf9906590e801fbae086d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24818


Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: default avatarBen Walker <ben@nvidia.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarMichal Berger <michal.berger@intel.com>
parent 4e45c563
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,10 @@ ifeq ($(shell uname -m),aarch64)
ifeq ($(shell uname -p),unknown)
# Unknown ARM platform. ARM doesn't do platform=native which is DPDK's default. So change it.
DPDK_OPTS += -Dplatform=generic
else
ifeq ($(shell $(SPDK_ROOT_DIR)/dpdk/config/arm/armv8_machine.py | cut -d' ' -f4),0x0)
DPDK_OPTS += -Dplatform=generic
endif
endif
endif