2021-03-25 23:43:50 +00:00
|
|
|
# Maintainer: Jacek Pruciak <pmos@juniorjpdj.pl>
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-lark-freeme-70-2s
|
|
|
|
pkgdesc="Lark FreeMe 70.2S"
|
|
|
|
pkgver=0.1
|
2021-07-07 05:06:17 +00:00
|
|
|
pkgrel=4
|
2021-03-25 23:43:50 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
|
|
|
linux-postmarketos-allwinner
|
|
|
|
mesa-egl
|
|
|
|
mesa-dri-gallium
|
|
|
|
postmarketos-base
|
|
|
|
u-boot-tools
|
|
|
|
u-boot-lark-freeme-70-2s
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev linux-postmarketos-allwinner"
|
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
u-boot-script.cmd
|
|
|
|
"
|
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
|
|
|
|
mkimage \
|
|
|
|
-A arm \
|
|
|
|
-O linux \
|
|
|
|
-T script \
|
|
|
|
-C none \
|
|
|
|
-a 0 \
|
|
|
|
-e 0 \
|
|
|
|
-n postmarketos \
|
|
|
|
-d "$srcdir"/u-boot-script.cmd \
|
|
|
|
"$srcdir"/boot.scr
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
|
|
|
|
# U-Boot boot script
|
|
|
|
install -Dm644 "$srcdir"/boot.scr \
|
|
|
|
"$pkgdir"/boot/boot.scr
|
|
|
|
|
|
|
|
# Device Tree - temporary workaround: copy from kernel package
|
|
|
|
install -Dm644 /usr/share/dtb/sun4i-a10-lark-freeme-70-2s.dtb \
|
|
|
|
"$pkgdir"/boot/dtbs-postmarketos-allwinner/sun4i-a10-lark-freeme-70-2s.dtb
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi firmware (rtl8188ctv)"
|
|
|
|
depends="linux-firmware-rtlwifi"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-05-04 23:39:53 +00:00
|
|
|
sha512sums="
|
2021-07-07 05:06:17 +00:00
|
|
|
09e9f8e4bace1595c80313141adbd7427c2ed60dbe477438922fc6083c70a0bc76f4af8d58630aaf54d6fd45e677e7db01eece8d576c5f38d6e0c77375c087f6 deviceinfo
|
2021-05-04 23:39:53 +00:00
|
|
|
26751c01bd998545b60d45f373e6d8356120ee2e49f923e85e1413b34a3aa1bdf9c84a04aac43c487d587e614710f7ade5a293c83a551cf7e3b2a4a90b076420 u-boot-script.cmd
|
|
|
|
"
|