Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/linux-galileo-gen2
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-09-21 08:18:45 +0200
committerErich Eckner <git@eckner.net>2022-09-21 08:18:45 +0200
commit0f4b66d9e1542aeb8e6e79f69a7c2a395d82e59f (patch)
tree7e2563b97d4173c14bf85acf52a29991c0429702 /extra/linux-galileo-gen2
parenta2cd874246c218d525226e3d171194347e2f2a0e (diff)
extra/linux-galileo-gen2: pin gcc version
Diffstat (limited to 'extra/linux-galileo-gen2')
-rw-r--r--extra/linux-galileo-gen2/PKGBUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/extra/linux-galileo-gen2/PKGBUILD b/extra/linux-galileo-gen2/PKGBUILD
index 754f1cd3..034247a1 100644
--- a/extra/linux-galileo-gen2/PKGBUILD
+++ b/extra/linux-galileo-gen2/PKGBUILD
@@ -93,6 +93,14 @@ _package() {
rm "$modulesdir"/{source,build}
}
+get_gcc_version_from_config() {
+ sed '
+ s/^CONFIG_CC_VERSION_TEXT="gcc (GCC) \([0-9.]\+\)"$/\1/
+ t
+ d
+ ' "$srcdir/$_srcname/.config"
+}
+
_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
@@ -164,6 +172,7 @@ _package-headers() {
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"
+ depends+=(gcc-libs=$(get_gcc_version_from_config))
}
_package-docs() {