summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiab Neiroukh2020-05-01 22:53:47 +0100
committerDiab Neiroukh2020-05-01 22:53:47 +0100
commit2cb7690dadb24b4aa544747455812ea961ceb36c (patch)
tree7a9f3200c5f38551d5fd7958f9054b5447e4cd8f
parentadc1722c030cdc0e8032f28afd49c4a716d41df6 (diff)
downloadaur-2cb7690dadb24b4aa544747455812ea961ceb36c.tar.gz
👌 IMPROVE: Allow building without all modules
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
2 files changed, 10 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4b56d71a690..08b5753529e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = linux-zest-git
pkgver = 5.6
- pkgrel = 1
+ pkgrel = 2
epoch = 5
url = https://github.com/ZestProjects/linux
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 40c91166773..b782bb3839b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ pkgname=(
"linux-zest-git-headers"
)
pkgver=5.6
-pkgrel=1
+pkgrel=2
epoch=5
arch=(
"i686"
@@ -50,8 +50,14 @@ prepare()
echo "Setting config..."
make AR="llvm-ar" CC="clang" HOSTAR="llvm-ar" HOSTCC="clang" HOSTCXX="clang++" HOSTLD="ld.lld" HOSTLDFLAGS="-fuse-ld=lld" LD="ld.lld" NM="llvm-nm" OBJCOPY="llvm-objcopy" OBJDUMP="llvm-objdump" OBJSIZE="llvm-size" STRIP="llvm-strip" zestop_defconfig
+ #* Load only needed modules from modprobed-db
+ if [ -f "$HOME/.config/modprobed.db" ]; then
+ echo "Setting only needed modules to build..."
+ make AR="llvm-ar" CC="clang" HOSTAR="llvm-ar" HOSTCC="clang" HOSTCXX="clang++" HOSTLD="ld.lld" HOSTLDFLAGS="-fuse-ld=lld" LD="ld.lld" NM="llvm-nm" OBJCOPY="llvm-objcopy" OBJDUMP="llvm-objdump" OBJSIZE="llvm-size" STRIP="llvm-strip" LSMOD="$HOME/.config/modprobed.db" localmodconfig
+ fi
+
make AR="llvm-ar" CC="clang" HOSTAR="llvm-ar" HOSTCC="clang" HOSTCXX="clang++" HOSTLD="ld.lld" HOSTLDFLAGS="-fuse-ld=lld" LD="ld.lld" NM="llvm-nm" OBJCOPY="llvm-objcopy" OBJDUMP="llvm-objdump" OBJSIZE="llvm-size" STRIP="llvm-strip" -s kernelrelease > version
- echo "Prepared $pkgbase version $(<version)"
+ echo "Prepared $pkgbase version $(<version)..."
}
build()
@@ -160,7 +166,7 @@ _package-headers()
install -Dt "$builddir/drivers/media/dvb-frontends" -m644 "drivers/media/dvb-frontends/"*".h"
install -Dt "$builddir/drivers/media/tuners" -m644 "drivers/media/tuners/"*".h"
- echo "Installing KConfig files..."
+ echo "Installing Kconfig files..."
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
echo "Removing unneeded architectures..."