amazon-mantis: new device (MR 2476)
[ci:skip-build] Already built on CI in MR
This commit is contained in:
parent
34623c4a0a
commit
43e04d8e87
6 changed files with 4153 additions and 0 deletions
29
device/testing/device-amazon-mantis/APKBUILD
Normal file
29
device/testing/device-amazon-mantis/APKBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-amazon-mantis
|
||||
pkgdesc="Amazon Fire TV Stick 4K"
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-amazon-mantis
|
||||
mesa-dri-gallium
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
4c9f30789d112cc2136d6719e9849118c183f89ddeb62513458f4737dcda04f9f48be6ba488aa166b877409e8fb563faff776e322456ed8d921c932778926c5b deviceinfo
|
||||
"
|
33
device/testing/device-amazon-mantis/deviceinfo
Normal file
33
device/testing/device-amazon-mantis/deviceinfo
Normal file
|
@ -0,0 +1,33 @@
|
|||
# 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 TV Stick 4K"
|
||||
deviceinfo_manufacturer="Amazon"
|
||||
deviceinfo_codename="amazon-mantis"
|
||||
deviceinfo_year="2018"
|
||||
deviceinfo_dtb=""
|
||||
deviceinfo_modules_initfs=""
|
||||
deviceinfo_arch="armv7"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="embedded"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="false"
|
||||
deviceinfo_screen_width="1920"
|
||||
deviceinfo_screen_height="1080"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_kernel_cmdline=""
|
||||
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="0x40000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x04000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x0e000000"
|
57
device/testing/linux-amazon-mantis/APKBUILD
Normal file
57
device/testing/linux-amazon-mantis/APKBUILD
Normal file
|
@ -0,0 +1,57 @@
|
|||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm/configs/mantis_defconfig
|
||||
|
||||
pkgname=linux-amazon-mantis
|
||||
pkgver=4.4.120
|
||||
pkgrel=0
|
||||
pkgdesc="Amazon Fire TV Stick 4K kernel fork"
|
||||
arch="armv7"
|
||||
_carch="arm"
|
||||
_flavor="amazon-mantis"
|
||||
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
|
||||
"
|
||||
|
||||
# Source
|
||||
_repository="android_kernel_amazon_mt8695"
|
||||
_commit="c7417cdf58515404e688f5d440fc1acd2a4e24a6"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/LOSMantis/$_repository/archive/$_commit.tar.gz
|
||||
$_config
|
||||
gcc8-fix-put-user.patch
|
||||
linux4.2-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="
|
||||
6c99abda10ed7033247b1ac74f0c8b09726d53cd3f12d5a73eb455d5e50557396421faecbe37ee56f5221dc72a6c9f293d4741bbd8f46242c05ec1adc89cc142 linux-amazon-mantis-c7417cdf58515404e688f5d440fc1acd2a4e24a6.tar.gz
|
||||
e063e702e7034570b663a32fc2d105fb190d7f5d182110578f643c424f48bb88e88119a4b1da09db8588c900a8e1cab5cf4c81c267817e48ee4e96c8ddad0dda config-amazon-mantis.armv7
|
||||
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
|
||||
eaf2e61fcb508cdd239b8fed209d2a09ecac77287f6b46d003918fdf1c6fa2ee63f7390f3ff7c49029b8ed6cbcdd81c7e9a4b1ece9f5060b6fc84e322bd47f41 linux4.2-gcc10-extern_YYLOC_global_declaration.patch
|
||||
"
|
4032
device/testing/linux-amazon-mantis/config-amazon-mantis.armv7
Normal file
4032
device/testing/linux-amazon-mantis/config-amazon-mantis.armv7
Normal file
File diff suppressed because it is too large
Load diff
1
device/testing/linux-amazon-mantis/gcc8-fix-put-user.patch
Symbolic link
1
device/testing/linux-amazon-mantis/gcc8-fix-put-user.patch
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../.shared-patches/linux/gcc8-fix-put-user.patch
|
|
@ -0,0 +1 @@
|
|||
../../.shared-patches/linux/linux4.2-gcc10-extern_YYLOC_global_declaration.patch
|
Loading…
Add table
Reference in a new issue