ff968a751e
* Packaged libsparse libsparse from the Android project provides multiple tools like img2simg and simg2img. These are used to split a large image for the system partition into separate smaller chunks with sparse headers This is required for several devices (at least bullhead, fp2 and titan) because it fixes the "Invalid sparse file format at header magi" error https://github.com/postmarketOS/pmbootstrap/issues/299 * Added new variable deviceinfo_flash_sparse (fixes #299) Right after the system image is generated, pmbootstrap checks this variable. In case it is true, run img2simg on it * motorola-titan: enable deviceinfo_flash_sparse * libsparse: use source from github: anestisb/android-simg2img It is not that easy to use the upstream archive because everytime you download it, the files have the current date as creation date and that makes the file have a different checksum every download https://github.com/postmarketOS/pmbootstrap/pull/303#issuecomment-319017197
33 lines
1.3 KiB
Text
33 lines
1.3 KiB
Text
pkgname=device-motorola-titan
|
|
pkgver=1
|
|
pkgrel=10
|
|
pkgdesc="Motorola Moto G 2014"
|
|
url="https://github.com/postmarketOS"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="linux-motorola-titan mkbootimg"
|
|
makedepends=""
|
|
install=""
|
|
subpackages=""
|
|
source="deviceinfo 90-android-touch-dev.rules initfs-hook.sh profile.sh"
|
|
options="!check"
|
|
|
|
build() {
|
|
return 0
|
|
}
|
|
|
|
package() {
|
|
install -D -m644 "$srcdir/deviceinfo" \
|
|
"$pkgdir/etc/deviceinfo"
|
|
install -D -m644 "$srcdir"/90-android-touch-dev.rules \
|
|
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
|
|
install -D -m644 "$srcdir"/initfs-hook.sh \
|
|
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}.sh
|
|
install -D -m644 "$srcdir"/profile.sh \
|
|
"$pkgdir"/etc/profile.d/00-$pkgname.sh
|
|
}
|
|
|
|
sha512sums="09abd5f4681d9479650cfa64fcbc58528827017757539c3faf142ca92e8537691f9fb88f5d84ece086af7f23be2ac03e196f49ae708a832f1331f40cc96bab29 deviceinfo
|
|
f37e6324abf0b0fc8a3d360d6d11bb0648090a438a55ca7f04a9d494719e687ce445ae107ace642edf293afb6ca82615bcb5d0ddb6c46c1a7f8ee3c213b7c5c4 90-android-touch-dev.rules
|
|
8590967fa10388a890fdfafdb1070b9ab22dc89e06a3a8834806c772191e3b67de7b914b0d68e5ddf581cee715cb90f3f24abcb8762c415ff328c6da23e55d52 initfs-hook.sh
|
|
2f7cdf558a6bff56fd343d29a1ca6c27e75715bedfad661700dfcfb01acd1bdfcfecdfccf619f1e56c1e6331be146f8882a14d3a2cd33830e9d00bb6118971a3 profile.sh"
|