#!/bin/sh MAKEDEPS="make bc" DEPS="coreutils kmod" PKG_VER=5.16.11 SOURCE=https://cdn.kernel.org/pub/linux/kernel/v$(echo $PKG_VER | cut -d. -f1).x/linux-$PKG_VER.tar.xz ADDITIONAL=" https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/linux/trunk/config " prepare () { mv config .config make olddefconfig make -s kernelrelease > version echo "Prepared linux version $( $PKG_DEST/etc/modprobe.d/usb.conf << "EOF" # Begin /etc/modprobe.d/usb.conf install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true # End /etc/modprobe.d/usb.conf EOF echo "Installing modules..." make INSTALL_MOD_PATH="$PKG_DEST/usr" INSTALL_MOD_STRIP=1 modules_install rm "$modulesdir"/{source,build} }