Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/linux-lts/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-11-10 11:41:34 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-11-10 11:41:34 +0100
commit446ac7f4cb4c162d712b53105853aea7e12755bf (patch)
treef395ff79448fa9dd7df9227bec026b25615ebd4e /core/linux-lts/PKGBUILD
parentfcb6458d964d1a3b796b4f72feea3530bd5a48e1 (diff)
core/linux-lts: fix for i686 builds
Diffstat (limited to 'core/linux-lts/PKGBUILD')
-rw-r--r--core/linux-lts/PKGBUILD16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/linux-lts/PKGBUILD b/core/linux-lts/PKGBUILD
new file mode 100644
index 00000000..aafc8e7d
--- /dev/null
+++ b/core/linux-lts/PKGBUILD
@@ -0,0 +1,16 @@
+source+=('config-i686')
+sha256sums+=('f5611ebd9d9ff0aad420cb74857cd6b034ebc1d3fea480bca8a43610780907d5')
+
+eval "$(
+ declare -f prepare | \
+ sed '
+ s|cat "${srcdir}/config" > ./.config|cat "${srcdir}/config-i686" > ./.config|
+ '
+ declare -f _package-headers | \
+ sed '
+ /^\s*cp arch\/${KARCH}\/Makefile.*$/ {
+ a \
+ cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/"
+ }
+ '
+)"