mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
Makefile: move .NOTPARALLEL statement after including .config file
In a follow-up commit, we will make the .NOTPARALLEL statement conditional on a Config.in option, so we need to move it further down. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
d0f4f95e39
commit
052fec0c08
32
Makefile
32
Makefile
@ -105,22 +105,6 @@ ifneq ($(firstword $(sort $(RUNNING_MAKE_VERSION) $(MIN_MAKE_VERSION))),$(MIN_MA
|
|||||||
$(error You have make '$(RUNNING_MAKE_VERSION)' installed. GNU make >= $(MIN_MAKE_VERSION) is required)
|
$(error You have make '$(RUNNING_MAKE_VERSION)' installed. GNU make >= $(MIN_MAKE_VERSION) is required)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Parallel execution of this Makefile is disabled because it changes
|
|
||||||
# the packages building order, that can be a problem for two reasons:
|
|
||||||
# - If a package has an unspecified optional dependency and that
|
|
||||||
# dependency is present when the package is built, it is used,
|
|
||||||
# otherwise it isn't (but compilation happily proceeds) so the end
|
|
||||||
# result will differ if the order is swapped due to parallel
|
|
||||||
# building.
|
|
||||||
# - Also changing the building order can be a problem if two packages
|
|
||||||
# manipulate the same file in the target directory.
|
|
||||||
#
|
|
||||||
# Taking into account the above considerations, if you still want to execute
|
|
||||||
# this top-level Makefile in parallel comment the ".NOTPARALLEL" line and
|
|
||||||
# use the -j<jobs> option when building, e.g:
|
|
||||||
# make -j$((`getconf _NPROCESSORS_ONLN`+1))
|
|
||||||
.NOTPARALLEL:
|
|
||||||
|
|
||||||
# absolute path
|
# absolute path
|
||||||
TOPDIR := $(CURDIR)
|
TOPDIR := $(CURDIR)
|
||||||
CONFIG_CONFIG_IN = Config.in
|
CONFIG_CONFIG_IN = Config.in
|
||||||
@ -246,6 +230,22 @@ ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
|
|||||||
-include $(BR2_CONFIG)
|
-include $(BR2_CONFIG)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Parallel execution of this Makefile is disabled because it changes
|
||||||
|
# the packages building order, that can be a problem for two reasons:
|
||||||
|
# - If a package has an unspecified optional dependency and that
|
||||||
|
# dependency is present when the package is built, it is used,
|
||||||
|
# otherwise it isn't (but compilation happily proceeds) so the end
|
||||||
|
# result will differ if the order is swapped due to parallel
|
||||||
|
# building.
|
||||||
|
# - Also changing the building order can be a problem if two packages
|
||||||
|
# manipulate the same file in the target directory.
|
||||||
|
#
|
||||||
|
# Taking into account the above considerations, if you still want to execute
|
||||||
|
# this top-level Makefile in parallel comment the ".NOTPARALLEL" line and
|
||||||
|
# use the -j<jobs> option when building, e.g:
|
||||||
|
# make -j$((`getconf _NPROCESSORS_ONLN`+1))
|
||||||
|
.NOTPARALLEL:
|
||||||
|
|
||||||
# timezone and locale may affect build output
|
# timezone and locale may affect build output
|
||||||
ifeq ($(BR2_REPRODUCIBLE),y)
|
ifeq ($(BR2_REPRODUCIBLE),y)
|
||||||
export TZ = UTC
|
export TZ = UTC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user