mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +00:00
ee5073ebe8
Readd https://github.com/osresearch/heads/pull/984 without cache Add kgpe-d16 musl-cross target prior of having kgpe-d16 depend on musl-cross target (To try to have musl-cross step successfull under 1h CircleCI new limit) CircleCI: add a subcommand that can follow a target (to build musl-cross-make now and coreboot version specific musl-cross later) Output of hashes is now optional 29/11/2021 CircleCI public information available states parallelization of up to 30 jobs at a time. Let's play - We first build heads musl-cross-make and persist (passing musl-cross-make into next job) - We then build per coreboot version board with coreboot make statement only and persist (passing musl-cross-make + coreboot's musl-cross buildstack) - We then build per coreboot version board (reusing past build musl-cross-make and coreboot's version musl-cross buildstack) Remove 4.11 boards for the moment to test only build time and parallelization
66 lines
1.9 KiB
Plaintext
66 lines
1.9 KiB
Plaintext
CONFIG_MUSL ?= y
|
|
|
|
ifeq "$(MUSL_CROSS_ONCE)" ""
|
|
MUSL_CROSS_ONCE := 1
|
|
modules-$(CONFIG_MUSL) += musl-cross
|
|
|
|
musl-cross_version := 38e52db8358c043ae82b346a2e6e66bc86a53bc1
|
|
musl-cross_dir := musl-cross-$(musl-cross_version)
|
|
musl-cross_url := https://github.com/richfelker/musl-cross-make/archive/$(musl-cross_version).tar.gz
|
|
musl-cross_tar := musl-cross-$(musl-cross_version).tar.gz
|
|
musl-cross_hash := b4b85d6d3ddab0f2b8650a53e775673f8c346fa2fb07d652a9880bd206ade100
|
|
|
|
|
|
ifneq "$(CROSS)" ""
|
|
|
|
# check that $(CROSS)gcc exists or else things just won't work
|
|
ifneq "y" "$(shell [ -x '$(CROSS)gcc' ] && echo y)"
|
|
$(error $(CROSS)gcc does not exist - can not build)
|
|
else
|
|
$(info Using $(CROSS)gcc)
|
|
endif
|
|
|
|
# The cross compiler has already been built, so the musl-cross target
|
|
# is a NOP. We really don't need to check out this code tree, but it is easier
|
|
# if we have a target for it.
|
|
musl-cross_target := --version
|
|
|
|
# Ask the compiler where to find its own libc.so
|
|
musl-cross_libraries := \
|
|
$(shell $(CROSS)gcc --print-file-name=libc.so) \
|
|
|
|
else
|
|
|
|
# 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: 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' ; \
|
|
|
|
CROSS_PATH ?= $(pwd)/crossgcc
|
|
|
|
musl-cross_target := \
|
|
OUTPUT="$(CROSS_PATH)" \
|
|
MAKE="$(MAKE)" \
|
|
$(MAKE_JOBS) \
|
|
both
|
|
|
|
CROSS := $(CROSS_PATH)/bin/x86_64-linux-musl-
|
|
musl-cross_libraries := $(CROSS_PATH)/x86_64-linux-musl/lib/libc.so
|
|
|
|
endif
|
|
|
|
|
|
musl-cross_output := $(CROSS)gcc
|
|
|
|
## Fake a target so that musl will force a header install by the
|
|
## Linux kernel sources.
|
|
$(build)/$(musl-cross_dir)/.build: $(INSTALL)/include/linux/limits.h
|
|
|
|
|
|
endif
|