Skip to content
Snippets Groups Projects
Commit 96b1f958 authored by Seblu's avatar Seblu
Browse files

linux-seblu 3.16_rc2

parent 9be33777
No related branches found
No related tags found
No related merge requests found
......@@ -3,15 +3,15 @@
pkgname=linux-seblu
pkgver=3.15
pkgver=3.16_rc2
pkgrel=1
arch=('x86_64')
license=('GPL2')
url='http://www.kernel.org'
options=('!strip')
makedepends=('kmod' 'bc' 'git')
source=("git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=v$pkgver"
"config.$CARCH.$pkgver")
source=("git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=v${pkgver/_/-}"
"config.$CARCH.${pkgver/_/-}")
md5sums=('SKIP' 'SKIP')
shopt -s nullglob
......@@ -28,7 +28,7 @@ prepare() {
# loading default config
# use make localmodconfig to check .config is correct
msg2 'Copying config'
install "$srcdir/config.$CARCH.$pkgver" .config
install "$srcdir/config.$CARCH.${pkgver/_/-}" .config
# force suffixe in config (must be the right!)
msg2 'Setting kernel suffix'
......@@ -79,25 +79,22 @@ package() {
# and it's done by kernel-install in .install
make INSTALL_MOD_PATH="$pkgdir/usr" DEPMOD=/bin/true modules_install
# copy headers
copy_headers
# gzip -9 all modules to safe 100MB of space
msg2 'Gzip modules harder'
find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
# remove build and source links
rm -f "$pkgdir/usr/lib/modules/$kernrel"/{source,build}
# copy headers
install_sources
# remove the firmware
# remove firmwares
rm -rf "$pkgdir/usr/lib/firmware"
# check rights
chown -R root.root "$pkgdir/usr/src/linux-$kernrel"
chmod -R u=rwX,go=rX "$pkgdir/usr/src/linux-$kernrel"
# gzip -9 all modules to safe 100MB of space
msg2 'Gzip modules harder'
find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
}
copy_headers() {
install_sources() {
# remove previous build and source links
rm -f "$pkgdir/usr/lib/modules/$kernrel"/{source,build}
# create build symlink into /usr/lib/modules
ln -sf ../../../src/linux-$kernrel "$pkgdir/usr/lib/modules/$kernrel/build"
......@@ -210,6 +207,9 @@ copy_headers() {
esac
done
# check rights
chown -R root.root "$pkgdir/usr/src/linux-$kernrel"
chmod -R u=rwX,go=rX "$pkgdir/usr/src/linux-$kernrel"
}
# vim:set ts=2 sw=2 ft=sh et:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment