2023-11-11 11:42:31 +00:00
|
|
|
# Maintainer: Andreas Kemnade <andreas@kemnade.info>
|
2021-07-10 14:43:24 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=u-boot-kobo-clara
|
2023-11-11 11:42:31 +00:00
|
|
|
pkgver=2023.10
|
2021-07-10 14:43:24 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="U-Boot for Kobo Clara HD"
|
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
|
|
|
license="GPL-2.0"
|
2023-11-11 11:42:31 +00:00
|
|
|
url="https://github.com/akemnade/u-boot-fslc"
|
|
|
|
makedepends="bash bc dtc bison flex openssl-dev"
|
|
|
|
options="!check !tracedeps pmb:cross-native"
|
2021-07-10 14:43:24 +00:00
|
|
|
|
2024-04-03 22:55:01 +00:00
|
|
|
install="$pkgname.post-upgrade"
|
2023-11-11 11:42:31 +00:00
|
|
|
_repository="u-boot-fslc"
|
|
|
|
_commit="a3816f6b51b5dc9083af4142ca5f3a4e4a235336"
|
2021-07-10 14:43:24 +00:00
|
|
|
source="
|
2023-11-11 11:42:31 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/akemnade/$_repository/archive/$_commit.tar.gz
|
2021-07-10 14:43:24 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
|
|
|
|
build() {
|
2023-11-11 11:42:31 +00:00
|
|
|
make ARCH="$_carch" mx6sllclarahd_defconfig
|
|
|
|
scripts/config --set-str BOOTCOMMAND "detect_clara_rev ; run distro_bootcmd ; fastboot 0"
|
|
|
|
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-07-10 14:43:24 +00:00
|
|
|
make ARCH="$_carch"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-04-03 22:55:01 +00:00
|
|
|
install -Dm644 "$builddir/u-boot-dtb.imx" "$pkgdir/usr/share/u-boot/kobo-clara/u-boot.imx"
|
2021-07-10 14:43:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-11-11 11:42:31 +00:00
|
|
|
d1db014fa889e76aeb83099f7573f5ec89c8e6f69a6273b9528fd485ffcbe34e102ee0c492554807e160a5bd669bf799db2b5a906045fea35b16c0677a377989 u-boot-kobo-clara-a3816f6b51b5dc9083af4142ca5f3a4e4a235336.tar.gz
|
2021-07-10 14:43:24 +00:00
|
|
|
"
|