From 22f9b888235b9a96cb1e605c30e5de37178f2a22 Mon Sep 17 00:00:00 2001 From: Alexander Hill Date: Sun, 13 Apr 2025 22:19:27 -0400 Subject: Built kmod --- build-chroot.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'build-chroot.sh') diff --git a/build-chroot.sh b/build-chroot.sh index 02c8876..7dbaa73 100755 --- a/build-chroot.sh +++ b/build-chroot.sh @@ -77,6 +77,7 @@ cd pkgconf-*/ --sysconfdir=/etc make -j $THREADS make -j $THREADS install +ln -s pkgconf /bin/pkg-config cd .. # Perl Build @@ -418,6 +419,28 @@ LLVM=1 make -j $THREADS LLVM=1 make -j $THREADS install cd .. +# kmod Build +tar xf ../sources/kmod-*.tar* +cd kmod-*/ +# NOTE: Might enable zstd later, but I want to make sure that the lack of +# Facebook's software doesn't negatively impact the open source world. +# ~ahill +# TODO: Is this the correct zsh directory to use? ~ahill +muon setup \ + -Dbashcompletiondir=no \ + -Dfishcompletiondir=no \ + -Dmanpages=false \ + -Dzstd=disabled \ + build +muon samu -C build +# FIXME: kmod's meson script attempts to invoke sh via the add_install_script +# and confuses muon, so it starts searching for sh in the current +# directory. As a workaround, we will tweak the invocation to point +# directly to /bin/sh. ~ahill +sed -i "s/add_install_script('sh'/add_install_script('\/bin\/sh'/" meson.build +muon -C build install +cd .. + # Finally, make the image bootable. cp /usr/share/limine/BOOTX64.EFI /boot/EFI/BOOT/ -- cgit v1.2.3