mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
07eb5e9717
Each of the submodule configuration files defined a subset of the cross compiler tools that it used and many were picking up the system `ar`, `nm`, `strip, `ld`, etc. They all now use a `Makefile` macro that defines the path to the proper cross compiler tools. For ones that need the tools, but not the musl-libc gcc, there is $(CROSS_TOOLS_NOCC) that is all of them without gcc. This is for musl-libc itself, as well as xen and the Linux kernel.
37 lines
865 B
Plaintext
37 lines
865 B
Plaintext
modules-y += musl
|
|
|
|
musl_version := 1.1.15
|
|
musl_dir := musl-$(musl_version)
|
|
musl_tar := musl-$(musl_version).tar.gz
|
|
musl_url := https://www.musl-libc.org/releases/$(musl_tar)
|
|
musl_hash := 97e447c7ee2a7f613186ec54a93054fe15469fe34d7d323080f7ef38f5ecb0fa
|
|
|
|
musl_output := ../../install/bin/musl-gcc
|
|
|
|
#
|
|
# Note that for syslibdir to be /lib the install will fail.
|
|
# this is unfortunate since it prevents the binaries from running
|
|
# and requires that we treat the rest of the build as a cross compile.
|
|
#
|
|
# That works, with some hacks...
|
|
#
|
|
musl_configure := ./configure \
|
|
$(CROSS_TOOLS_NOCC) \
|
|
CC="$(CROSS)gcc" \
|
|
--prefix="$(INSTALL)" \
|
|
--syslibdir="/lib" \
|
|
--enable-gcc-wrapper \
|
|
--enable-shared \
|
|
|
|
musl_target := \
|
|
$(MAKE_JOBS) \
|
|
$(CROSS_TOOLS_NOCC) \
|
|
CC="$(CROSS)gcc" \
|
|
install \
|
|
|
|
musl_libraries := \
|
|
lib/libc.so \
|
|
|
|
|
|
musl_depends := kernel-headers musl-cross
|