...
 
Commits (16)
......@@ -5,20 +5,21 @@ makepkg:
script:
- seblu-build
artifacts:
name: $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME
name: CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA
expire_in: 1 week
paths:
- config.x86_64
- "*.pkg.tar.xz"
only:
refs:
- tags
- web
- "*.pkg.tar.*"
commitpkg:
stage: deploy
script:
- eval $(ssh-agent -s)
# - trap "kill $SSH_AGENT_PID" 0
# trap is broken in gitlab runner, see:
# https://gitlab.com/gitlab-org/gitlab-runner/issues/3009
# use a workaournd with sleep and kill:
- sleep 300 && kill "$SSH_AGENT_PID" & disown
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- seblu-push
only:
......
......@@ -2,8 +2,8 @@
# Customized version of linux for seblu computers
pkgname=linux-seblu
pkgver=4.20.2
pkgrel=1
pkgver=4.19.99
pkgrel=3
pkgdesc='The Linux Kernel cooked by Seblu'
arch=('x86_64')
license=('GPL2')
......@@ -12,21 +12,18 @@ options=('!strip' '!buildflags')
makedepends=('glibc' 'libelf' 'kmod' 'git' 'make' 'gcc' 'bc' 'sed')
depends=('linux-firmware' 'kernel-install-hook')
install=linux-seblu.install
#_repourl='git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git'
_repourl='git+https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git'
source=("$_repourl#tag=v${pkgver/_/-}"
source=('git+https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git#tag=v4.19.99'
"config.$CARCH")
md5sums=('SKIP'
'6b4f2c5b079fffc801d4f0f14a966a65')
sha256sums=('SKIP'
'b688ed5e32039c9eda22121ec09ffe6d6fb0a6be1687db176874af14a3c4f35d')
prepare() {
# fake linux directory if necessary
if [[ ${_repourl##*/} != 'linux.git' ]]; then
local _reponame="${_repourl##*/}"
ln -sfT "${_reponame%.git}" linux
fi
pkgver() {
cd linux-stable
make kernelversion|tr '-' '_'
}
cd linux
prepare() {
cd linux-stable
# apply patches
for _f in "${source[@]}"; do
......@@ -57,7 +54,7 @@ prepare() {
}
build() {
cd linux
cd linux-stable
msg2 'Make prepare'
make prepare
......@@ -70,13 +67,12 @@ build() {
}
package() {
cd linux
cd linux-stable
# get real compiled kernel version
kernrel=$(make kernelrelease)
pkgdesc+=", version $kernrel"
pkgname="linux-$kernrel"
pkgver=$(make kernelversion|tr '-' '_')
provides=("linux=$pkgver" "linux-headers=$pkgver")
msg2 "Kernel release: $kernrel"
......@@ -113,7 +109,7 @@ install_sources() {
ln -rs "$kernsrc" "$pkgdir/usr/lib/modules/$kernrel"/build
# Copy kernel config files
cd "$srcdir/linux"
cd "$srcdir/linux-stable"
install -D -m644 Makefile "$kernsrc/Makefile"
install -D -m644 kernel/Makefile "$kernsrc/kernel/Makefile"
install -D -m644 .config "$kernsrc/.config"
......
This diff is collapsed.
#!/bin/bash -e
SRC=src/linux
SRC=src/linux-stable
CONFIG=config.x86_64
config_equal()
......