From 5c9d8a58400aefdaaf88ec37f2e0504fa7abafcf Mon Sep 17 00:00:00 2001 From: Newbyte Date: Sat, 16 Jul 2022 10:31:13 -0400 Subject: [PATCH] samsung-kyle: new device (MR 3289) --- device/testing/device-samsung-kyle/APKBUILD | 52 +++++++++++++++++++ device/testing/device-samsung-kyle/deviceinfo | 33 ++++++++++++ device/testing/device-samsung-kyle/kwin.sh | 1 + device/testing/device-samsung-kyle/phoc.ini | 2 + 4 files changed, 88 insertions(+) create mode 100644 device/testing/device-samsung-kyle/APKBUILD create mode 100644 device/testing/device-samsung-kyle/deviceinfo create mode 100644 device/testing/device-samsung-kyle/kwin.sh create mode 100644 device/testing/device-samsung-kyle/phoc.ini diff --git a/device/testing/device-samsung-kyle/APKBUILD b/device/testing/device-samsung-kyle/APKBUILD new file mode 100644 index 000000000..0618601a8 --- /dev/null +++ b/device/testing/device-samsung-kyle/APKBUILD @@ -0,0 +1,52 @@ +# Reference: +pkgname=device-samsung-kyle +pkgdesc="Samsung Galaxy Amp (SGH-I407)" +pkgver=1 +pkgrel=0 +url="https://postmarketos.org" +license="MIT" +arch="armv7" +options="!check !archcheck" +depends="postmarketos-base mkbootimg linux-postmarketos-stericsson mesa-dri-gallium" +makedepends="devicepkg-dev" +subpackages=" + $pkgname-nonfree-firmware:nonfree_firmware + $pkgname-kwin + $pkgname-phosh +" +source=" + deviceinfo + kwin.sh + phoc.ini +" + +build() { + devicepkg_build $startdir $pkgname +} + +package() { + devicepkg_package $startdir $pkgname +} + +nonfree_firmware() { + pkgdesc="WiFi/BT firmware" + depends="firmware-samsung-u8500" + mkdir "$subpkgdir" +} + +kwin() { + install_if="$pkgname kwin" + install -Dm644 "$srcdir"/kwin.sh "$subpkgdir"/etc/profile.d/kwin.sh +} + +phosh() { + install_if="$pkgname postmarketos-ui-phosh" + install -Dm644 "$srcdir"/phoc.ini \ + "$subpkgdir"/etc/phosh/phoc.ini +} + +sha512sums=" +6554f54efde2d1d5ec08ed712da78c7af02c0eecf83b306a2f53ca6a6fba28d6f3de1554d527d29db363130a6bd20672f614f81cb10da1fdd71234ef1e71b46d deviceinfo +685ec71484a932c59f83f1039d4d18a010a5849342e96d9e15ae8ce64374aac15073f9c51d7d9f270c60e70d2ea15c685b8f528cdc40f991b093b9227cba6a48 kwin.sh +95576332f1ad579d30359df9a3efcc3f478c56688509b5c470a70e8ae41466dbb397fb6db7578b5c54e13795ab8cf869b5c63ba775951817a8bb3d4c682bdfd5 phoc.ini +" diff --git a/device/testing/device-samsung-kyle/deviceinfo b/device/testing/device-samsung-kyle/deviceinfo new file mode 100644 index 000000000..b11cbc88a --- /dev/null +++ b/device/testing/device-samsung-kyle/deviceinfo @@ -0,0 +1,33 @@ +# Reference: +# Please use double quotes only. You can source this file in shell scripts. + +deviceinfo_format_version="0" +deviceinfo_name="Samsung Galaxy Amp (SGH-I407)" +deviceinfo_manufacturer="Samsung" +deviceinfo_codename="samsung-kyle" +deviceinfo_year="2013" +deviceinfo_dtb="ste-ux500-samsung-kyle" +deviceinfo_arch="armv7" + +# Device related +deviceinfo_gpu_accelerated="true" +deviceinfo_chassis="handset" +deviceinfo_keyboard="false" +deviceinfo_external_storage="true" +deviceinfo_screen_width="480" +deviceinfo_screen_height="800" +deviceinfo_getty="ttyAMA2;115200" +deviceinfo_mesa_driver="mcde" +deviceinfo_kernel_cmdline="console=ttyAMA2,115200 PMOS_NO_OUTPUT_REDIRECT" + +# Bootloader related +deviceinfo_flash_method="fastboot" +deviceinfo_generate_bootimg="true" +deviceinfo_bootimg_dtb_second="true" +deviceinfo_flash_offset_base="0x00000000" +deviceinfo_flash_offset_kernel="0x00008000" +deviceinfo_flash_offset_ramdisk="0x01000000" +deviceinfo_flash_offset_second="0x00f00000" +deviceinfo_flash_offset_tags="0x00000100" +deviceinfo_flash_pagesize="2048" +deviceinfo_flash_sparse="true" diff --git a/device/testing/device-samsung-kyle/kwin.sh b/device/testing/device-samsung-kyle/kwin.sh new file mode 100644 index 000000000..64673d012 --- /dev/null +++ b/device/testing/device-samsung-kyle/kwin.sh @@ -0,0 +1 @@ +export KWIN_DRM_DEVICE_NODE=/dev/dri/card1 diff --git a/device/testing/device-samsung-kyle/phoc.ini b/device/testing/device-samsung-kyle/phoc.ini new file mode 100644 index 000000000..211ad3011 --- /dev/null +++ b/device/testing/device-samsung-kyle/phoc.ini @@ -0,0 +1,2 @@ +[output:DSI-1] +scale = 1.2