live-bootstrap/steps-guix/argp-standalone-1.4.1/pass1.sh
vxtls e86bbab992 steps-guix: add argp-standalone-1.4.1 kernel-toolchain step
- add steps-guix/argp-standalone-1.4.1/pass1.sh
- run autoreconf before configure
- build/install with standard flow into /kernel-toolchain
- wire argp-standalone-1.4.1 into steps-guix manifest after gcc
- prepare argp for later kernel-side elfutils dependency
2026-02-21 09:27:11 -05:00

36 lines
820 B
Bash

# SPDX-License-Identifier: GPL-3.0-or-later
# Build argp-standalone for the kernel toolchain sysroot. This is used by
# later kernel-side dependencies (for example elfutils).
: "${KERNEL_TARGET:=x86_64-unknown-linux-musl}"
: "${KERNEL_SYSROOT:=/kernel-toolchain}"
src_prepare() {
default
autoreconf -fi
}
src_configure() {
export PATH="${KERNEL_SYSROOT}/bin:${PATH}"
mkdir build
cd build
../configure \
--prefix="${KERNEL_SYSROOT}" \
--libdir="${KERNEL_SYSROOT}/lib" \
--build="${TARGET}" \
--host="${KERNEL_TARGET}" \
--target="${KERNEL_TARGET}"
}
src_compile() {
default_src_compile
}
src_install() {
make "${MAKEJOBS}" install \
DESTDIR="${DESTDIR}" \
prefix="${KERNEL_SYSROOT}" \
libdir="${KERNEL_SYSROOT}/lib"
}