pmaports/device/community/device-odroid-hc2/APKBUILD
Dylan Van Assche 8848527c22
device-odroid-hc2: enable Samsung JPEG encoder (MR 3191)
Add missing firmware from linux-firmware-other to enable Samsung JPEG hardware encoder
[ci:skip-build]: already built successfully in CI
2022-06-06 09:38:08 +02:00

60 lines
1.7 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Dylan Van Assche <me@dylanvanassche.be>
pkgname=device-odroid-hc2
pkgdesc="ODROID HC2"
pkgver=0.6
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="linux-odroid-hc2
postmarketos-base
u-boot-odroid
u-boot-tools
"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-tools"
_commit="42ac93dcfbbb8a08c2bdc02e19f96eb35a81891a"
source="deviceinfo uboot-script.cmd install-rootfs-hdd.sh"
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="U-Boot, Samsung JPEG encoder, and Realtek firmware, required for a bootable system"
depends="firmware-odroid-hc2 linux-firmware-rtl_nic linux-firmware-other"
mkdir "$subpkgdir"
}
tools() {
pkgdesc="ODROID HC2 tools"
depends="rsync e2fsprogs-extra"
mkdir "$subpkgdir"
install -Dm744 "$srcdir"/install-rootfs-hdd.sh \
"$pkgdir"/usr/bin/install-rootfs-hdd
}
sha512sums="
d02702884d47c2c6b98f1ec194fc3a11b2c6559d416c112d41ddecfbbd84f0706adfc72e13e9943f130e548d987aa7d151f4f416443d15b7dff2375d4d067144 deviceinfo
06239b979ad78cadc1bc764b8c6a2ce57c7f2a44456ba918e83ea7ae2846c983ec6cb8eea708540e7c4f3abe2a1ff942b8c8ae5e6d68dbc65a8f5c34942af49e uboot-script.cmd
669a0561251f287f072c9c1fc37d89b49a47fc4a4e5134c9e6681750ae960e5827043166136b7d5b9ad52c931b060bdcb6d0b5335c2e9fdb4eefd82f131ded93 install-rootfs-hdd.sh
"