2021-06-13 09:56:45 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
# Maintainer: Dylan Van Assche <me@dylanvanassche.be>
|
|
|
|
|
|
|
|
pkgname=device-odroid-hc2
|
|
|
|
pkgdesc="ODROID HC2"
|
|
|
|
pkgver=0.1
|
2021-07-07 05:06:17 +00:00
|
|
|
pkgrel=1
|
2021-06-13 09:56:45 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="postmarketos-base linux-odroid-hc2 u-boot-odroid u-boot-tools"
|
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
_commit="42ac93dcfbbb8a08c2bdc02e19f96eb35a81891a"
|
|
|
|
source="deviceinfo uboot-script.cmd network-interfaces"
|
|
|
|
|
|
|
|
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
|
|
|
|
install -Dm644 "$srcdir"/network-interfaces \
|
|
|
|
"$pkgdir"/etc/network/interfaces
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="U-Boot and Realtek firmware, required for a bootable system"
|
|
|
|
depends="firmware-odroid-hc2 linux-firmware-rtl_nic"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2021-07-07 05:06:17 +00:00
|
|
|
90afdace4ad938ed69747d3b51ac1678bc325cb4e7234ac4eeded7b6fa79f10bd88d15ebfc6f20f0a9252c48008288a489cb99751ae6d2cdb12f289b9154a9f3 deviceinfo
|
2021-06-13 09:56:45 +00:00
|
|
|
83a4bcc34d20c2e5e6f1c3412c291baa90a8137df7925c02d8e46d922d45615cc957d79d37a23982bed7e1cfa92f2be22fa5f11cc59d3706b79ba62a2d550263 uboot-script.cmd
|
|
|
|
d510ca304066840aa5e6c4fc71ded1b7e83012c93837fa39e37bdb873b3636230030d56f7aa50c93fc688f563cb4cb96c02ad333bbc45a400c1ebee1792a9dd4 network-interfaces
|
|
|
|
"
|