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
|
2024-04-22 12:49:26 +00:00
|
|
|
pkgrel=1
|
2021-07-10 14:43:24 +00:00
|
|
|
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"
|
2024-04-22 12:49:26 +00:00
|
|
|
_commit="3247fa27aed27bb5ac24bd9966fd7dadd9c4c373"
|
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="
|
2024-04-22 12:49:26 +00:00
|
|
|
725f689bd5bd00f3b484830e5db9be51af6ed6f5644463e646db2c412f5878361e887ed4f3b3083a3e16f0915c909af22081cb52fd8541ac2953e1f77ffc5940 u-boot-kobo-clara-3247fa27aed27bb5ac24bd9966fd7dadd9c4c373.tar.gz
|
2021-07-10 14:43:24 +00:00
|
|
|
"
|