# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Henrik Grimler <henrik@grimler.se>

pkgname=device-odroid-xu4
pkgdesc="ODROID XU4"
pkgver=0.2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="linux-postmarketos-exynos5
	 postmarketos-base>=25-r1
	 u-boot-odroid
	"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

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="
dc89cd7b207b84fa8bdd1d26ffc16f89261123c92b3575e4b998cbdffa0752ebcf7fa130ec742cfb13b2066d7ae1bb9fb55621d67840ebfec17ab9fe5064866c  deviceinfo
"
