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:
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() {