mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-07 19:34:26 +00:00
parameterize number of parallel make jobs (issue #125)
This commit is contained in:
parent
c3368554be
commit
356e9307a2
3
Makefile
3
Makefile
@ -5,6 +5,7 @@ build := $(pwd)/build
|
||||
config := $(pwd)/build
|
||||
INSTALL := $(pwd)/install
|
||||
log_dir := $(build)/log
|
||||
MAKE_JOB ?= 8
|
||||
|
||||
# Create the log directory if it doesn't already exist
|
||||
BUILD_LOG := $(shell [ -d "$(log_dir)" ] || mkdir "$(log_dir)")
|
||||
@ -334,7 +335,7 @@ all:
|
||||
|
||||
# How to download and build the correct version of make
|
||||
$(HEADS_MAKE): $(build)/$(make_dir)/Makefile
|
||||
make -C "`dirname $@`" -j8 \
|
||||
make -C "`dirname $@`" -j$(MAKE_JOBS) \
|
||||
2>&1 \
|
||||
| tee "$(log_dir)/make.log" \
|
||||
$(VERBOSE_REDIRECT)
|
||||
|
@ -12,7 +12,7 @@ busybox_output := busybox
|
||||
busybox_target := \
|
||||
CC="$(heads_cc)" \
|
||||
CONFIG_PREFIX="$(INSTALL)" \
|
||||
-j 8 \
|
||||
-j $(MAKE_JOBS) \
|
||||
install
|
||||
|
||||
busybox_depends := $(musl_dep)
|
||||
|
@ -30,7 +30,7 @@ coreboot_target := \
|
||||
BUILD_TIMELESS=1 \
|
||||
CFLAGS_x86_32="$(EXTRA_FLAGS)" \
|
||||
CFLAGS_x86_64="$(EXTRA_FLAGS)" \
|
||||
-j 8
|
||||
-j $(MAKE_JOBS)
|
||||
|
||||
coreboot_output := $(BOARD)/coreboot.rom
|
||||
|
||||
|
@ -20,7 +20,7 @@ cryptsetup_configure := ./configure \
|
||||
# but after building, replace prefix so that they will be installed
|
||||
# in the correct directory.
|
||||
cryptsetup_target := \
|
||||
-j 8 \
|
||||
-j $(MAKE_JOBS) \
|
||||
&& $(MAKE) \
|
||||
-C $(build)/$(cryptsetup_dir) \
|
||||
prefix="$(INSTALL)" \
|
||||
|
@ -40,7 +40,7 @@ gpg_configure := ./configure \
|
||||
# Run one build to generate the executables with the pre-defined
|
||||
# exec_prefix and datarootdir, then a second make to install the binaries
|
||||
# into our actual target location
|
||||
gpg_target := -j 8 \
|
||||
gpg_target := -j $(MAKE_JOBS) \
|
||||
&& $(MAKE) -C $(build)/$(gpg_dir) \
|
||||
exec_prefix=$(pwd)/install \
|
||||
datarootdir=$(pwd)/install/share \
|
||||
|
@ -11,7 +11,7 @@ libuuid_configure := ./configure \
|
||||
--prefix "" \
|
||||
--host i386-elf-linux \
|
||||
|
||||
libuuid_target := -j 8 && \
|
||||
libuuid_target := -j $(MAKE_JOBS) && \
|
||||
$(MAKE) \
|
||||
-C "$(build)/$(libuuid_dir)" \
|
||||
prefix="$(INSTALL)" \
|
||||
|
@ -28,5 +28,5 @@ linux_target := \
|
||||
KBUILD_BUILD_HOST=heads-build \
|
||||
KBUILD_BUILD_TIMESTAMP="1970-00-00" \
|
||||
KBUILD_BUILD_VERSION=0 \
|
||||
-j 8 \
|
||||
-j $(MAKE_JOBS) \
|
||||
bzImage
|
||||
|
@ -14,7 +14,7 @@ mbedtls_target := \
|
||||
SHARED=1 \
|
||||
DESTDIR=$(INSTALL) \
|
||||
CC="$(heads_cc)" \
|
||||
-j 8 \
|
||||
-j $(MAKE_JOBS) \
|
||||
install
|
||||
|
||||
mbedtls_depends := $(musl_dep)
|
||||
|
@ -24,7 +24,7 @@ musl_configure := ./configure \
|
||||
|
||||
|
||||
|
||||
musl_target := -j 8 install
|
||||
musl_target := -j $(MAKE_JOBS) install
|
||||
#musl_target := install
|
||||
|
||||
musl_depends := kernel-headers musl-cross
|
||||
|
@ -11,7 +11,7 @@ popt_configure := ./configure \
|
||||
--prefix "" \
|
||||
--host i386-elf-linux \
|
||||
|
||||
popt_target := -j 8 \
|
||||
popt_target := -j $(MAKE_JOBS) \
|
||||
&& $(MAKE) \
|
||||
-C "$(build)/$(popt_dir)" \
|
||||
prefix="$(INSTALL)" \
|
||||
|
@ -14,7 +14,7 @@ qrencode_configure := ./configure \
|
||||
--without-tools \
|
||||
--host i386-elf-linux \
|
||||
|
||||
qrencode_target := -j 8 \
|
||||
qrencode_target := -j $(MAKE_JOBS) \
|
||||
&& $(MAKE) \
|
||||
-C "$(build)/$(qrencode_dir)" \
|
||||
prefix="$(INSTALL)" \
|
||||
|
@ -10,4 +10,4 @@ xen_hash := 02badfce9a037bd1bd4a94210c1f6b85467746216c71795805102b514bcf1fc4
|
||||
|
||||
xen_output := xen.gz
|
||||
xen_configure :=
|
||||
xen_target := -j 8
|
||||
xen_target := -j $(MAKE_JOBS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user