testing/samsung-gts28velte: new device (MR 3384)
based on samsung-gts210velte [ci:skip-build] Already built successfuly on CI in MR
This commit is contained in:
parent
6d77ccc0e2
commit
0921691cbe
6 changed files with 4901 additions and 0 deletions
24
device/testing/device-samsung-gts28velte/APKBUILD
Normal file
24
device/testing/device-samsung-gts28velte/APKBUILD
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# Reference: <https://postmarketos.org/devicepkg>
|
||||||
|
pkgname=device-samsung-gts28velte
|
||||||
|
pkgdesc="Samsung Galaxy Tab S2 8.0 LTE"
|
||||||
|
pkgver=0.1
|
||||||
|
pkgrel=0
|
||||||
|
url="https://postmarketos.org"
|
||||||
|
license="MIT"
|
||||||
|
arch="aarch64"
|
||||||
|
options="!check !archcheck"
|
||||||
|
depends="postmarketos-base linux-samsung-gts28velte mkbootimg mesa-dri-gallium mdss-fb-init-hack"
|
||||||
|
makedepends="devicepkg-dev"
|
||||||
|
source="deviceinfo"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
devicepkg_build $startdir $pkgname
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
devicepkg_package $startdir $pkgname
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
afb2f1dab843e684199849a73e99fee51482c265e1e1c7978d45f39daa1e3af094b72b685513f00debc1147da07eb1c39c84b93067d26383f49da17938cdc56d deviceinfo
|
||||||
|
"
|
35
device/testing/device-samsung-gts28velte/deviceinfo
Normal file
35
device/testing/device-samsung-gts28velte/deviceinfo
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# Reference: <https://postmarketos.org/deviceinfo>
|
||||||
|
# Please use double quotes only. You can source this file in shell
|
||||||
|
# scripts.
|
||||||
|
|
||||||
|
deviceinfo_format_version="0"
|
||||||
|
deviceinfo_name="Samsung Galaxy Tab S2 8.0 LTE (SM-T713)"
|
||||||
|
deviceinfo_manufacturer="Samsung"
|
||||||
|
deviceinfo_codename="samsung-gts28velte"
|
||||||
|
deviceinfo_year="2016"
|
||||||
|
deviceinfo_arch="aarch64"
|
||||||
|
|
||||||
|
# Device related
|
||||||
|
deviceinfo_chassis="tablet"
|
||||||
|
deviceinfo_keyboard="false"
|
||||||
|
deviceinfo_external_storage="true"
|
||||||
|
deviceinfo_screen_width="2048"
|
||||||
|
deviceinfo_screen_height="1536"
|
||||||
|
deviceinfo_dev_touchscreen="/dev/input/event2"
|
||||||
|
deviceinfo_dev_touchscreen_calibration="0 1 1.342 -1 0 1536"
|
||||||
|
deviceinfo_gpu_accelerated="true"
|
||||||
|
|
||||||
|
# Bootloader related
|
||||||
|
deviceinfo_flash_method="heimdall-bootimg"
|
||||||
|
deviceinfo_generate_bootimg="true"
|
||||||
|
deviceinfo_bootimg_qcdt="true"
|
||||||
|
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="0x02000000"
|
||||||
|
deviceinfo_flash_offset_second="0x00f00000"
|
||||||
|
deviceinfo_flash_offset_tags="0x01e00000"
|
||||||
|
deviceinfo_flash_heimdall_partition_kernel="BOOT"
|
||||||
|
deviceinfo_flash_heimdall_partition_system="SYSTEM"
|
13
device/testing/linux-samsung-gts28velte/01_fix_msm_dba.patch
Normal file
13
device/testing/linux-samsung-gts28velte/01_fix_msm_dba.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/drivers/video/msm/msm_dba/msm_dba.c b/drivers/video/msm/msm_dba/msm_dba.c
|
||||||
|
index cc6512a..eb073a7 100644
|
||||||
|
--- a/drivers/video/msm/msm_dba/msm_dba.c
|
||||||
|
+++ b/drivers/video/msm/msm_dba/msm_dba.c
|
||||||
|
@@ -22,7 +22,7 @@
|
||||||
|
#include <linux/err.h>
|
||||||
|
|
||||||
|
#include <video/msm_dba.h>
|
||||||
|
-#include <msm_dba_internal.h>
|
||||||
|
+#include "msm_dba_internal.h"
|
||||||
|
|
||||||
|
static DEFINE_MUTEX(register_mutex);
|
||||||
|
|
68
device/testing/linux-samsung-gts28velte/APKBUILD
Normal file
68
device/testing/linux-samsung-gts28velte/APKBUILD
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
# Reference: <https://postmarketos.org/vendorkernel>
|
||||||
|
# Kernel config based on: (kernel/samsung/msm8976/)arch/arm64/configs/gts210velte_defconfig
|
||||||
|
|
||||||
|
pkgname=linux-samsung-gts28velte
|
||||||
|
pkgver=3.10.102
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Samsung Galaxy Tab S2 8.0 LTE (SM-T713) kernel fork"
|
||||||
|
arch="aarch64"
|
||||||
|
_carch="arm64"
|
||||||
|
_flavor="samsung-gts28velte"
|
||||||
|
url="https://kernel.org"
|
||||||
|
license="GPL-2.0-only"
|
||||||
|
options="!strip !check !tracedeps pmb:cross-native"
|
||||||
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev dtbtool gcc6 devicepkg-dev"
|
||||||
|
|
||||||
|
# Compiler: this kernel was only tested with GCC6. Feel free to make a merge
|
||||||
|
# request if you find out that it is booting working with newer GCCs as
|
||||||
|
# well. See <https://postmarketos.org/vendorkernel> for instructions.
|
||||||
|
if [ "${CC:0:5}" != "gcc6-" ]; then
|
||||||
|
CC="gcc6-$CC"
|
||||||
|
HOSTCC="gcc6-gcc"
|
||||||
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Source
|
||||||
|
# gts210velte uses msm8976 kernel
|
||||||
|
_repository="android_kernel_samsung_msm8976"
|
||||||
|
_commit="f6ab8eed124e3adc1c90d9f3106abd21c0bd0397"
|
||||||
|
_config="config-$_flavor.$arch"
|
||||||
|
source="
|
||||||
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
||||||
|
$_config
|
||||||
|
01_fix_msm_dba.patch
|
||||||
|
gcc10-extern_YYLOC_global_declaration.patch
|
||||||
|
"
|
||||||
|
builddir="$srcdir/$_repository-$_commit"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
|
||||||
|
. downstreamkernel_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
unset LDFLAGS
|
||||||
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||||
|
C_INCLUDE_PATH="./arch/arm/mach-msm:./sound/soc/msm/qdsp6v2" \
|
||||||
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||||
|
# As path is symlinked from arm64 to arm, dtb files end up below arm, not arm64
|
||||||
|
echo dtbTool -s 2048 -p "scripts/dtc/" -o "arch/arm64/boot/dt.img" "arch/arm/boot/dts/"
|
||||||
|
# Generate master DTB (deviceinfo_bootimg_qcdt).
|
||||||
|
dtbTool -s 2048 -p "scripts/dtc/" -o "arch/arm64/boot/dt.img" "arch/arm/boot/dts/"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
||||||
|
|
||||||
|
# Master DTB (deviceinfo_bootimg_qcdt)
|
||||||
|
install -Dm644 "$builddir/arch/arm64/boot/dt.img" \
|
||||||
|
"$pkgdir/boot/dt.img"
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
4fd6cbb31e389bdc50defb586d4a2d86d8bb51556b45b8f974c5ecb11de4900d36d0af65090f61664e32a48a7cef3f89f57157b460f4d6d5d05fa71e1400a099 linux-samsung-gts28velte-f6ab8eed124e3adc1c90d9f3106abd21c0bd0397.tar.gz
|
||||||
|
e28c2f21f6459b033d61a8eb1c931d6d6611f4321b59c13868f32537447183717ebc990c91125b5af93241db81d9bcb2d4fa8ba99e355fa97585ad1e8f7cfae7 config-samsung-gts28velte.aarch64
|
||||||
|
7e765cb696fa8c3dfbc305b05cbf1fad85fb9572613d5391e945341dae5974a745f4906c795dc841e5562b19ab77d5257f9741e514af2c2573aa4bb8b262ce51 01_fix_msm_dba.patch
|
||||||
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
||||||
|
"
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1 @@
|
||||||
|
../../.shared-patches/linux/gcc10-extern_YYLOC_global_declaration.patch
|
Loading…
Reference in a new issue