amazon-karnak: new device (MR 3375)

[ci:skip-build]: already built successfully in CI
This commit is contained in:
TAKIZAWA Fumiya 2022-08-17 02:41:14 +09:00 committed by Oliver Smith
parent 2a963f35f7
commit 86900a49b7
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
4 changed files with 3994 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-amazon-karnak
pkgdesc="Amazon Fire HD 8 (2018)"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-amazon-karnak
mesa-dri-gallium
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
d9c4201c928e7cfd6fa1c178b4d1159c889511a35d90486c103ffd2d5ac9d1666883fceab02babf4bf8dce34263a46b0f9f53f39b219d0c57c80751e2d86a329 deviceinfo
"

View file

@ -0,0 +1,32 @@
# 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 HD 8 (2018)"
deviceinfo_manufacturer="Amazon"
deviceinfo_codename="amazon-karnak"
deviceinfo_year="2018"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="800"
deviceinfo_screen_height="1280"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,64N2 androidboot.selinux=permissive loop.max_part=7 buildvariant=eng"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_pagesize="2048"
deviceinfo_header_version="0"
deviceinfo_flash_offset_base="0x40078000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x03408000"
deviceinfo_flash_offset_second="0x00e88000"
deviceinfo_flash_offset_tags="0x07f88000"

View file

@ -0,0 +1,62 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/lineageos_karnak_defconfig
pkgname=linux-amazon-karnak
pkgver=3.19.0
pkgrel=0
pkgdesc="Amazon Fire HD 8 (2018) kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="amazon-karnak"
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
gcc6
"
# Compiler: GCC 6 (doesn't boot when compiled with newer versions)
if [ "${CC:0:5}" != "gcc6-" ]; then
CC="gcc6-$CC"
HOSTCC="gcc6-gcc"
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
fi
# Source
_repository="android_kernel_amazon_karnak"
_commit="65a221f465b34d967ca0ec115569ca71dd136a96"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/mt8163/$_repository/archive/$_commit.tar.gz
$_config
"
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="
b207d358aba0fdf3cf6ad2c4af9807a60da0d2752583c4c559a708cd3612872752801a8a60c2c5ecb3a0388c98a4484625712958ff528f4329e92789c1a885f2 linux-amazon-karnak-65a221f465b34d967ca0ec115569ca71dd136a96.tar.gz
54fad6f1d52b1cb7874d77c0ff3893c498c9462c71626640fdec209e4b8481f30eade279ba371427e1c7829546326957f960dc48967fdbc3b47dfb791dcf0426 config-amazon-karnak.aarch64
"

File diff suppressed because it is too large Load diff