pmaports/device/testing/device-odroid-xu4/APKBUILD
2022-09-27 09:26:53 +02:00

50 lines
1.3 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Henrik Grimler <henrik@grimler.se>
pkgname=device-odroid-xu4
pkgdesc="ODROID XU4"
pkgver=0.1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="linux-postmarketos-exynos5
postmarketos-base
u-boot-odroid
u-boot-tools
"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo uboot-script.cmd"
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
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/boot.scr \
"$pkgdir"/boot/boot.scr
}
nonfree_firmware() {
pkgdesc="Early bootloaders and trustzone firmware (required for a bootable system) and Realtek firmware"
depends="firmware-odroid-xu4 linux-firmware-rtl_nic"
mkdir "$subpkgdir"
}
sha512sums="
59528a57adafb1510c86a8ae1569243488a0abbe6907543f33a03ff1bdc60780c58ebe409b99e6d81b2bbaea6972965d194924e4117a06c3dfb88fa6b44032a5 deviceinfo
d6001fde71fb393ddf74838a7c2a29635a540f9f466ba8dfdea0fd053bbe99ffa491cb05a0b510f58ca31c80d8483387b1d019e905ff09b9f44a1033fcda7705 uboot-script.cmd
"