From 81525cc4499646db5bf0d4fbd434b9d3bb3db8cd Mon Sep 17 00:00:00 2001 From: Nick Connolly Date: Tue, 23 Feb 2021 10:30:26 +0000 Subject: [PATCH] dpdkbuild: improve portability Default to the more common Linux/GNU 'sed' edit in-place argument, unless the platform is FreeBSD. Tested by visually checking rte_build_config.h to confirm that the sed in-place worked correctly. Signed-off-by: Nick Connolly Change-Id: I68be69658930fb20318ac3aa2413bbf4a358e9bc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6531 Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins --- dpdkbuild/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpdkbuild/Makefile b/dpdkbuild/Makefile index 5e073b347..b540d2fa0 100644 --- a/dpdkbuild/Makefile +++ b/dpdkbuild/Makefile @@ -121,7 +121,7 @@ DPDK_ALL_DRIVER_DIRS = $(shell find $(SPDK_ROOT_DIR)/dpdk/drivers -mindepth 1 -t DPDK_ALL_DRIVERS = $(DPDK_ALL_DRIVER_DIRS:$(SPDK_ROOT_DIR)/dpdk/drivers/%=%) DPDK_DISABLED_DRVERS = $(filter-out $(DPDK_DRIVERS),$(DPDK_ALL_DRIVERS)) -ifeq ($(OS),Linux) +ifneq ($(OS),FreeBSD) SED_INPLACE_FLAG = "-i" MESON_PREFIX = $(SPDK_ROOT_DIR)/dpdk/build else