pmaports/device/testing/device-sipeed-licheezero/APKBUILD

63 lines
1.7 KiB
Text
Raw Normal View History

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-sipeed-licheezero
pkgdesc="Sipeed Lichee Zero"
pkgver=0.1
pkgrel=4
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
linux-edge
postmarketos-base
u-boot-sunxi
u-boot-tools
"
makedepends="devicepkg-dev dtc"
source="
deviceinfo
modules-initfs
uboot-script.cmd
overlay.txt
overlay/i2c0-user.dts
"
build() {
devicepkg_build $startdir $pkgname
mkimage \
-A arm \
-O linux \
-T script \
-C none \
-a 0 \
-e 0 \
-n postmarketos \
-d "$srcdir"/uboot-script.cmd \
"$srcdir"/boot.scr
dtc \
-@ \
-I dts \
-O dtb \
-o "$srcdir"/i2c0-user.dtbo \
"$srcdir"/i2c0-user.dts
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/boot.scr \
"$pkgdir"/boot/boot.scr
install -Dm644 "$srcdir"/overlay.txt \
"$pkgdir"/boot/overlay.txt
install -Dm644 "$srcdir"/i2c0-user.dtbo \
"$pkgdir"/boot/overlay/i2c0-user.dtbo
}
sha512sums="
2e2ef72fa7b8d723065afddafdf008c3154ddc385fa8de21fa3240e96d46fd654cf2151fa62fefbeee3e39f7e290f739d30bfb680a7539e6e5d25ee5a13a9d6b deviceinfo
27b3ef04bea6d690099c1928f80bac63f9bfa94e6cea61f847dcd078f385af7895d176f7916f6c6203ccb9f5724a27d7ff94b62c8af746b36cb7aacd8741175b modules-initfs
44dcd9a3cafd6670e7a75d9a2f966322ba0bb6ef081641bde136e7faa80c0d1fa1b3342302f36e5e999dde2c5099b31b106f1df33f6375b9453282dbdffa8ed4 uboot-script.cmd
3893ee2b0d8ddd018cc909d8157d79e6637fe546670430899c463452fd92ae9d9d6c4d212631d93b55e838f29b9e34fd22ab58a3ce628fec75a2d21944f8313d overlay.txt
8980f09f9afd276d0373545f203ee362f663ae055bf87df22e8085e8a4e53a4e46e96e2b4f8adb24b1dc77fffdf050fb8663008a742ad77c6cfbc50e3aff043f i2c0-user.dts
"