linux-postmarketos-mediatek-mt6763: use mkdtboimg from android-tools (MR 4145)

... and work around https://gitlab.com/postmarketOS/pmaports/-/issues/1990
This commit is contained in:
Newbyte 2023-06-02 20:57:28 +02:00 committed by Alexey Minnekhanov
parent c4886f93c7
commit f5fc3217f0
No known key found for this signature in database
GPG key ID: 6FE3B029D9D9FAFF

View file

@ -4,7 +4,7 @@
_flavor="postmarketos-mediatek-mt6763" _flavor="postmarketos-mediatek-mt6763"
pkgname=linux-$_flavor pkgname=linux-$_flavor
pkgver=6.1_rc5 pkgver=6.1_rc5
pkgrel=0 pkgrel=1
_commit="e5f07514a6172f194c8829c45965137ffa1834ea" _commit="e5f07514a6172f194c8829c45965137ffa1834ea"
pkgdesc="Mainline Kernel fork for MT6763-based devices" pkgdesc="Mainline Kernel fork for MT6763-based devices"
arch="aarch64" arch="aarch64"
@ -16,7 +16,7 @@ options="!strip !check !tracedeps
pmb:cross-native pmb:cross-native
" "
makedepends=" makedepends="
android-mkdtboimg android-tools
bash bash
bison bison
findutils findutils
@ -43,7 +43,8 @@ prepare() {
build() { build() {
unset LDFLAGS unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \ make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-$_flavor" KBUILD_BUILD_VERSION="$((pkgrel + 1))-$_flavor" \
V=1
} }
package() { package() {
@ -59,7 +60,7 @@ package() {
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release "$pkgdir"/usr/share/kernel/$_flavor/kernel.release
dtbodir="$builddir/$_outdir/arch/arm64/boot/dts/mediatek" dtbodir="$builddir/$_outdir/arch/arm64/boot/dts/mediatek"
mkdtimg create "$pkgdir/boot/dtbo.img" \ mkdtboimg create "$pkgdir/boot/dtbo.img" \
"$dtbodir/mt6763v-volla-yggdrasil-minimal-dtbo.dtb" "$dtbodir/mt6763v-volla-yggdrasil-minimal-dtbo.dtb"
} }