2023-02-12 11:55:47 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
# Maintainer: exkc <exxxxkc@getgoogleoff.me>
|
|
|
|
pkgname=device-radxa-zero
|
|
|
|
pkgver=1
|
2023-08-02 17:06:01 +00:00
|
|
|
pkgrel=1
|
2023-02-12 11:55:47 +00:00
|
|
|
pkgdesc="Radxa Zero"
|
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="postmarketos-base linux-edge u-boot-radxa-zero"
|
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
2023-08-02 17:06:01 +00:00
|
|
|
source="deviceinfo modules-initfs"
|
2023-02-12 11:55:47 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
# Due to linux-edge bugs in boot-deploy (see boot-deploy!20)
|
|
|
|
# This device could not be use generated extlinux.conf.
|
|
|
|
# There are hack for the boot-deploy bugs.
|
2023-08-02 17:06:01 +00:00
|
|
|
# However,if i put the hack in the deviceinfo modules-initfs file directly
|
2023-02-12 11:55:47 +00:00
|
|
|
# the ci will fail.
|
|
|
|
# so i have to use those command at below to put the hack in the deviceinfo.
|
|
|
|
echo '# Hack for lnux-edge bugs in boot-deploy (see boot-deploy!20)' >> $srcdir/deviceinfo
|
|
|
|
echo 'kernel_filename="vmlinuz-edge"' >> $srcdir/deviceinfo
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="WiFi/BT firmware"
|
|
|
|
depends="firmware-radxa-zero linux-firmware-meson"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2023-08-02 17:06:01 +00:00
|
|
|
|
2023-02-12 11:55:47 +00:00
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
509320dc12dbf23a9877292ca7aaa8711841199bd32cd50fafcc9308c0c50af4be64fa543c5ea4b5fc4d047c13167c347283c27d6357bb59936756dcefbb4293 deviceinfo
|
|
|
|
b9f3e1902c17909de928c99868265a257ba5873f6ea6aa1097ad10721f59d68342d50ee51992472ecd23722f7664a13dd15f4e26071a40595c7c3e5161e533d7 modules-initfs
|
2023-02-12 11:55:47 +00:00
|
|
|
"
|