Created
January 20, 2016 17:49
-
-
Save Steinhagen/30eed0db1f2e687a56a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source=('git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git' | |
# the main kernel config files | |
'config' 'config.x86_64' | |
# standard config files for mkinitcpio ramdisk | |
"${pkgbase}.preset" | |
'/tmp/efi.c') | |
sha256sums=('SKIP' | |
'596958c9c4b632fdf5e0cdc677859dccac4304ad07a217c9bcb0e4fa58dbea16' | |
'836509596b9bbe8a7b0d9cf8e003a4f22511656e7bc04e4588c29801bbf21d3c' | |
'95fcfdfcb9d540d1a1428ce61e493ddf2c2a8ec96c8573deeadbb4ee407508c7' | |
'SKIP') | |
_kernelname=${pkgbase#linux} | |
pkgver() { | |
cd "${_srcname}" | |
git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/' | |
} | |
prepare() { | |
cd "${_srcname}" | |
if [ "${CARCH}" = "x86_64" ]; then | |
cat "${srcdir}/config.x86_64" > ./.config | |
else | |
cat "${srcdir}/config" > ./.config | |
fi | |
# set localversion to git commit | |
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"-${pkgver##*.}\"|g" ./.config | |
sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" ./.config | |
cp ${srcdir}/efi.c arch/x86/platform/efi/efi.c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment