blob: a8b7680d636bb79931cdc963307677eaea3e45fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: Eric Woudstra <ericwouds@gmail.com>
pkgname=bpir64-mkimage
pkgver=2021.10
pkgrel=1
pkgdesc='Mkimage tool modified to stretch the image leaving empty space on sectors 2 through 34, so a GPT table can be used without problems.'
arch=(aarch64)
url='https://github.com/u-boot/u-boot'
license=(GPL3)
depends=()
makedepends=()
source=("https://github.com/u-boot/u-boot/archive/refs/tags/v${pkgver}.tar.gz"
'mtkimage-buffer-inc.patch'
'mtkimage-gpt-expand.patch')
sha256sums=(SKIP SKIP SKIP)
build() {
cd "${srcdir}/u-boot-${pkgver}"
patch -p1 -N -r - < "${srcdir}/mtkimage-buffer-inc.patch"
patch -p1 -N -r - < "${srcdir}/mtkimage-gpt-expand.patch"
ARCH=arm64 make mt7622_rfb_defconfig tools-only
cp -vf tools/mkimage tools/bpir64-mkimage
}
package() {
cd "${srcdir}/u-boot-${pkgver}/tools"
install -m755 -vDt $pkgdir/usr/bin bpir64-mkimage
}
|