diff options
Diffstat (limited to 'libre/linux-libre/PKGBUILD')
-rw-r--r-- | libre/linux-libre/PKGBUILD | 41 |
1 files changed, 32 insertions, 9 deletions
diff --git a/libre/linux-libre/PKGBUILD b/libre/linux-libre/PKGBUILD index 8a493e182..9273ac437 100644 --- a/libre/linux-libre/PKGBUILD +++ b/libre/linux-libre/PKGBUILD @@ -13,7 +13,7 @@ _basekernel=3.11 _sublevel=4 pkgver=${_basekernel}.${_sublevel} pkgrel=1 -_lxopkgver=${_basekernel}.3 # nearly always the same as pkgver +_lxopkgver=${_basekernel}.4 # nearly always the same as pkgver arch=('i686' 'x86_64' 'mips64el') url="http://linux-libre.fsfla.org/" license=('GPL2') @@ -31,7 +31,7 @@ source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_basekernel}-gn 'change-default-console-loglevel.patch' 'criu-no-expert.patch' '3.11-haswell-intel_pstate.patch' - "http://www.linux-libre.fsfla.org/pub/linux-libre/lemote/gnewsense/pool/debuginfo/linux-patches-${_lxopkgver}-gnu_0loongsonlibre_mipsel.tar.bz2") + "http://www.linux-libre.fsfla.org/pub/linux-libre/lemote/gnewsense/pool/debuginfo/linux-patches-${_lxopkgver}-gnu_0loongsonlibre_mipsel.tar.xz") md5sums=('7ec84223c7adcf01a5287eb7af96b7e7' 'd09e8017d22370b873628942f3ece3b0' 'b7718a81faf845ab53234336122ad631' @@ -80,21 +80,30 @@ prepare() { if [ "$CARCH" == "mips64el" ]; then sed -i "s|^EXTRAVERSION.*|EXTRAVERSION =-libre|" Makefile sed -r "s|^( SUBLEVEL = ).*|\1$_sublevel|" \ - < "${srcdir}/lxo-config.patch" > lxo-config.patch + < "${srcdir}/config.patch" > config.patch msg2 "Adding loongson-community patches" patch -Np1 -i ${srcdir}/${_basekernel}*-*-loongson-community.patch - patch -Np0 -i lxo-config.patch + patch -Np0 -i config.patch - # ensure N32, add localversion, remove uevent helper as per - # https://git.kernel.org/?p=linux/hotplug/udev.git;a=blob_plain;f=README - # and make USB storage support builtin (e.g. for booting from USB - # disks without slowly loading an initramfs) + # ensure N32, add localversion, remove uevent helper as per + # https://git.kernel.org/?p=linux/hotplug/udev.git;a=blob_plain;f=README + # and make USB storage support builtin (e.g. for booting from USB + # disks without slowly loading an initramfs) + # since 3.4 rtl8187 supports adhoc mode, so batman-adv is enabled again sed -ri \ -e "s|CONFIG_MIPS32_N32=.*|CONFIG_MIPS32_N32=y|g" \ -e "s|CONFIG_UEVENT_HELPER_PATH=.*|CONFIG_UEVENT_HELPER_PATH=\"\"|g" \ -e "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_localversionname}\"|g" \ - -e "s;(CONFIG_USB(_COMMON|_EHCI_HCD|_OHCI_HCD|_STORAGE.*|_UAS)?)=.*;\1=y;g" \ + -e "s|# CONFIG_BATMAN_ADV is not set|CONFIG_BATMAN_ADV=m|g" \ ./.config + + for i in BATMAN_ADV_BLA BATMAN_ADV_DAT BATMAN_ADV_NC; do + echo "CONFIG_${i}=y" >>.config + done + + for i in ATH9K_LEGACY_RATE_CONTROL BATMAN_ADV_DEBUG; do + echo "# CONFIG_${i} is not set" >>.config + done else cat "${srcdir}/config.${CARCH}" > ./.config # simpler fi @@ -109,6 +118,8 @@ prepare() { # don't run depmod on 'make install'. We'll do this ourselves in packaging sed -i '2iexit 0' scripts/depmod.sh + + test "$CARCH" = "mips64el" && yes "" | make oldconfig } build() { @@ -426,3 +437,15 @@ for _p in ${pkgname[@]}; do done # vim:set ts=8 sts=2 sw=2 et: +md5sums=('7ec84223c7adcf01a5287eb7af96b7e7' + 'd09e8017d22370b873628942f3ece3b0' + 'b7718a81faf845ab53234336122ad631' + 'f7ee88ffc93b665345b6ee89ff192e1f' + 'e49ac236dfeef709f91a3d993ea7b62c' + '2967cecc3af9f954ccc822fd63dca6ff' + '8267264d9a8966e57fdacd1fa1fc65c4' + '36e90334b12b2e9d53fd92129ee98f5b' + '98beb36f9b8cf16e58de2483ea9985e3' + 'd50c1ac47394e9aec637002ef3392bd1' + '1040ae6c10d4a68f89899f94a2318a17' + 'e92d4241b533fdd7165b5d47197f7162') |