Skip to content

Instantly share code, notes, and snippets.

@xabbu
Created March 28, 2020 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xabbu/a118b7e305b9242b8f5406032b4379ef to your computer and use it in GitHub Desktop.
Save xabbu/a118b7e305b9242b8f5406032b4379ef to your computer and use it in GitHub Desktop.
diff --git a/PKGBUILD b/PKGBUILD
index 45c972e..1cda36d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,8 +7,8 @@
# Contributor: Helmut Stult <helmut[at]manjaro[dot]org>
pkgbase=linux54
-pkgname=('linux54' 'linux54-headers')
-_kernelname=-MANJARO
+pkgname=('linux54-vifo' 'linux54-vifo-headers')
+_kernelname=-VIFO
_basekernel=5.4
_basever=54
_aufs=20191223
@@ -72,7 +72,7 @@ source=("https://www.kernel.org/pub/linux/kernel/v5.x/linux-${_basekernel}.tar.x
'0013-bootsplash.patch')
sha256sums=('bf338980b1670bca287f9994b7441c2361907635879169c64ae78364efc5f491'
'6965f4c20f73e4707361a69bcb71806901f835dc45fdb8232542947507144fc0'
- '24d1704eb5674b9ec6d37938813c7f858d8b2be2a85581a0a1cd68d3cc660a2d'
+ 'bff2a2485ecc08697e9e297f6411e8b12aa00bf92547f767f6d7d09c1a3d3818'
'bfe52746bfc04114627b6f1e0dd94bc05dd94abe8f6dbee770f78d6116e315e8'
'b44d81446d8b53d5637287c30ae3eb64cae0078c3fbc45fcf1081dd6699818b5'
'eb2de93799728d81b288e4d705c2194ed29da5b1316fab2ba01d1fcf6125d740'
@@ -243,7 +243,7 @@ build() {
make ${MAKEFLAGS} LOCALVERSION= bzImage modules
}
-package_linux54() {
+package_linux54-vifo() {
pkgdesc="The ${pkgbase/linux/Linux} kernel and modules"
depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=27')
optdepends=('crda: to set the correct wireless channels of your country')
@@ -264,18 +264,18 @@ package_linux54() {
cp arch/$KARCH/boot/bzImage "${pkgdir}/usr/lib/modules/${_kernver}/vmlinuz"
# Used by mkinitcpio to name the kernel
- echo "${pkgbase}" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modules/${_kernver}/pkgbase"
- echo "${_basekernel}-${CARCH}" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modules/${_kernver}/kernelbase"
+ echo "${pkgbase}-vifo" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modules/${_kernver}/pkgbase"
+ echo "${_basekernel}-vifo-${CARCH}" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modules/${_kernver}/kernelbase"
# add kernel version
if [ "${CARCH}" = "x86_64" ]; then
- echo "${pkgver}-${pkgrel}-MANJARO x64" > "${pkgdir}/boot/${pkgbase}-${CARCH}.kver"
+ echo "${pkgver}-${pkgrel}-VIFO x64" > "${pkgdir}/boot/${pkgbase}-vifo-${CARCH}.kver"
else
echo "${pkgver}-${pkgrel}-MANJARO x32" > "${pkgdir}/boot/${pkgbase}-${CARCH}.kver"
fi
# make room for external modules
- local _extramodules="extramodules-${_basekernel}${_kernelname:--MANJARO}"
+ local _extramodules="extramodules-${_basekernel}${_kernelname:--VIFO}"
ln -s "../${_extramodules}" "${pkgdir}/usr/lib/modules/${_kernver}/extramodules"
# add real version for building modules and running depmod from hook
@@ -292,7 +292,7 @@ package_linux54() {
install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/build" -m644 vmlinux
}
-package_linux54-headers() {
+package_linux54-vifo-headers() {
pkgdesc="Header files and scripts for building modules for ${pkgbase/linux/Linux} kernel"
provides=("linux-headers=$pkgver")
diff --git a/config.x86_64 b/config.x86_64
index be3459d..833b931 100644
--- a/config.x86_64
+++ b/config.x86_64
@@ -23,7 +23,7 @@ CONFIG_THREAD_INFO_IN_TASK=y
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_HEADER_TEST is not set
-CONFIG_LOCALVERSION="-MANJARO"
+CONFIG_LOCALVERSION="-VIFO"
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_BUILD_SALT=""
CONFIG_HAVE_KERNEL_GZIP=y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment