2021-12-19 11:28:43 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
# Maintainer: Henrik Grimler <henrik@grimler.se>
|
|
|
|
|
|
|
|
pkgname=device-odroid-xu4
|
|
|
|
pkgdesc="ODROID XU4"
|
|
|
|
pkgver=0.1
|
2022-09-21 19:38:22 +00:00
|
|
|
pkgrel=2
|
2021-12-19 11:28:43 +00:00
|
|
|
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="
|
2022-09-21 19:38:22 +00:00
|
|
|
59528a57adafb1510c86a8ae1569243488a0abbe6907543f33a03ff1bdc60780c58ebe409b99e6d81b2bbaea6972965d194924e4117a06c3dfb88fa6b44032a5 deviceinfo
|
2021-12-19 11:28:43 +00:00
|
|
|
d6001fde71fb393ddf74838a7c2a29635a540f9f466ba8dfdea0fd053bbe99ffa491cb05a0b510f58ca31c80d8483387b1d019e905ff09b9f44a1033fcda7705 uboot-script.cmd
|
|
|
|
"
|