2019-07-23 22:37:31 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-11-23 20:32:32 +00:00
|
|
|
# Maintainer: Alexey Min <alexey.min@gmail.com>
|
|
|
|
# Co-Maintainer: Martijn Braam <martijn@brixit.nl>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-pine64-pinetab
|
2019-09-11 08:08:30 +00:00
|
|
|
pkgdesc="PINE64 PineTab"
|
2020-11-23 20:32:32 +00:00
|
|
|
pkgver=0.6
|
2020-10-09 22:11:07 +00:00
|
|
|
pkgrel=0
|
2019-07-23 22:37:31 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2020-11-09 11:09:18 +00:00
|
|
|
depends="
|
|
|
|
alsa-ucm-conf
|
|
|
|
mesa-egl
|
|
|
|
mesa-dri-gallium
|
|
|
|
postmarketos-base
|
|
|
|
u-boot-pinephone
|
|
|
|
uboot-tools
|
|
|
|
"
|
2019-07-23 22:37:31 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2020-01-10 16:42:50 +00:00
|
|
|
subpackages="
|
2020-10-09 22:11:07 +00:00
|
|
|
$pkgname-kernel-allwinner:kernel_allwinner
|
|
|
|
$pkgname-kernel-allwinner-dev:kernel_allwinner_dev
|
2020-01-10 16:42:50 +00:00
|
|
|
$pkgname-sway
|
|
|
|
$pkgname-weston
|
|
|
|
$pkgname-phosh
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
2019-08-08 13:47:54 +00:00
|
|
|
install="$pkgname.post-install"
|
2019-07-23 22:37:31 +00:00
|
|
|
source="
|
2020-04-26 15:22:23 +00:00
|
|
|
ucm/HiFi.conf
|
2020-10-09 22:11:07 +00:00
|
|
|
ucm/PineTab.conf
|
2019-07-23 22:37:31 +00:00
|
|
|
deviceinfo
|
|
|
|
uboot-script.cmd
|
2020-02-14 17:12:28 +00:00
|
|
|
sysrq.conf
|
2019-07-23 22:37:31 +00:00
|
|
|
sway.conf
|
2019-08-08 13:47:54 +00:00
|
|
|
99-pinetab-keyboard.hwdb
|
2019-08-21 09:05:35 +00:00
|
|
|
weston.ini
|
2019-09-30 17:19:28 +00:00
|
|
|
rootston.ini
|
2019-07-23 22:37:31 +00:00
|
|
|
"
|
|
|
|
|
2020-10-09 22:11:07 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
for version in pinetab-dev pinetab; do
|
|
|
|
sed "1s;^;\nsetenv pinetabfdt sun50i-a64-$version.dtb\;\n;" \
|
|
|
|
"$srcdir"/uboot-script.cmd > "$srcdir/uboot-script-$version.cmd"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2019-07-23 22:37:31 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
2020-10-09 22:11:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
kernel_allwinner() {
|
|
|
|
pkgdesc="Allwinner kernel with support for Pinetab LCD panel (from Early Adopter)"
|
|
|
|
depends="linux-postmarketos-allwinner"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
|
2019-07-23 22:37:31 +00:00
|
|
|
mkimage \
|
|
|
|
-A arm \
|
|
|
|
-O linux \
|
|
|
|
-T script \
|
|
|
|
-C none \
|
|
|
|
-a 0 \
|
|
|
|
-e 0 \
|
|
|
|
-n postmarketos \
|
2020-10-09 22:11:07 +00:00
|
|
|
-d "$srcdir"/uboot-script-pinetab.cmd \
|
2019-07-23 22:37:31 +00:00
|
|
|
"$srcdir"/boot.scr
|
2020-10-09 22:11:07 +00:00
|
|
|
|
|
|
|
# U-Boot
|
|
|
|
install -Dm644 "$srcdir"/boot.scr \
|
|
|
|
"$subpkgdir"/boot/boot.scr
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_allwinner_dev() {
|
|
|
|
pkgdesc="Allwinner kernel with support for old Pinetab LCD panel (pre Early Adopter)"
|
|
|
|
depends="linux-postmarketos-allwinner"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
|
|
|
|
mkimage \
|
|
|
|
-A arm \
|
|
|
|
-O linux \
|
|
|
|
-T script \
|
|
|
|
-C none \
|
|
|
|
-a 0 \
|
|
|
|
-e 0 \
|
|
|
|
-n postmarketos \
|
|
|
|
-d "$srcdir"/uboot-script-pinetab-dev.cmd \
|
|
|
|
"$srcdir"/boot_dev.scr
|
|
|
|
|
|
|
|
# U-Boot
|
|
|
|
install -Dm644 "$srcdir"/boot_dev.scr \
|
|
|
|
"$subpkgdir"/boot/boot.scr
|
2019-07-23 22:37:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sway() {
|
2020-01-10 16:42:50 +00:00
|
|
|
install_if="$pkgname postmarketos-ui-sway"
|
|
|
|
install -D -m644 "$srcdir"/sway.conf \
|
|
|
|
"$subpkgdir"/etc/sway/config.d/pinetab
|
2019-07-23 22:37:31 +00:00
|
|
|
}
|
|
|
|
|
2019-08-21 09:05:35 +00:00
|
|
|
weston() {
|
2020-01-10 16:42:50 +00:00
|
|
|
install_if="$pkgname postmarketos-ui-weston"
|
|
|
|
install -Dm644 "$srcdir"/weston.ini \
|
|
|
|
"$subpkgdir"/etc/xdg/weston/weston.ini
|
2019-08-21 09:05:35 +00:00
|
|
|
}
|
|
|
|
|
2019-09-30 17:19:28 +00:00
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
2020-01-10 16:42:50 +00:00
|
|
|
install -Dm644 "$srcdir"/rootston.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/rootston.ini
|
2019-09-30 17:19:28 +00:00
|
|
|
}
|
|
|
|
|
2019-07-23 22:37:31 +00:00
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2019-08-08 13:47:54 +00:00
|
|
|
|
2020-02-14 17:12:28 +00:00
|
|
|
# Fix "sysrq: HELP..." messages in dmesg while playing audio
|
|
|
|
# (Headphone output interferes with the serial console on the headphone jack)
|
|
|
|
install -D -m644 "$srcdir"/sysrq.conf \
|
|
|
|
"$pkgdir"/etc/sysctl.d/sysrq.conf
|
|
|
|
|
2020-04-26 15:22:23 +00:00
|
|
|
# Alsa usecase manager config
|
2020-10-09 22:11:07 +00:00
|
|
|
install -D -m644 "$srcdir"/PineTab.conf \
|
|
|
|
"$pkgdir"/usr/share/alsa/ucm2/PineTab/PineTab.conf
|
2020-04-26 15:22:23 +00:00
|
|
|
install -D -m644 "$srcdir"/HiFi.conf \
|
2020-10-09 22:11:07 +00:00
|
|
|
"$pkgdir"/usr/share/alsa/ucm2/PineTab/HiFi.conf
|
2020-04-26 15:22:23 +00:00
|
|
|
|
2019-08-08 13:47:54 +00:00
|
|
|
# Fix for the meta key on v1 keyboard dock, probably not needed on newer revisions
|
|
|
|
install -Dm644 "$srcdir"/99-pinetab-keyboard.hwdb \
|
|
|
|
"$pkgdir"/etc/udev/hwdb.d/99-pinetab-keyboard.hwdb
|
2019-07-23 22:37:31 +00:00
|
|
|
}
|
|
|
|
|
2019-08-11 16:17:08 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Bluetooth Firmware"
|
2020-06-23 11:00:22 +00:00
|
|
|
depends="firmware-pine64-rtl8723bt"
|
2019-08-11 16:17:08 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
2019-07-23 22:37:31 +00:00
|
|
|
|
2020-10-09 22:11:07 +00:00
|
|
|
sha512sums="2cf8d22f6c324633b4e72dea7a6b642e767b9bf50dac801ffc9e57347d272655b7087956afd50c3e65cd87c2f24e0e69c11b648b00bd58d31608d4e98e99e5d9 HiFi.conf
|
|
|
|
3bdf9d4c41058680d488d9b4a2ac5fd693ceddc5f319a577480546f8af7d9d64c9d3196e73cb0c00e793697eef4ad075c88c3d274702a5387c15945bc749d844 PineTab.conf
|
2020-11-09 11:09:18 +00:00
|
|
|
27f0b40a234e51462eabe89946b3f552f47e2ba3f52601b98ba46f8de8ada736284e44ec97fc8bcbee307ddf36d1ff66c425c7c693e4fe0b76e1b3f00098e9a9 deviceinfo
|
2020-11-06 15:16:37 +00:00
|
|
|
0e3f69170072f150f449cd9ccd9897728558a98acf2d5b85484ae8104b97f84e77760d7a30eeeccaf37d12cf870b3107ee34cefe55bdb033f3c7ac87d2093d24 uboot-script.cmd
|
2020-02-14 17:12:28 +00:00
|
|
|
f4b5509fd6a8b23f3667f5e7262b3a19c607a37cb9eaf7d0e93eb826d45c26ec12df4810879bacb8e4042bb83cc80b2b436224c8d47b6d67361369a724bbf7ee sysrq.conf
|
2019-08-08 13:47:54 +00:00
|
|
|
9e71c61bfa72b60e749c4dc04f17eb59d25de822765e81e65c937d6be5236d3951a652b69a1ab973abe6add9f34705be5dbaa98bbfa25daf7504dd50b28524c2 sway.conf
|
2019-08-21 09:05:35 +00:00
|
|
|
8d1ef04911f1cfa7eda8185f4f4d807af23105a7c8f23d8c18f02afeccd8ab124de70c2e2760c154a3128fe3793447039fb0abf37aa496f597d27051e275033e 99-pinetab-keyboard.hwdb
|
2019-09-30 17:19:28 +00:00
|
|
|
6374ef977eab14b71fa88057ebd52ca03035e387e5f41504598a990f24b2e92bccd2db476c545dc541000e08fccdecb6f1cd63e25b5835df706269e0384dacc7 weston.ini
|
|
|
|
38827d9636c48b133eb333764a6799a6e93454e01ecb0cfde1ecad3ee149606ba59eb1a5e6c8366e3b3891e54bd664a0a5acdd89d38ac3a3551260e9b9a6d3fc rootston.ini"
|