summaryrefslogtreecommitdiff
path: root/libre-testing/kernel26-libre/get_configs
blob: 624ea1048921cfa0b5d28e327c5269bacedc3a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

source PKGBUILD

pkgname=${pkgname/-libre/}
KERNEL_VERSION=${2:-${_basekernel}-ARCH}
from=${1:-core}

for pkgarch in ${arch[@]}; do
	wget -nc "http://mirrors.kernel.org/archlinux/$from/os/${pkgarch}/${pkgname}-headers-${pkgver}-${pkgrel}-${pkgarch}.pkg.tar.xz"
	tar -xOf "${pkgname}-headers-${pkgver}-${pkgrel}-${pkgarch}.pkg.tar.xz" usr/src/linux-${KERNEL_VERSION}/.config > config.${pkgarch}
done

sed -i "s/-ARCH/-LIBRE/" config.*

exit 0