Skip to content

Commit

Permalink
Parallel build (retry linuxboot#984 tweaks).
Browse files Browse the repository at this point in the history
  • Loading branch information
tlaurion committed Aug 19, 2021
1 parent b9468f5 commit 07bd9fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ commands:
- run:
name: Make Board
command: |
rm -rf build/<<parameters.target>>/* build/log/* && make CPUS=16 V=1 BOARD=<<parameters.target>> || touch ./tmpDir/failed_build
rm -rf build/<<parameters.target>>/* build/log/* && make -j16 V=1 BOARD=<<parameters.target>> || touch ./tmpDir/failed_build
no_output_timeout: 3h
- run:
name: Output build failing logs
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ endif
$(COREBOOT_UTIL_DIR)/cbmem/cbmem \
$(COREBOOT_UTIL_DIR)/superiotool/superiotool \
$(COREBOOT_UTIL_DIR)/inteltool/inteltool \
: $(build)/$(coreboot_base_dir)/.canary
: $(build)/$(coreboot_base_dir)/.canary musl-cross
+$(call do,MAKE,$(notdir $@),\
$(MAKE) -C "$(dir $@)" $(CROSS_TOOLS) \
)
Expand Down
13 changes: 8 additions & 5 deletions modules/musl-cross
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ musl-cross_libraries := \

else

# Force a full build of the cross compiler
# have to build both x86_64 and i386 versions for coreboot
# Force a full build of the cross compiler for x86_64
# (do not build i386 since coreboot uses its own compiler)

musl-cross_configure := \
/bin/echo -e >> Makefile 'both:' ; \
/bin/echo -e >> Makefile '\t$$$$(MAKE) TARGET=x86_64-linux-musl install' ; \
/bin/echo -e >> Makefile '\t$$$$(MAKE) TARGET=i386-linux-musl install' ; \
/bin/echo -e >> Makefile 'both: musl-x86_64' ; \
/bin/echo -e >> Makefile 'musl-x86_64: extract_all' ; \
/bin/echo -e >> Makefile '\t$$$$''(MAKE) TARGET=x86_64-linux-musl install' ; \
/bin/echo -e >> Makefile 'musl-i386: extract_all' ; \
/bin/echo -e >> Makefile '\t$$$$''(MAKE) TARGET=i386-linux-musl install' ; \
#tar xvf ../../blobs/musl-cross.config.cache.tgz ; \

CROSS_PATH ?= $(pwd)/crossgcc

Expand Down

0 comments on commit 07bd9fa

Please sign in to comment.