Lines Matching +full:linux +full:- +full:headers +full:-
3 # Install musl and musl-sanitized linux kernel headers
4 # to musl-{$1} directory
6 set -ex
9 MUSL="musl-${MUSL_VERSION}"
12 curl --retry 5 https://www.musl-libc.org/releases/${MUSL}.tar.gz | tar xzf -
19 CC=aarch64-linux-gnu-gcc \
20 ./configure --prefix="/musl-${musl_arch}" --enable-wrapper=yes
21 make install -j4
26 CC=arm-linux-gnueabihf-gcc CFLAGS="-march=armv6 -marm -mfpu=vfp" \
27 ./configure --prefix="/musl-${musl_arch}" --enable-wrapper=yes
28 make install -j4
31 # cross-compile musl for i686 using the system compiler on an x86_64
35 # Specifically pass -m32 in CFLAGS and override CC when running
37 CC=gcc CFLAGS="-m32" \
38 ./configure --prefix="/musl-${musl_arch}" --disable-shared --target=i686
40 # call the non-existent binary 'i686-ar'.
41 make CROSS_COMPILE= install -j4
46 ./configure --prefix="/musl-${musl_arch}"
47 make install -j4
52 CC=s390x-linux-gnu-gcc \
53 ./configure --prefix="/musl-${musl_arch}" --enable-wrapper=yes
54 make install -j4
65 rm -rf $MUSL
67 # Download, configure, build, and install musl-sanitized kernel headers:
69 curl --retry 5 -L \
70 "https://github.com/sabotage-linux/kernel-headers/archive/v${KERNEL_HEADER_VER}.tar.gz" | \
71 tar xzf -
73 cd kernel-headers-${KERNEL_HEADER_VER}
74 make ARCH="${kernel_arch}" prefix="/musl-${musl_arch}" install -j4
76 rm -rf kernel-headers-${KERNEL_HEADER_VER}