main/linux-postmarketos-grate: upgrade to 5.11_rc5 (MR 1883)
This updates the current commit and refactor APKBUILD to more modern way of writing downstream kernels. Also move to main/ to fit other linux-postmarketos-* kernels.
This commit is contained in:
parent
98afa750e7
commit
21f535583a
3 changed files with 570 additions and 388 deletions
|
@ -1,61 +0,0 @@
|
||||||
_flavor=postmarketos-grate
|
|
||||||
_commit="beb89d003392a1bccf719beda4a6eb8f9a4864b2"
|
|
||||||
_config="config-$_flavor.armv7"
|
|
||||||
|
|
||||||
pkgname=linux-postmarketos-grate
|
|
||||||
pkgver=5.10.0_rc1
|
|
||||||
pkgrel=1
|
|
||||||
arch="armv7"
|
|
||||||
pkgdesc="Linux kernel with experimental patches for Tegra"
|
|
||||||
url="https://postmarketos.org"
|
|
||||||
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev
|
|
||||||
devicepkg-dev bison flex openssl-dev xz findutils"
|
|
||||||
options="!strip !check !tracedeps pmb:cross-native"
|
|
||||||
source="
|
|
||||||
$pkgname-$pkgver-$_commit.tar.gz::https://github.com/grate-driver/linux/archive/$_commit.tar.gz
|
|
||||||
$_config
|
|
||||||
"
|
|
||||||
license="GPL-2.0-only"
|
|
||||||
|
|
||||||
_carch="arm"
|
|
||||||
|
|
||||||
_ksrcdir="$srcdir/linux-$_commit"
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
default_prepare
|
|
||||||
mkdir -p "$srcdir"/build
|
|
||||||
cp -v "$srcdir"/$_config "$srcdir"/build/.config
|
|
||||||
make -C "$_ksrcdir" O="$srcdir"/build ARCH="$_carch" \
|
|
||||||
olddefconfig
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "$srcdir"/build
|
|
||||||
unset LDFLAGS
|
|
||||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
||||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine"
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
install -Dm644 "$srcdir/build/arch/$_carch/boot/"*zImage \
|
|
||||||
"$pkgdir/boot/vmlinuz-$_flavor"
|
|
||||||
|
|
||||||
install -D "$srcdir/build/include/config/kernel.release" \
|
|
||||||
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
||||||
|
|
||||||
cd "$srcdir"/build
|
|
||||||
|
|
||||||
local _install
|
|
||||||
case "$CARCH" in
|
|
||||||
aarch64*|arm*) _install="modules_install dtbs_install" ;;
|
|
||||||
*) _install="modules_install" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
make -j1 $_install \
|
|
||||||
ARCH="$_carch" \
|
|
||||||
INSTALL_MOD_STRIP=1 \
|
|
||||||
INSTALL_MOD_PATH="$pkgdir" \
|
|
||||||
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
||||||
}
|
|
||||||
sha512sums="ce80aaffc5cbab755ba50804bdf43c4b8c814bedcb4729e2ccfc2cfa3252a0110e397794850337d38047423d9f466bf170e6d0bfa0bc9d93c0ee5556b38e1785 linux-postmarketos-grate-5.10.0_rc1-beb89d003392a1bccf719beda4a6eb8f9a4864b2.tar.gz
|
|
||||||
2a30b072391c21e8adf9e832cff5589d80fa27c0aa387fc568385c1ad3798e5741b20ee85e4b8b588dd5183e4efee15d35bff971a2e55b2ef85106a8f38be074 config-postmarketos-grate.armv7"
|
|
44
main/linux-postmarketos-grate/APKBUILD
Normal file
44
main/linux-postmarketos-grate/APKBUILD
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
pkgname=linux-postmarketos-grate
|
||||||
|
pkgver=5.11.0_rc5
|
||||||
|
pkgrel=0
|
||||||
|
arch="armv7"
|
||||||
|
pkgdesc="Linux kernel with experimental patches for Tegra"
|
||||||
|
url="https://postmarketos.org"
|
||||||
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev
|
||||||
|
devicepkg-dev bison flex openssl-dev xz findutils"
|
||||||
|
options="!strip !check !tracedeps pmb:cross-native"
|
||||||
|
license="GPL-2.0-only"
|
||||||
|
|
||||||
|
# Source
|
||||||
|
_flavor=postmarketos-grate
|
||||||
|
_commit="7fb777bbf4668de2766055665764461b269ebf99"
|
||||||
|
_carch="arm"
|
||||||
|
_config="config-$_flavor.$arch"
|
||||||
|
source="$pkgname-$pkgver-$_commit.tar.gz::https://github.com/grate-driver/linux/archive/$_commit.tar.gz
|
||||||
|
$_config"
|
||||||
|
builddir="$srcdir/linux-$_commit"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
REPLACE_GCCH=0 \
|
||||||
|
. downstreamkernel_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
unset LDFLAGS
|
||||||
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||||
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
||||||
|
|
||||||
|
make -j1 modules_install dtbs_install \
|
||||||
|
ARCH="$_carch" \
|
||||||
|
INSTALL_MOD_STRIP=1 \
|
||||||
|
INSTALL_MOD_PATH="$pkgdir" \
|
||||||
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="9b3828ba7d834fd0a7da37eef1d425c1133afaebe73d2bbed2f8ec6e3695b834dbe9e19d33f0f4d954be7ff1e8f4f9151067525e6aab4d7c8f5e50fa071e2b49 linux-postmarketos-grate-5.11.0_rc5-7fb777bbf4668de2766055665764461b269ebf99.tar.gz
|
||||||
|
8520783678f2b1559f0157864cc7dac609744d8363f045cf92ec3d2248deac54f9f1c2a7d9581398bac659dfddb758a1c7f41c699742cdc2b8151f246f798714 config-postmarketos-grate.armv7"
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue