27b8ef368f
uboot-tools is provided by u-boot-tools but sometimes apk still gets confused. This change prevents errors such as pine64-pinephone:~$ sudo apk upgrade --verbose WARNING: Failed to perform initial self-upgrade, continuing with full upgrade. ERROR: unable to select packages: uboot-tools (virtual): provided by: u-boot-tools required by: device-pine64-pinephone-0.25-r1[uboot-tools] [ci:ignore-count] [ci:skip-build]: already built in CI successfully
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname=device-tokio-techbook
|
|
pkgdesc="Tokio Techbook"
|
|
pkgver=0.1
|
|
pkgrel=3
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="armv7"
|
|
options="!check !archcheck"
|
|
depends="postmarketos-base linux-tokio-techbook mesa-dri-swrast mkbootimg u-boot-tools"
|
|
makedepends="devicepkg-dev"
|
|
|
|
source="
|
|
deviceinfo
|
|
uboot-script.cmd
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
# Creating uboot script
|
|
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n postmarketos -d "$srcdir/uboot-script.cmd" "$srcdir/boot.scr"
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
# Copy newly generated file to correct path
|
|
mkdir -p "$pkgdir/boot/FirmwareInstall"
|
|
install -D -m644 "$srcdir"/boot.scr \
|
|
"$pkgdir"/boot/FirmwareInstall/autorun.1.wmt
|
|
}
|
|
|
|
sha512sums="bfe77acb660b5283a9ff783360515116cb472c470a1332078ccbeb461b0803dd735a4ff21eab2943b42beed5610a67e9a173d1eb43b4a15a822c70af9262b2df deviceinfo
|
|
e3b1a60107e0aa31c409d1f8d54eb10c67fd50135fb0b3091192f13089603631bce6889c2081089e206549f914bcf329a0441a605a8fb1713f9b54f1003554d9 uboot-script.cmd"
|