2021-06-13 09:56:45 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2023-07-08 17:10:44 +00:00
|
|
|
# Unmaintained: no maintainer
|
2021-06-13 09:56:45 +00:00
|
|
|
|
|
|
|
pkgname=device-odroid-hc2
|
|
|
|
pkgdesc="ODROID HC2"
|
2022-08-21 12:01:56 +00:00
|
|
|
pkgver=0.7
|
2023-09-19 16:16:35 +00:00
|
|
|
pkgrel=5
|
2021-06-13 09:56:45 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
2022-08-21 12:01:56 +00:00
|
|
|
depends="linux-edge
|
2021-07-07 07:27:59 +00:00
|
|
|
postmarketos-base
|
|
|
|
u-boot-odroid
|
|
|
|
u-boot-tools
|
|
|
|
"
|
2021-06-13 09:56:45 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2021-07-06 18:48:55 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-tools"
|
2021-06-13 09:56:45 +00:00
|
|
|
_commit="42ac93dcfbbb8a08c2bdc02e19f96eb35a81891a"
|
2023-08-02 17:06:01 +00:00
|
|
|
source="deviceinfo modules-initfs uboot-script.cmd install-rootfs-hdd.sh"
|
2021-06-13 09:56:45 +00:00
|
|
|
|
|
|
|
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() {
|
2022-06-05 07:56:27 +00:00
|
|
|
pkgdesc="U-Boot, Samsung JPEG encoder, and Realtek firmware, required for a bootable system"
|
2023-09-11 16:50:55 +00:00
|
|
|
depends="firmware-odroid-hc2 linux-firmware-rtl_nic linux-firmware-other linux-firmware-s5p-mfc"
|
2021-06-13 09:56:45 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-07-06 18:48:55 +00:00
|
|
|
tools() {
|
|
|
|
pkgdesc="ODROID HC2 tools"
|
|
|
|
depends="rsync e2fsprogs-extra"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
install -Dm744 "$srcdir"/install-rootfs-hdd.sh \
|
2022-08-21 12:01:56 +00:00
|
|
|
"$subpkgdir"/usr/bin/install-rootfs-hdd
|
2021-07-06 18:48:55 +00:00
|
|
|
}
|
|
|
|
|
2021-06-13 09:56:45 +00:00
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
2aff998527535760d04b338d59976408a1d852ba38dfbdff305ec028030d419259cb1b9491b8e54a3621d147f9e8c1a797ed2a3784da7f25d2a92aa60882d027 deviceinfo
|
|
|
|
228726f7afca55b02e4d452904d8490cf15957edd59cc87274d89c8589f9d15044db87a4413053243e66aa1b22860cfda052b5b95395effaf3aaf4d1770d3fd3 modules-initfs
|
2022-08-21 12:01:56 +00:00
|
|
|
f3e7a39d53c072f4ae68fcca241f88b05939052ff1c9bd8d45b47d2b336f3c239689857051ff3c7a96caefd5c10d2e34d9b921c62f993f80faca2999eb7beab8 uboot-script.cmd
|
2022-10-14 11:46:40 +00:00
|
|
|
09a2191dce5b5c8fdf80c4473d9773a51f2c633db51477f2f64983dd030d7800fd80999a228ec7efe3f9feafeba35902bff68cf95e6ae59048dc64424f402b63 install-rootfs-hdd.sh
|
2021-06-13 09:56:45 +00:00
|
|
|
"
|