amazon-ford: new device (MR 3286)

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Ben Westover 2022-07-15 17:20:00 -04:00 committed by Oliver Smith
parent ac6030a6e7
commit 30e95a0f20
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
7 changed files with 3496 additions and 0 deletions

View file

@ -0,0 +1,2 @@
ENV{ID_INPUT}="1", ENV{ID_INPUT_TOUCHSCREEN}="1", \
ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"

View file

@ -0,0 +1,35 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-amazon-ford
pkgdesc="Amazon Fire 7 (2015)"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
linux-amazon-ford
mesa-dri-gallium
mkbootimg
postmarketos-base
msm-fb-refresher
"
makedepends="devicepkg-dev"
source="
deviceinfo
90-android-touch-dev.rules
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/90-android-touch-dev.rules "$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
}
sha512sums="
7c716707290d3589ae9d01b2e8c4e25fbce94499e2341601ee72520c17fa84e4ab21ce024647a30f6eebb55a6b0fea564a050a1d68287b5388779b9e28c28ef1 deviceinfo
f3d0b7d44f549100b3402fb287e80654279ae962a6b7721f3dc676324bdcf5c104391f9e4f3c5eac5733eff0ad467aa959a5f66553e7668c08124a1609ed3145 90-android-touch-dev.rules
"

View file

@ -0,0 +1,31 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Amazon Fire 7 (2015)"
deviceinfo_manufacturer="Amazon"
deviceinfo_codename="amazon-ford"
deviceinfo_year="2015"
deviceinfo_arch="armv7"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="600"
deviceinfo_screen_height="1024"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="androidboot.selinux=permissive androidboot.hardware=mt8127"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_pagesize="2048"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x04000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100"

View file

@ -0,0 +1,60 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm/configs/ford_defconfig
pkgname=linux-amazon-ford
pkgver=3.10.54
pkgrel=0
pkgdesc="Amazon Fire 7 (2015) kernel fork"
arch="armv7"
_carch="arm"
_flavor="amazon-ford"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
bash
bc
bison
devicepkg-dev
flex
openssl-dev
perl
linux-headers
xz
"
# Source
_repository="kernel_amazon_mt8127-common"
_commit="e53c86b915bed7e5455949277c31b700177df26b"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/cm14-mt8127/$_repository/archive/$_commit.tar.gz
$_config
gcc8-fix-put-user.patch
gcc10-extern_YYLOC_global_declaration.patch
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" \
"$_flavor" "$_outdir"
}
sha512sums="
aa1f8d4fb9152ca5d35fa14305101b1c8fec14f1a76febc03e84c235e2c8ded5f6ba728ec7359b1658675e6267d2d5a8622bea966a6d76f98baed491e5c20785 linux-amazon-ford-e53c86b915bed7e5455949277c31b700177df26b.tar.gz
833592be7f6fd808bc2336b5c4a1eb0ee0a5bdb4a9b400fe1c1140e2439bebda2e1ee5cef61fe6375da94120600d4d666b9f990011fc4c63d82ab6f368fbd8a3 config-amazon-ford.armv7
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
../../.shared-patches/linux/gcc10-extern_YYLOC_global_declaration.patch

View file

@ -0,0 +1 @@
../../.shared-patches/linux/gcc8-fix-put-user.patch