summaryrefslogtreecommitdiff
path: root/libre/kernel26-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/kernel26-libre/PKGBUILD')
-rw-r--r--libre/kernel26-libre/PKGBUILD32
1 files changed, 31 insertions, 1 deletions
diff --git a/libre/kernel26-libre/PKGBUILD b/libre/kernel26-libre/PKGBUILD
index 736bb1c9b..0c57c0bfd 100644
--- a/libre/kernel26-libre/PKGBUILD
+++ b/libre/kernel26-libre/PKGBUILD
@@ -21,6 +21,9 @@ source=(http://linux-libre.fsfla.org/pub/linux-libre/releases/${pkgver}-libre/li
config.i686 config.x86_64
# standard config files for mkinitcpio ramdisk
kernel26.preset
+ kernel26.install
+ Kbuild
+ Kbuild.platforms
kernel26.install)
build() {
@@ -29,7 +32,21 @@ build() {
# See http://projects.parabolagnulinux.org/linux-libre-2.6-LIBRE.git/
patch -Np1 -i ${srcdir}/${_patchname}
- cat $srcdir/config.$CARCH > ./.config # simpler
+ if [ "$CARCH" == "mips64el" ]; then
+ sed -i "s|^EXTRAVERSION.*|EXTRAVERSION =-libre|" Makefile
+ msg2 "Adding loongson-community patches"
+ patch -Np1 -i ${srcdir}/$pkgver-*-loongson-community.patch
+ patch -Np0 -i ${srcdir}/lxo-config.patch
+
+# ensure N32
+ sed -i "s|CONFIG_MIPS32_O32=.*|# CONFIG_MIPS32_O32 is not set|g" ./.config
+ sed -i "s|CONFIG_MIPS32_N32=.*|CONFIG_MIPS32_N32=y|g" ./.config
+
+# build with -Wno-error
+ cp --remove-destination ${srcdir}/Kbuild arch/mips/
+ else
+ cat $srcdir/config.$CARCH > ./.config # simpler
+ fi
for this_doesnt_build in CONFIG_WLAGS49_H2 CONFIG_WLAGS49_H25 CONFIG_VT6656; do
sed -i "s|^${this_doesnt_build}=.*|# ${this_doesnt_build} is not set|g" ./.config
@@ -241,8 +258,21 @@ find $pkgdir -type d -exec chmod 755 {} \;
rm -f $pkgdir/usr/src/linux-$_kernver/Documentation/DocBook/Makefile
}
md5sums=('923210b0c4190733bf314e48f588c112'
+<<<<<<< HEAD
+ 'abad63eab1f9485f6b1af76f5109f1e4'
+ '5d40a23419b48f5b49f1f10be0e733c3'
+ 'af5937ac06a78907ceb499351bdff7ab'
+ '25584700a0a679542929c4bed31433b6'
+ 'ba583747f515e51ec0f16d535e4be6e0')
+md5sums=('8feab9fb6c177052cb79248a223fbf66'
+ 'a480007d95472cc16825f5afe6e18e54'
+=======
+>>>>>>> 4aea7f1d98a7fba9a021ade4c9d475b180687fe8
'abad63eab1f9485f6b1af76f5109f1e4'
'5d40a23419b48f5b49f1f10be0e733c3'
'af5937ac06a78907ceb499351bdff7ab'
'25584700a0a679542929c4bed31433b6'
+ 'ba583747f515e51ec0f16d535e4be6e0'
+ '2967cecc3af9f954ccc822fd63dca6ff'
+ '8267264d9a8966e57fdacd1fa1fc65c4'
'ba583747f515e51ec0f16d535e4be6e0')