From 924fdf657f45dd191819148b7186725c6328408f Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Tue, 6 Apr 2021 18:56:25 +0200 Subject: DPDK buid: Fix sed command The previous way of concatenating strings would not work even in Python. Change-Id: Ice06f4a06fefbc4e42ee2572786244207dfefa11 Signed-off-by: Vratko Polak --- resources/libraries/bash/function/dpdk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/libraries') diff --git a/resources/libraries/bash/function/dpdk.sh b/resources/libraries/bash/function/dpdk.sh index 1da9aeead2..362524349c 100644 --- a/resources/libraries/bash/function/dpdk.sh +++ b/resources/libraries/bash/function/dpdk.sh @@ -91,7 +91,7 @@ function dpdk_compile () { sed_cmd="s/'RTE_MAX_LCORE', [0-9]*/'RTE_MAX_LCORE', $(nproc --all)/" sed -i "${sed_cmd}" "${sed_file}" || die "RTE_MAX_LCORE Patch failed" sed_cmd="s/'RTE_MAX_NUMA_NODES', [0-9]*/'RTE_MAX_NUMA_NODES', " - "$(echo /sys/devices/system/node/node* | wc -w)/" + sed_cmd+="$(echo /sys/devices/system/node/node* | wc -w)/" sed -i "${sed_cmd}" "${sed_file}" || die "RTE_MAX_NUMA_NODES Patch failed" # Patch L3FWD. -- cgit 1.2.3-korg