darwin: Actually make nproc run
Erm... $$ escapes to the shell, the shell tries to run shell and says WAT?
This fixes that. =o)
Change-Id: I29c69fa450782bd905c9ee4377c54ed138778809
diff --git a/docker.mk b/docker.mk
index 208e2cc..122e9a7 100644
--- a/docker.mk
+++ b/docker.mk
@@ -68,7 +68,7 @@
adduser $(shell id -u -n) docker; \
/etc/init.d/docker start; \
sudo -E -u $(shell id -u -n) /bin/bash -c "source build/setup.sh; m \
- -j$$(shell nproc) $*";'
+ -j$$(nproc) $*";'
# Macro for running make target in arm64 docker image
define docker-arm64-run
@@ -93,7 +93,7 @@
useradd -m -e "" -s /bin/bash --gid $$(shell id -g) --uid $$(shell id -u) $$(shell id -u -n); \
passwd -d $$(shell id -u -n); \
echo "$$(shell id -u -n) ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers; \
- source build/setup.sh; m -j$$(shell nproc) $2'
+ source build/setup.sh; m -j$$(nproc) $2'
endef
# Test x86 docker ('m docker-test-docker')