Verified Commit 43e04d8e authored by ungeskriptet's avatar ungeskriptet Committed by Alexey Min
Browse files

amazon-mantis: new device (MR 2476)

[ci:skip-build] Already built on CI in MR
parent 34623c4a
Pipeline #363128017 passed with stages
in 1 minute and 49 seconds
# 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
"
# 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"
# 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
"
This diff is collapsed.
../../.shared-patches/linux/gcc8-fix-put-user.patch
\ No newline at end of file
../../.shared-patches/linux/linux4.2-gcc10-extern_YYLOC_global_declaration.patch
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment