Hello.
Trying to compile package on AMD Ryzen Threadripper machine with 64 cores.
If I add PKG_BUILD_PARALLEL:=1
to Makefile of the package I see following in logs during package compilation: make --jobserver-auth=3,4
which is taken from include/package.mk
:
MAKE_J:=$(if $(MAKE_JOBSERVER),$(MAKE_JOBSERVER) $(if $(filter 3.% 4.0 4.1,$(MAKE_VERSION)),-j))
ifeq ($(strip $(PKG_BUILD_PARALLEL)),0)
PKG_JOBS?=-j1
else
PKG_JOBS?=$(if $(PKG_BUILD_PARALLEL),$(MAKE_J),-j1)
endif
So I replaced it to:
ifeq ($(strip $(PKG_BUILD_PARALLEL)),0)
PKG_JOBS?=-j1
else
PKG_JOBS?=-j64
endif
But I think it is not proper way of achieving parallel compilation of package. Could someone point me to proper way of doing that?