diff options
Diffstat (limited to 'libre/kernel26-libre')
-rw-r--r-- | libre/kernel26-libre/PKGBUILD | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/libre/kernel26-libre/PKGBUILD b/libre/kernel26-libre/PKGBUILD index 4cee4bf0b..d109f8b94 100644 --- a/libre/kernel26-libre/PKGBUILD +++ b/libre/kernel26-libre/PKGBUILD @@ -20,6 +20,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() { @@ -28,7 +31,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 @@ -245,3 +262,13 @@ md5sums=('8feab9fb6c177052cb79248a223fbf66' 'af5937ac06a78907ceb499351bdff7ab' '25584700a0a679542929c4bed31433b6' 'ba583747f515e51ec0f16d535e4be6e0') +md5sums=('8feab9fb6c177052cb79248a223fbf66' + 'a480007d95472cc16825f5afe6e18e54' + 'abad63eab1f9485f6b1af76f5109f1e4' + '5d40a23419b48f5b49f1f10be0e733c3' + 'af5937ac06a78907ceb499351bdff7ab' + '25584700a0a679542929c4bed31433b6' + 'ba583747f515e51ec0f16d535e4be6e0' + '2967cecc3af9f954ccc822fd63dca6ff' + '8267264d9a8966e57fdacd1fa1fc65c4' + 'ba583747f515e51ec0f16d535e4be6e0') |