aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build-root/Makefile2
-rw-r--r--dpdk/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/build-root/Makefile b/build-root/Makefile
index 6298ea1f22b..dd24b4c6583 100644
--- a/build-root/Makefile
+++ b/build-root/Makefile
@@ -644,7 +644,7 @@ configure_check_timestamp = \
# NB: GNU Make 4.2 will let us use '$(file </proc/cpuinfo)' to both test
# for file presence and content; for now this will have to do.
MAKE_PARALLEL_JOBS = -j $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo), \
- $(shell expr 2 '*' $$(grep -c ^processor /proc/cpuinfo)), 2)
+ $(shell grep -c ^processor /proc/cpuinfo), 2)
MAKE_PARALLEL_FLAGS = $(if $($(PACKAGE)_make_parallel_fails),,$(MAKE_PARALLEL_JOBS))
# Make command shorthand for packages & tools.
diff --git a/dpdk/Makefile b/dpdk/Makefile
index 9c9708cdabb..0f6cbce4003 100644
--- a/dpdk/Makefile
+++ b/dpdk/Makefile
@@ -148,7 +148,7 @@ endif
# NB: GNU Make 4.2 will let us use '$(file </proc/cpuinfo)' to both test
# for file presence and content; for now this will have to do.
JOBS := $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo),\
- $(shell expr 2 '*' $$(grep -c ^processor /proc/cpuinfo)), 2)
+ $(shell grep -c ^processor /proc/cpuinfo), 2)
# compiler/linker custom arguments
DPDK_CPU_CFLAGS := -pie -fPIC