Files
axe-os/build/linux/build.bash
2026-02-08 11:43:43 +02:00

44 lines
520 B
Bash

. "$PROJECTDIR/build/linux/package.env"
fetch $LINUX_URL
cd "$SOURCES" && tar xf linux-$LINUX_VERSION.tar.xz && cd linux-$LINUX_VERSION
make mrproper
bootstrap() {
make headers
find usr/include -type f ! -name '*.h' -delete
cp -r usr/include "$SYSROOT/usr"
}
toolchain() {
echo toolchain
}
setup() {
echo setup
}
final() {
echo final
}
case $1 in
bootstrap)
bootstrap
;;
toolchain)
toolchain
;;
setup)
setup
;;
final)
final
;;
esac
rm -rf "$SOURCES/linux-$LINUX_VERSION"