summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-14 09:29:45 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-14 09:29:45 -0300
commitcb65afbd8bbec2080e001d67d0fc3e484053e5f8 (patch)
treea577ce709317633ef939b0b3a22cf4e8c08129f8 /libre
parentb9930cb145be895813f48623c21b12acaf8e1dbf (diff)
linux-libre: add loongson and loongson1 headers dirs
Diffstat (limited to 'libre')
-rw-r--r--libre/linux-libre/PKGBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/libre/linux-libre/PKGBUILD b/libre/linux-libre/PKGBUILD
index 8d2b6e9d1..7cd327ca1 100644
--- a/libre/linux-libre/PKGBUILD
+++ b/libre/linux-libre/PKGBUILD
@@ -82,6 +82,9 @@ build() {
-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=\"-LIBRE\"|g" ./.config
+
+ sed -e "s|# \(CONFIG_BATMAN_ADV\) is not set|\1=m\n\1_DEBUG=n|" \
+ -i ./.config
else
cat "${srcdir}/config.${CARCH}" > ./.config # simpler
fi
@@ -196,7 +199,7 @@ package_linux-libre-headers() {
# In case of repackaging this is empty
if [ -z "${_kernver}" ]; then
- cd ${srcdir}/linux-$pkgver
+ cd ${srcdir}/linux-${_basekernel}
_kernver="$(make kernelrelease)"
fi
@@ -230,7 +233,8 @@ package_linux-libre-headers() {
if [ "$CARCH" = "mips64el" ]; then
cp "arch/${KARCH}/Kbuild" "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
- cp "arch/${KARCH}/loongson" "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
+ cp -r "arch/${KARCH}/loongson" "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
+ cp -r "arch/${KARCH}/loongson1" "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
cp "${srcdir}/Kbuild.platforms" "${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/"
fi