2019-08-28 08:27:48 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-01-10 16:42:21 +00:00
|
|
|
# Contributor: Martijn Braam <martijn@brixit.nl>
|
2019-09-11 08:06:06 +00:00
|
|
|
pkgname="device-pine64-pinephone"
|
2019-08-28 08:27:48 +00:00
|
|
|
pkgdesc="PINE64 PinePhone"
|
|
|
|
pkgver=0.1
|
2020-01-19 12:21:03 +00:00
|
|
|
pkgrel=20
|
2019-08-28 08:27:48 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
2020-01-19 12:21:03 +00:00
|
|
|
depends="postmarketos-base u-boot-pine64 uboot-tools mesa-git-dri-gallium linux-postmarketos-allwinner ofono ofono-openrc"
|
2019-08-28 08:27:48 +00:00
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
install="$pkgname.post-install"
|
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
uboot-script.cmd
|
|
|
|
weston.ini
|
2019-09-09 11:54:06 +00:00
|
|
|
hwtest.ini
|
2019-11-30 23:12:15 +00:00
|
|
|
ucm/sun50i-a64-audio.conf
|
|
|
|
ucm/HiFi
|
2019-09-10 04:21:13 +00:00
|
|
|
eg25.initd
|
2019-08-28 08:27:48 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
2020-01-10 16:42:21 +00:00
|
|
|
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n postmarketos -d "$srcdir"/uboot-script.cmd "$srcdir"/boot.scr
|
2019-08-28 08:27:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
install -D -m644 "$srcdir"/boot.scr \
|
|
|
|
"$pkgdir"/boot/boot.scr
|
2019-09-09 11:54:06 +00:00
|
|
|
install -D -m644 "$srcdir"/hwtest.ini \
|
|
|
|
"$pkgdir"/usr/share/hwtest.ini
|
2019-11-30 23:12:15 +00:00
|
|
|
|
|
|
|
# Alsa usecase manager config
|
|
|
|
install -D -m644 "$srcdir"/sun50i-a64-audio.conf \
|
|
|
|
"$pkgdir"/usr/share/alsa/ucm2/sun50i-a64-audio/sun50i-a64-audio.conf
|
|
|
|
install -D -m644 "$srcdir"/HiFi \
|
|
|
|
"$pkgdir"/usr/share/alsa/ucm2/sun50i-a64-audio/HiFi
|
2019-09-10 04:21:13 +00:00
|
|
|
|
|
|
|
install -Dm755 "$srcdir"/eg25.initd "$pkgdir"/etc/init.d/eg25
|
2019-08-28 08:27:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi and Bluetooth firmware"
|
|
|
|
depends="linux-firmware-rtlwifi linux-firmware-rtl_bt firmware-rtl8723bt"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2019-12-07 04:42:56 +00:00
|
|
|
sha512sums="bfb39f14c5a0b928d08cbcb5d19e63e141b052ebb72186c7c26f54d89c2ebf069674bc110215df0cacdd663610594eef5ffb3022eae5bd0e08aea34ab4e2f319 deviceinfo
|
2019-12-09 00:31:47 +00:00
|
|
|
35a5ce7c18747e4363c6b310a1c33143f333a9dd2031d619dee10773d499329487a5ed76749e182d56829d03511266a54890cfa706ba21565e9ba8ffdb88f872 uboot-script.cmd
|
2019-08-28 08:27:48 +00:00
|
|
|
c4c57d1627dd451213e1ef20d89de9266cd4edcc2d33a69aa9a1f13e16d9f9742036b69dc149fd910d7213f7525c41eb79576d4457bc85cc96eba0d986382d27 weston.ini
|
2019-11-30 23:12:15 +00:00
|
|
|
3dd6d612c381cb0002049d1974d8fb5aa5a53a1eb4d6bcbf62eb2ad52cfdc45f0f6ad24a699716d3513b0371aa1316f25dc72afc10d7176cc3b99d0965c3f030 hwtest.ini
|
|
|
|
775b7f7612102fc8ff12b2ffc8a7d479bfcf0ab054e331e4bd7873264cc63cbcbf5073d8dc2a80ef0f36226ad5c8b435396801c7d712161ff80ef036ecdc29b6 sun50i-a64-audio.conf
|
2019-09-10 04:21:13 +00:00
|
|
|
8018532bd68b4682455690922560933ddb0dd1dae6a3b2f8611ae89ad09e37ea3c5a17cb9fd39ac165e4e598e0eb9ebbd1395f5908020108ee8a301aae516c3c HiFi
|
|
|
|
5a1a9c774253e8211cc54f4b3961c4bdc35427726d037b0ecad099915e856590e8267a4a47943ab753772d57261eef89924b407b305b1099a9c4ecd7b5f00b35 eg25.initd"
|