Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6590
62 lines
1.9 KiB
Bash
62 lines
1.9 KiB
Bash
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: knuxify <knuxify@gmail.com>
|
|
|
|
pkgname=device-odroid-hc2
|
|
pkgdesc="ODROID HC2"
|
|
pkgver=4
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="armv7"
|
|
options="!check !archcheck"
|
|
depends="linux-stable
|
|
postmarketos-base
|
|
u-boot-odroid
|
|
u-boot-tools
|
|
"
|
|
makedepends="devicepkg-dev u-boot-tools"
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-tools"
|
|
_commit="42ac93dcfbbb8a08c2bdc02e19f96eb35a81891a"
|
|
source="deviceinfo modules-initfs 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 linux-firmware-s5p-mfc"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
tools() {
|
|
pkgdesc="ODROID HC2 tools"
|
|
depends="rsync e2fsprogs-extra"
|
|
mkdir "$subpkgdir"
|
|
install -Dm744 "$srcdir"/install-rootfs-hdd.sh \
|
|
"$subpkgdir"/usr/bin/install-rootfs-hdd
|
|
}
|
|
|
|
sha512sums="
|
|
8eae54c131b8fc9c0e4cca6bbd8aaca72eb585c59d7794a97606b6061f98f87fb2b268fefc3113410e04e9e772d1f65d78e935de01a7679ba45ee60007961183 deviceinfo
|
|
c1bcb5bf8aac1135cfd55bc77445aa2edeb70777da927c8648a6ae602542ac3f7174bd9b86c70ca97d6444a62d2892f6fa0d743c14b3653bc8eb31b6e61fd4e2 modules-initfs
|
|
22212ee91d781bf9997569c986a340d4ff7ec2d30d19ae0233a664b5b91d8bbfe71586dae57d6a3d961f6e4e369733005e01c2cd58f941ce67f557b2e21ce37b uboot-script.cmd
|
|
09a2191dce5b5c8fdf80c4473d9773a51f2c633db51477f2f64983dd030d7800fd80999a228ec7efe3f9feafeba35902bff68cf95e6ae59048dc64424f402b63 install-rootfs-hdd.sh
|
|
"
|