build system: mark sub-make invocations as parallelizable
We rely on gnu make, so we can expect the jobserver to be around in parallel builds, too. Avoids some make warnings and slightly speeds up the build if those sub-makes are executed (eg for arm-trusted-firmware and vboot). Change-Id: I0e6a77f2813f7453d53e88e0214ad8c1b8689042 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/18263 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
be182ad380
commit
78a5f22994
2
Makefile
2
Makefile
|
@ -168,7 +168,7 @@ real-all: real-target
|
||||||
.SECONDEXPANSION:
|
.SECONDEXPANSION:
|
||||||
|
|
||||||
$(KCONFIG_AUTOHEADER): $(KCONFIG_CONFIG)
|
$(KCONFIG_AUTOHEADER): $(KCONFIG_CONFIG)
|
||||||
$(MAKE) oldconfig
|
+$(MAKE) oldconfig
|
||||||
|
|
||||||
# Add a new class of source/object files to the build system
|
# Add a new class of source/object files to the build system
|
||||||
add-class= \
|
add-class= \
|
||||||
|
|
|
@ -274,7 +274,7 @@ cbfs-files-processor-vsa= \
|
||||||
# arg2: output
|
# arg2: output
|
||||||
cbfs-files-processor-defconfig= \
|
cbfs-files-processor-defconfig= \
|
||||||
$(eval $(2): $(1) $(obj)/build.h; \
|
$(eval $(2): $(1) $(obj)/build.h; \
|
||||||
printf " CREATE $(2) (from $(1))\n"; \
|
+printf " CREATE $(2) (from $(1))\n"; \
|
||||||
printf "\# This image was built using coreboot " > $(2).tmp && \
|
printf "\# This image was built using coreboot " > $(2).tmp && \
|
||||||
grep "\<COREBOOT_VERSION\>" $(obj)/build.h |cut -d\" -f2 >> $(2).tmp && \
|
grep "\<COREBOOT_VERSION\>" $(obj)/build.h |cut -d\" -f2 >> $(2).tmp && \
|
||||||
$(MAKE) DOTCONFIG=$(1) DEFCONFIG=$(2).tmp2 savedefconfig && \
|
$(MAKE) DOTCONFIG=$(1) DEFCONFIG=$(2).tmp2 savedefconfig && \
|
||||||
|
@ -486,7 +486,7 @@ $(ROMCC_BIN): $(top)/util/romcc/romcc.c
|
||||||
IFDTOOL:=$(objutil)/ifdtool/ifdtool
|
IFDTOOL:=$(objutil)/ifdtool/ifdtool
|
||||||
$(IFDTOOL):
|
$(IFDTOOL):
|
||||||
@printf " Compile IFDTOOL\n"
|
@printf " Compile IFDTOOL\n"
|
||||||
$(MAKE) -C $(top)/util/ifdtool
|
+$(MAKE) -C $(top)/util/ifdtool
|
||||||
cp -a $(top)/util/ifdtool/ifdtool $@
|
cp -a $(top)/util/ifdtool/ifdtool $@
|
||||||
|
|
||||||
IFDFAKE:=$(objutil)/ifdfake/ifdfake
|
IFDFAKE:=$(objutil)/ifdfake/ifdfake
|
||||||
|
|
|
@ -172,8 +172,8 @@ BL31_LDFLAGS := --emit-relocs
|
||||||
BL31 := $(obj)/bl31.elf
|
BL31 := $(obj)/bl31.elf
|
||||||
|
|
||||||
$(BL31): $(obj)/build.h
|
$(BL31): $(obj)/build.h
|
||||||
@printf " MAKE $(subst $(obj)/,,$(@))\n"
|
printf " MAKE $(subst $(obj)/,,$(@))\n"
|
||||||
CROSS_COMPILE="$(CROSS_COMPILE_arm64)" \
|
+CROSS_COMPILE="$(CROSS_COMPILE_arm64)" \
|
||||||
CFLAGS="$(BL31_CFLAGS)" \
|
CFLAGS="$(BL31_CFLAGS)" \
|
||||||
LDFLAGS="$(BL31_LDFLAGS)" \
|
LDFLAGS="$(BL31_LDFLAGS)" \
|
||||||
$(MAKE) -C $(BL31_SOURCE) $(BL31_MAKEARGS) $(BL31_TARGET)
|
$(MAKE) -C $(BL31_SOURCE) $(BL31_MAKEARGS) $(BL31_TARGET)
|
||||||
|
|
|
@ -95,8 +95,8 @@ VBOOT_CFLAGS += -I$(abspath $(obj)) -include $(top)/src/include/kconfig.h -Wno-m
|
||||||
VBOOT_CFLAGS += -DVBOOT_DEBUG
|
VBOOT_CFLAGS += -DVBOOT_DEBUG
|
||||||
|
|
||||||
$(VB2_LIB): $(obj)/config.h
|
$(VB2_LIB): $(obj)/config.h
|
||||||
@printf " MAKE $(subst $(obj)/,,$(@))\n"
|
printf " MAKE $(subst $(obj)/,,$(@))\n"
|
||||||
$(Q)FIRMWARE_ARCH=$(VB_FIRMWARE_ARCH) \
|
+FIRMWARE_ARCH=$(VB_FIRMWARE_ARCH) \
|
||||||
CC="$(CC_verstage)" \
|
CC="$(CC_verstage)" \
|
||||||
CFLAGS="$(VBOOT_CFLAGS)" VBOOT2="y" \
|
CFLAGS="$(VBOOT_CFLAGS)" VBOOT2="y" \
|
||||||
$(MAKE) -C $(VBOOT_SOURCE) \
|
$(MAKE) -C $(VBOOT_SOURCE) \
|
||||||
|
|
Loading…
Reference in New Issue