2024-04-25 10:09:10 +00:00
|
|
|
# Maintainer: Andreas Kemnade <andreas@kemnade.info>
|
2021-12-27 21:41:54 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=u-boot-tolino-shine2hd
|
2024-04-25 10:09:10 +00:00
|
|
|
pkgver=2023.10
|
2021-12-27 21:41:54 +00:00
|
|
|
pkgrel=0
|
2024-04-25 10:09:10 +00:00
|
|
|
pkgdesc="U-Boot for Tolino Shine 2 HD"
|
2021-12-27 21:41:54 +00:00
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
|
|
|
license="GPL-2.0"
|
|
|
|
url="https://github.com/akemnade/u-boot-fslc"
|
2024-04-25 10:09:10 +00:00
|
|
|
makedepends="bash bc dtc bison flex openssl-dev"
|
|
|
|
options="!check !tracedeps pmb:cross-native"
|
2021-12-27 21:41:54 +00:00
|
|
|
|
2024-04-25 10:09:10 +00:00
|
|
|
install="$pkgname.post-upgrade"
|
2021-12-27 21:41:54 +00:00
|
|
|
_repository="u-boot-fslc"
|
2024-04-25 10:09:10 +00:00
|
|
|
_commit="4518da106aae1a8ce97d8ca41c248b79fcec63ed"
|
2021-12-27 21:41:54 +00:00
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/akemnade/$_repository/archive/$_commit.tar.gz
|
|
|
|
"
|
|
|
|
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
make ARCH="$_carch" mx6sltolinoshine3_defconfig
|
2024-04-25 10:09:10 +00:00
|
|
|
scripts/config -e ENV_IS_IN_EXT4
|
|
|
|
scripts/config -d ENV_IS_IN_MMC
|
|
|
|
scripts/config --set-str ENV_EXT4_INTERFACE "mmc"
|
|
|
|
scripts/config --set-str ENV_EXT4_DEVICE_AND_PART "0:1"
|
|
|
|
scripts/config --set-str ENV_EXT4_FILE "/uboot.env"
|
2021-12-27 21:41:54 +00:00
|
|
|
make ARCH="$_carch" DEVICE_TREE=imx6sl-tolino-shine2hd
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -D -m644 "$builddir/u-boot-dtb.imx" "$pkgdir/usr/share/u-boot/tolino-shine2hd/u-boot.imx"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2024-04-25 10:09:10 +00:00
|
|
|
664c2780aad4ae86e411fe71a8d0e0cf98ca7ef98c3daed9e20b4e88e930bb3f0ca2073052d0481338505c29e7641c0fa54efb320398acf7f659c57193fcd7e7 u-boot-tolino-shine2hd-4518da106aae1a8ce97d8ca41c248b79fcec63ed.tar.gz
|
2021-12-27 21:41:54 +00:00
|
|
|
"
|