DPDK buid: Fix sed command 07/31907/1
authorVratko Polak <vrpolak@cisco.com>
Tue, 6 Apr 2021 16:56:25 +0000 (18:56 +0200)
committerVratko Polak <vrpolak@cisco.com>
Tue, 6 Apr 2021 16:56:25 +0000 (18:56 +0200)
The previous way of concatenating strings would not work even in Python.

Change-Id: Ice06f4a06fefbc4e42ee2572786244207dfefa11
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/libraries/bash/function/dpdk.sh

index 1da9aee..3625243 100644 (file)
@@ -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.

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.