mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
- the external-toolchain.mk is not parallel-safe, so ignore it.
- first step of minor adjustments to allow for a toplevel 'make -j128' (regardless of BR2_JLEVEL)
This commit is contained in:
parent
e0fc615c1e
commit
acc706b7b6
17
Makefile
17
Makefile
@ -155,10 +155,12 @@ PREFERRED_LIB_FLAGS:=--enable-static --enable-shared
|
|||||||
#
|
#
|
||||||
##############################################################
|
##############################################################
|
||||||
ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
|
ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
|
||||||
TARGETS:=uclibc-configured binutils gcc uclibc-target-utils
|
BASE_TARGETS:=uclibc-configured binutils gcc uclibc-target-utils
|
||||||
else
|
else
|
||||||
TARGETS:=uclibc
|
BASE_TARGETS:=uclibc
|
||||||
endif
|
endif
|
||||||
|
TARGETS:=
|
||||||
|
|
||||||
|
|
||||||
PROJECT:=$(strip $(subst ",,$(BR2_PROJECT)))
|
PROJECT:=$(strip $(subst ",,$(BR2_PROJECT)))
|
||||||
#"))
|
#"))
|
||||||
@ -167,7 +169,6 @@ TARGET_HOSTNAME:=$(strip $(subst ",,$(BR2_HOSTNAME)))
|
|||||||
BANNER:=$(strip $(subst ",,$(BR2_BANNER)))
|
BANNER:=$(strip $(subst ",,$(BR2_BANNER)))
|
||||||
#"))
|
#"))
|
||||||
|
|
||||||
|
|
||||||
include toolchain/Makefile.in
|
include toolchain/Makefile.in
|
||||||
include package/Makefile.in
|
include package/Makefile.in
|
||||||
|
|
||||||
@ -186,10 +187,17 @@ include .config.cmd
|
|||||||
# We also need the various per-package makefiles, which also add
|
# We also need the various per-package makefiles, which also add
|
||||||
# each selected package to TARGETS if that package was selected
|
# each selected package to TARGETS if that package was selected
|
||||||
# in the .config file.
|
# in the .config file.
|
||||||
|
ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
|
||||||
|
# avoid pulling in external toolchain which is broken for toplvl parallel builds
|
||||||
|
include $(filter-out $(wildcard toolchain/external-toolchain/*),$(wildcard toolchain/*/*.mk))
|
||||||
|
else
|
||||||
include toolchain/*/*.mk
|
include toolchain/*/*.mk
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LINUX),y)
|
ifeq ($(BR2_PACKAGE_LINUX),y)
|
||||||
TARGETS+=linux26-modules
|
TARGETS+=linux26-modules
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include package/*/*.mk
|
include package/*/*.mk
|
||||||
|
|
||||||
# target stuff is last so it can override anything else
|
# target stuff is last so it can override anything else
|
||||||
@ -199,6 +207,9 @@ TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
|
|||||||
TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS))
|
TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS))
|
||||||
TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
|
TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
|
||||||
|
|
||||||
|
# all targets depend on the crosscompiler and it's prerequisites
|
||||||
|
$(TARGETS): $(BASE_TARGETS)
|
||||||
|
|
||||||
world: $(DL_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) \
|
world: $(DL_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) \
|
||||||
$(BINARIES_DIR) $(STAGING_DIR) $(TARGET_DIR) bsp $(TARGETS)
|
$(BINARIES_DIR) $(STAGING_DIR) $(TARGET_DIR) bsp $(TARGETS)
|
||||||
dirs: $(DL_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) $(STAGING_DIR)
|
dirs: $(DL_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) $(STAGING_DIR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user