mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
makefiles/docker.inc.mk: use version_is_greater_or_equal for jobs check
This commit is contained in:
parent
e455ccd3c0
commit
c636a6501c
@ -109,9 +109,9 @@ ETC_LOCALTIME = $(realpath /etc/localtime)
|
||||
# $MAKEFLAGS, only that parallelism is requested. So only -j, even if
|
||||
# something like -j3 is specified. This can be unexpected and dangerous
|
||||
# in older make so don't enable parallelism if $MAKE_VERSION < 4.2
|
||||
MAKE_JOBS_NEEDS = 4.1.999
|
||||
MAKE_JOBS_NEEDS = 4.2.0
|
||||
MAKE_VERSION_OK = $(call memoized,MAKE_VERSION_OK,$(call \
|
||||
version_is_greater,$(MAKE_VERSION),$(MAKE_JOBS_NEEDS)))
|
||||
version_is_greater_or_equal,$(MAKE_VERSION),$(MAKE_JOBS_NEEDS)))
|
||||
DOCKER_MAKE_JOBS = $(if $(MAKE_VERSION_OK),$(filter -j%,$(MAKEFLAGS)),)
|
||||
DOCKER_MAKE_ARGS += $(DOCKER_MAKE_JOBS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user