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"
|
2021-07-07 07:27:59 +00:00
|
|
|
pkgver=0.2
|
|
|
|
pkgrel=0
|
2021-06-13 09:56:45 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
2021-07-07 07:27:59 +00:00
|
|
|
depends="linux-odroid-hc2
|
|
|
|
networkmanager
|
|
|
|
postmarketos-base
|
|
|
|
u-boot-odroid
|
|
|
|
u-boot-tools
|
|
|
|
"
|
2021-06-13 09:56:45 +00:00
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
_commit="42ac93dcfbbb8a08c2bdc02e19f96eb35a81891a"
|
2021-07-07 07:27:59 +00:00
|
|
|
install="$pkgname.post-install $pkgname.post-upgrade"
|
|
|
|
source="deviceinfo uboot-script.cmd"
|
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() {
|
|
|
|
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
|
|
|
|
"
|