updpkg: linux-clockworkpi-git 1:6.12.22.r1316781.202504190318.4d28f51-1

Updated pkgver() to reflect patch level as well, and added build time to
pkgver for better debugging experience.

We now also generate .config directly from bcm2711_defconfig, instead of
extracting the generated one from the Debian package.
This commit is contained in:
Peter Cai 2025-04-19 08:40:17 -04:00
parent e025f942bc
commit 16e36804ac
2 changed files with 16 additions and 9481 deletions

View file

@ -6,34 +6,43 @@ pkgbase=linux-clockworkpi-git
_srcname=linux-clockworkpi
_kernelname=${pkgbase#linux}
_desc="for ClockworkPi uConsole / DevTerm, ak-rex source tree"
_pkgver_base=6.12
pkgver=6.12.r1316776.2711419
_branch=rpi-6.12.y
pkgver=6.12.22.r1316781.202504190318.4d28f51
pkgrel=1
epoch=1
arch=('aarch64')
url="http://www.kernel.org/"
license=('GPL2')
makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git' 'dtc')
options=('!strip')
source=("$_srcname::git+https://github.com/ak-rex/ClockworkPi-linux#branch=rpi-$_pkgver_base.y"
'config'
source=("$_srcname::git+https://github.com/ak-rex/ClockworkPi-linux#branch=$_branch"
'linux.preset')
md5sums=('SKIP'
'adf27584d48d52103548c0ff680c9454'
'4b6d890230b6751e375ed7d2e34cdb56')
pkgver() {
cd "$srcdir/$_srcname"
printf "%s.r%s.%s" "$_pkgver_base" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
local version=$(grep -m 1 VERSION Makefile | sed 's/^.*= //g')
local patchlevel=$(grep -m 1 PATCHLEVEL Makefile | sed 's/^.*= //g')
local sublevel=$(grep -m 1 SUBLEVEL Makefile | sed 's/^.*= //g')
printf "%s.%s.%s.r%s.%s.%s" "$version" "$patchlevel" "$sublevel" "$(git rev-list --count HEAD)" "$(date +%Y%m%d%H%M)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd $_srcname
cat "${srcdir}/config" > ./.config
# New panel driver currently broken; revert for now
git revert --no-commit 55bdc300c31a3cd6e18eab5c31116827a8dbcc15
echo "Setting version..."
echo "-$pkgrel" > localversion.10-pkgrel
echo "-$(git rev-parse --short=7 HEAD)" > localversion.11-commit
echo "${pkgbase#linux}" > localversion.20-pkgname
# Generate config from defconfig
# Use bcm2711 for both CM4/CM5 support. bcm2712 is 16k
# and only works on CM5.
make bcm2711_defconfig
}
build() {

File diff suppressed because it is too large Load diff