summaryrefslogtreecommitdiff
path: root/libre/kernel26-libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre/kernel26-libre')
-rw-r--r--libre/kernel26-libre/Kbuild19
-rw-r--r--libre/kernel26-libre/Kbuild.platforms6
-rw-r--r--libre/kernel26-libre/PKGBUILD32
3 files changed, 56 insertions, 1 deletions
diff --git a/libre/kernel26-libre/Kbuild b/libre/kernel26-libre/Kbuild
new file mode 100644
index 000000000..8a9d7dceb
--- /dev/null
+++ b/libre/kernel26-libre/Kbuild
@@ -0,0 +1,19 @@
+# Fail on warnings - also for files referenced in subdirs
+# -Werror can be disabled for specific files using:
+# CFLAGS_<file.o> := -Wno-error
+subdir-ccflags-y := -Wno-error
+
+# platform specific definitions
+include arch/mips/Kbuild.platforms
+obj-y := $(platform-y)
+
+# make clean traverses $(obj-) without having included .config, so
+# everything ends up here
+obj- := $(platform-)
+
+# mips object files
+# The object files are linked as core-y files would be linked
+
+obj-y += kernel/
+obj-y += mm/
+obj-y += math-emu/
diff --git a/libre/kernel26-libre/Kbuild.platforms b/libre/kernel26-libre/Kbuild.platforms
new file mode 100644
index 000000000..90a226888
--- /dev/null
+++ b/libre/kernel26-libre/Kbuild.platforms
@@ -0,0 +1,6 @@
+# All platforms listed in alphabetic order
+
+platforms += loongson
+
+# include the platform specific files
+include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platforms))
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')