94d5efbc96
This port uses the Android bootloader (kernelflinger) instead of Gummiboot or rEFInd,... just in case if people still want to easily reflash Android later without going through some DNX Fastboot, Intel Flash Tool blah blah. Chuwi violates GPLv2 by not releasing the kernel sources of Android to the public. This port uses Linux mainline (5.1-rc7), and almost everything works properly, so thankfully we don't have to use the 3.10 kernel which is outdated and EOL. [ci:skip-build]: kernel takes more than an hour to compile on CI. ollieparanoid made sure that everything builds.
51 lines
1.6 KiB
Text
51 lines
1.6 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname="device-chuwi-hi10plus"
|
|
pkgdesc="CHUWI Hi10 Plus"
|
|
pkgver=0.1
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="x86_64"
|
|
options="!check !archcheck"
|
|
depends="postmarketos-base linux-chuwi-hi10plus mkbootimg mesa-dri-intel libva-intel-driver libsparse wireless-regdb pulseaudio pulseaudio-alsa alsa-plugins-pulse"
|
|
makedepends="devicepkg-dev"
|
|
subpackages="
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
$pkgname-x11
|
|
$pkgname-weston
|
|
"
|
|
source="deviceinfo
|
|
initfs-hook.sh
|
|
weston.ini"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
install -D -m644 "$srcdir"/initfs-hook.sh \
|
|
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}.sh
|
|
}
|
|
|
|
x11() {
|
|
install_if="$pkgname xorg-server"
|
|
depends="xf86-video-intel gstreamer-vaapi"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
weston() {
|
|
install_if="$pkgname weston"
|
|
install -Dm644 "$srcdir"/weston.ini \
|
|
"$subpkgdir"/etc/xdg/weston/weston.ini
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="Touch, Wi-Fi, Bluetooth, Sound Firmware"
|
|
depends="firmware-chuwi-hi10plus linux-firmware-intel linux-firmware-rtlwifi linux-firmware-rtl_bt"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="519a4add79bbf8ded51fb45affac03c59bd5f5e34b4a7e0f77baa5d007cf3a72349b494105c35ba50a52632bf20dd01c8db9bcf625a47196cf4d2b18342c5f51 deviceinfo
|
|
8191c479588ccd0c44d23a06cee975635ad9353a7469489c3436ca22051410ff5153dccfb38284dd3976fd6bb8ea6979d32224b652ce68b51f4448c2aa8fc9dd initfs-hook.sh
|
|
15497cf556750d2b91ef81dab7c4071dc5d1d62bab6f98db0b240e74d8b26ebcda5af2f80fe998518c3b53e72e0daa762d063c87dff46d73d70a8d879cb9aaa8 weston.ini"
|