Skip to content
Commits on Source (19)
......@@ -2,21 +2,29 @@
# Customized version of linux for seblu computers
pkgname=linux-seblu
pkgver=4.9
pkgver=4.9.130
pkgrel=1
pkgdesc='The Linux Kernel cooked by Seblu'
arch=('x86_64')
license=('GPL2')
url='http://www.kernel.org'
options=('!strip')
options=('!strip' '!buildflags' '!makeflags')
makedepends=('kmod' 'git' 'make' 'gcc' 'bc' 'sed')
depends=('linux-firmware' 'kernel-install-hook')
install=linux-seblu.install
source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=v${pkgver/_/-}"
_repourl='git+https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git'
source=("$_repourl#tag=v${pkgver/_/-}"
"config.$CARCH")
md5sums=('SKIP' 'SKIP')
md5sums=('SKIP'
'cd0cd5cebc5cecdda1fc3f96c0a85c65')
prepare() {
# fake linux directory if necessary
if [[ ${_repourl##*/} != 'linux.git' ]]; then
local _reponame="${_repourl##*/}"
ln -sfT "${_reponame%.git}" linux
fi
cd linux
# apply patches
......@@ -56,8 +64,8 @@ build() {
msg2 'Make bzImage'
make bzImage
msg2 'Make modules'
make modules
# msg2 'Make modules'
# make modules
}
package() {
......@@ -75,19 +83,19 @@ package() {
msg2 'Install vmlinuz'
install -D -m644 arch/x86/boot/bzImage "$pkgdir/usr/lib/kernel/vmlinuz-$kernrel"
msg2 'Install modules'
# disable DEPMOD because it fail due to poor hack in scripts/depmod.sh
make -s INSTALL_MOD_PATH="$pkgdir/usr" DEPMOD=/bin/true modules_install
# msg2 'Install modules'
# # disable DEPMOD because it fail due to poor hack in scripts/depmod.sh
# make -s INSTALL_MOD_PATH="$pkgdir/usr" DEPMOD=/bin/true modules_install
msg2 'Install sources'
install_sources
# msg2 'Install sources'
# install_sources
msg2 'Remove firmwares'
rm -rf "$pkgdir/usr/lib/firmware"
msg2 'Generate modules.dep and map files'
# run depmod to keep track of these files and remove them with the package
depmod -b "$pkgdir/usr" -F System.map "$kernrel"
# msg2 'Generate modules.dep and map files'
# # run depmod to keep track of these files and remove them with the package
# depmod -b "$pkgdir/usr" -F System.map "$kernrel"
}
install_sources() {
......@@ -102,7 +110,7 @@ install_sources() {
ln -rs "$kernsrc" "$pkgdir/usr/lib/modules/$kernrel"/build
# Copy kernel config files
cd "$srcdir"/linux
cd "$srcdir/linux"
install -D -m644 Makefile "$kernsrc/Makefile"
install -D -m644 kernel/Makefile "$kernsrc/kernel/Makefile"
install -D -m644 .config "$kernsrc/.config"
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -23,5 +23,5 @@ post_upgrade() {
# arg 1: the old package version
post_remove() {
_warning_msg "$2" 'removed'
_warning_msg "$1" 'removed'
}
#!/bin/bash -e
SRC=src/linux
CONFIG=config.x86_64
config_equal()
{
diff -q -s "$SRC/.config" "$CONFIG" &>/dev/null
}
if config_equal; then
(cd "$SRC" && make menuconfig)
else
[[ -e "$SRC" ]] && rm -rf "$SRC"
makepkg --nobuild --force
(cd "$SRC" && make oldconfig)
fi
if ! config_equal; then
cp -v "$SRC/.config" "$CONFIG"
updpkgsums
fi