Use of a Linux initramfs to fully automate the bootstrapping process
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
657 B

# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
find . -name '*.info' -delete
autoreconf-2.69 -fi
}
src_configure() {
./configure \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
--target=i386-unknown-linux-gnu \
--host=i386-unknown-linux-gnu \
--build=i386-unknown-linux-gnu
# Disable tuning as that might cause non-reproducible build
mv mparam.h src
}
src_compile() {
make MAKEINFO=true DESTDIR="${DESTDIR}"
}
src_install() {
make MAKEINFO=true DESTDIR="${DESTDIR}" install
}