summaryrefslogtreecommitdiff
path: root/libre/linux-libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre/linux-libre')
-rw-r--r--libre/linux-libre/PKGBUILD14
-rw-r--r--libre/linux-libre/gnewsense-binutils-flag.patch28
2 files changed, 10 insertions, 32 deletions
diff --git a/libre/linux-libre/PKGBUILD b/libre/linux-libre/PKGBUILD
index a2477e7d2..486038263 100644
--- a/libre/linux-libre/PKGBUILD
+++ b/libre/linux-libre/PKGBUILD
@@ -25,23 +25,26 @@ options=('!strip')
source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgbasever}/linux-libre-${_pkgbasever}.tar.xz"
"http://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/patch-${_pkgbasever}-${_pkgver}.xz"
# the main kernel config files
- 'config.i686' 'config.x86_64'
+ 'config.i686' 'config.x86_64' 'config.mips64el'
# standard config files for mkinitcpio ramdisk
'linux.preset'
'logo_linux_'{clut224.ppm,vga16.ppm,mono.pbm}
'change-default-console-loglevel.patch'
'compal-laptop-hwmon-fix.patch'
- )
+ # loongson-community patch: http://linux-libre.fsfla.org/pub/linux-libre/lemote/gnewsense/pool/debuginfo/
+ '3.16-7981337ad0-loongson-community.patch')
sha256sums=('9c2a524c901febe0f0138f702bfdeb52d6f79f22c1fdbabaa37580bc70f16218'
'3bbc78694d76b12b6229799d7c4daf5215b9dd731908d96b03603aceb54ad5c7'
'65739ffbc01d1ecea8328130b14e0258aa036e37ede2f0b1aa9b8efa2ad68a66'
'0d827a89f8955e1f39b6a6d10887d1ca7a46b42cc4417bf823eb9f260c26f660'
+ ''
'f0d90e756f14533ee67afda280500511a62465b4f76adcc5effa95a40045179c'
'074b67818582874146c389c029bc43648d145891a27e47aa2c5c42d3571f0264'
'2e87a8ec1cc0c91938cac24992d8a3d4362b3e9d939767e4c9d2ec8e6d969d53'
'f67f60a30bcf2e9a2ba88ad97cace308da7a7f94919bb95c3dc030f5885a8015'
'1256b241cd477b265a3c2d64bdc19ffe3c9bbcee82ea3994c590c2c76e767d99'
- 'f36f61a0a72bcb0a9c04264343503bfbf927c9ea0db819e66734a3933b060588')
+ 'f36f61a0a72bcb0a9c04264343503bfbf927c9ea0db819e66734a3933b060588'
+ '')
_kernelname=${pkgbase#linux-libre}
_replaces=("${_replaces[@]/\%/${_kernelname}}")
@@ -74,9 +77,12 @@ prepare() {
# #41458 fix hwmon for compal-laptop module
patch -p1 -i "${srcdir}/compal-laptop-hwmon-fix.patch"
+ # Adding loongson-community patch
+ patch -p1 -i ${srcdir}/3.16-7981337ad0-loongson-community.patch
+
cat "${srcdir}/config.${CARCH}" > ./.config
- if [ "${_kernelname}" != "" ]; then
+ if [ "${_kernelname}" == "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" ./.config
fi
diff --git a/libre/linux-libre/gnewsense-binutils-flag.patch b/libre/linux-libre/gnewsense-binutils-flag.patch
deleted file mode 100644
index 5f2d44f99..000000000
--- a/libre/linux-libre/gnewsense-binutils-flag.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Our binutils somehow ended up with a -mfix-gs2f-kernel, rather than
--mfix-ls2f-kernel. Cope with it.
-
-Index: arch/mips/loongson/Platform
-===================================================================
---- arch/mips/loongson/Platform.orig 2010-10-25 19:09:49.000000000 +0000
-+++ arch/mips/loongson/Platform 2010-10-25 19:10:44.000000000 +0000
-@@ -10,6 +10,12 @@
- $(call cc-option,-march=loongson2f,-march=r4600)
- # Enable the workarounds for Loongson2f
- ifdef CONFIG_CPU_LOONGSON2F_WORKAROUNDS
-+ ifneq ($(call as-option,-Wa$(comma)-mfix-gs2f-kernel,),)
-+ cflags-$(CONFIG_CPU_NOP_WORKAROUNDS) += -Wa$(comma)-mfix-gs2f-kernel
-+ ifneq ($(CONFIG_CPU_NOP_WORKAROUNDS),$(CONFIG_CPU_JUMP_WORKAROUNDS))
-+ cflags-$(CONFIG_CPU_JUMP_WORKAROUNDS) += -Wa$(comma)-mfix-gs2f-kernel
-+ endif
-+ else
- ifeq ($(call as-option,-Wa$(comma)-mfix-loongson2f-nop,),)
- $(error only binutils >= 2.20.2 have needed option -mfix-loongson2f-nop)
- else
-@@ -20,6 +26,7 @@
- else
- cflags-$(CONFIG_CPU_JUMP_WORKAROUNDS) += -Wa$(comma)-mfix-loongson2f-jump
- endif
-+ endif
- endif
-
- #