mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 19:16:32 +01:00
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
This commit is contained in:
parent
62078d51f6
commit
e86bbab992
3 changed files with 38 additions and 0 deletions
36
steps-guix/argp-standalone-1.4.1/pass1.sh
Normal file
36
steps-guix/argp-standalone-1.4.1/pass1.sh
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
# 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"
|
||||||
|
}
|
||||||
1
steps-guix/argp-standalone-1.4.1/sources
Normal file
1
steps-guix/argp-standalone-1.4.1/sources
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
g https://github.com/ericonr/argp-standalone.git~743004c68e7358fb9cd4737450f2d9a34076aadf https://github.com/ericonr/argp-standalone/archive/743004c68e7358fb9cd4737450f2d9a34076aadf.tar.gz a79f2a6fd6c68a423063ee53bc4afb6a5633a296a25764e5cc368c1e323a0997 argp-standalone-743004c6.tar.gz
|
||||||
|
|
@ -5,3 +5,4 @@
|
||||||
# We need a 64-bit kernel to enable Guix to run 64-bit programs.
|
# We need a 64-bit kernel to enable Guix to run 64-bit programs.
|
||||||
build: binutils-2.41
|
build: binutils-2.41
|
||||||
build: gcc-15.2.0
|
build: gcc-15.2.0
|
||||||
|
build: argp-standalone-1.4.1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue