amazon-douglas: new device (Amazon Fire HD 8) (MR 1304)
This commit is contained in:
parent
df5eec9de6
commit
552c5c93bc
4 changed files with 3906 additions and 0 deletions
22
device/testing/device-amazon-douglas/APKBUILD
Normal file
22
device/testing/device-amazon-douglas/APKBUILD
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-amazon-douglas
|
||||
pkgdesc="Amazon Fire HD 8 (2017)"
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base linux-amazon-douglas mkbootimg mesa-dri-gallium"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
sha512sums="9a399829c2ba8f613990e427b8e117ef40284520cfab339217bd2711fd6c49b9401233f8bbf67c0572eab7bd8c2a5818c7ccf7d082fbf90b85eb7daa60656df8 deviceinfo"
|
||||
31
device/testing/device-amazon-douglas/deviceinfo
Normal file
31
device/testing/device-amazon-douglas/deviceinfo
Normal 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 HD 8 (2017)"
|
||||
deviceinfo_manufacturer="Amazon"
|
||||
deviceinfo_codename="amazon-douglas"
|
||||
deviceinfo_year="2017"
|
||||
deviceinfo_dtb=""
|
||||
deviceinfo_modules_initfs=""
|
||||
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"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_bootimg_dtb_second="false"
|
||||
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"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
55
device/testing/linux-amazon-douglas/APKBUILD
Normal file
55
device/testing/linux-amazon-douglas/APKBUILD
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config is based on arch/arm64/configs/douglas_debug_defconfig
|
||||
#
|
||||
# However, this didn't seem to work initially as the generated config
|
||||
# file via pmbootstrap was somehow missing CONFIG_USB_G_ANDROID. I then
|
||||
# output of the kernel build script provided by Amazon, which printed
|
||||
# out the .config used for building the kernel.
|
||||
|
||||
pkgname=linux-amazon-douglas
|
||||
pkgver=3.18.19
|
||||
pkgrel=0
|
||||
pkgdesc="Amazon Fire HD 8 (2017) kernel fork"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
_flavor="amazon-douglas"
|
||||
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
|
||||
if [ "${CC:0:5}" != "gcc6-" ]; then
|
||||
CC="gcc6-$CC"
|
||||
HOSTCC="gcc6-gcc"
|
||||
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
||||
fi
|
||||
|
||||
# Source
|
||||
_repository="kernel_douglas"
|
||||
_commit="4ff2b5a4534e275748920ba4ad105af36495bf89"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/shuhaowu/$_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="eb3804fcbadb268429640a5171ea4788cf8974444a1aa1005801902dbce1c4d67d88cb43d0cee259dc082161a92b285de0a0d18d721220f6d2dff84a179a7dc5 linux-amazon-douglas-4ff2b5a4534e275748920ba4ad105af36495bf89.tar.gz
|
||||
49da89d9a12db904685da02d14e43f92af1d9375cda9644592a898089b45e246214b8eab9a8b23ddf742e23cceda4fd348d7088deb47c3bc0330affa7c48c148 config-amazon-douglas.aarch64"
|
||||
3798
device/testing/linux-amazon-douglas/config-amazon-douglas.aarch64
Normal file
3798
device/testing/linux-amazon-douglas/config-amazon-douglas.aarch64
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue