Add custom kernel config base
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
33
PKGBUILD
33
PKGBUILD
@@ -1,6 +1,6 @@
|
||||
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
||||
|
||||
pkgbase=linux
|
||||
pkgbase=linux-eirene
|
||||
pkgver=6.1.2.arch1
|
||||
pkgrel=1
|
||||
pkgdesc='Linux'
|
||||
@@ -18,6 +18,8 @@ _srcname=archlinux-linux
|
||||
source=(
|
||||
"$_srcname::git+https://github.com/archlinux/linux?signed#tag=$_srctag"
|
||||
config # the main kernel config file
|
||||
0001-add-acs-overrides.patch
|
||||
0002-i915-vga-arbiter.patch
|
||||
)
|
||||
validpgpkeys=(
|
||||
'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
|
||||
@@ -26,7 +28,9 @@ validpgpkeys=(
|
||||
'C7E7849466FE2358343588377258734B41C31549' # David Runge <dvzrv@archlinux.org>
|
||||
)
|
||||
sha256sums=('SKIP'
|
||||
'0571ea17a2e38458096b679418197bbea8c414388f628d122517f3a1f3a31b3a')
|
||||
'f419741df953badc877b10f2e11696ddc96e6f71ad0effc60448f88373a93d92'
|
||||
'b8f977aa923aa6076703b88262e395c56ce9df2943a52448d8a0e32cc90b1a70'
|
||||
'750c57539f17332cafe01a978a0133fc9500dbe37a411b823dad2eee66652cfc')
|
||||
|
||||
export KBUILD_BUILD_HOST=archlinux
|
||||
export KBUILD_BUILD_USER=$pkgbase
|
||||
@@ -52,7 +56,7 @@ prepare() {
|
||||
echo "Setting config..."
|
||||
cp ../config .config
|
||||
make olddefconfig
|
||||
diff -u ../config .config || :
|
||||
/usr/scr/linux/scripts/diffconfig .config ../config > ../config.diff || :
|
||||
|
||||
make -s kernelrelease > version
|
||||
echo "Prepared $pkgbase version $(<version)"
|
||||
@@ -60,7 +64,7 @@ prepare() {
|
||||
|
||||
build() {
|
||||
cd $_srcname
|
||||
make htmldocs all
|
||||
make all
|
||||
}
|
||||
|
||||
_package() {
|
||||
@@ -173,26 +177,7 @@ _package-headers() {
|
||||
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"
|
||||
}
|
||||
|
||||
_package-docs() {
|
||||
pkgdesc="Documentation for the $pkgdesc kernel"
|
||||
|
||||
cd $_srcname
|
||||
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
|
||||
|
||||
echo "Installing documentation..."
|
||||
local src dst
|
||||
while read -rd '' src; do
|
||||
dst="${src#Documentation/}"
|
||||
dst="$builddir/Documentation/${dst#output/}"
|
||||
install -Dm644 "$src" "$dst"
|
||||
done < <(find Documentation -name '.*' -prune -o ! -type d -print0)
|
||||
|
||||
echo "Adding symlink..."
|
||||
mkdir -p "$pkgdir/usr/share/doc"
|
||||
ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase"
|
||||
}
|
||||
|
||||
pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-docs")
|
||||
pkgname=("$pkgbase" "$pkgbase-headers")
|
||||
for _p in "${pkgname[@]}"; do
|
||||
eval "package_$_p() {
|
||||
$(declare -f "_package${_p#$pkgbase}")
|
||||
|
Reference in New Issue
Block a user