From 0cad27f9aa1b84d44e651e9449688069cbb7416a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferass=20El=C2=A0Hafidi?= Date: Tue, 15 Aug 2023 13:14:21 +0200 Subject: [PATCH] device-librecomputer-lafrite: new aport (MR 4324) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferass El Hafidi --- .../device-librecomputer-lafrite/APKBUILD | 41 +++++++++++++++++++ .../device-librecomputer-lafrite/deviceinfo | 29 +++++++++++++ .../modules-initfs | 3 ++ 3 files changed, 73 insertions(+) create mode 100644 device/testing/device-librecomputer-lafrite/APKBUILD create mode 100644 device/testing/device-librecomputer-lafrite/deviceinfo create mode 100644 device/testing/device-librecomputer-lafrite/modules-initfs diff --git a/device/testing/device-librecomputer-lafrite/APKBUILD b/device/testing/device-librecomputer-lafrite/APKBUILD new file mode 100644 index 000000000..11d38f3d8 --- /dev/null +++ b/device/testing/device-librecomputer-lafrite/APKBUILD @@ -0,0 +1,41 @@ +# Reference: +# Maintainer: Ferass El Hafidi +pkgname=device-librecomputer-lafrite +pkgdesc="Libre Computer AML-S805X-AC-V1.0" +pkgver=0.1 +pkgrel=0 +url="https://postmarketos.org" +license="MIT" +arch="aarch64" +options="!check !archcheck" +depends=" + linux-postmarketos-amlogic + postmarketos-base + soc-amlogic-s905 + u-boot-librecomputer-lafrite +" +makedepends="devicepkg-dev" +source=" + deviceinfo + modules-initfs +" +subpackages="$pkgname-nonfree-firmware:nonfree_firmware" + +build() { + devicepkg_build $startdir $pkgname +} + +package() { + devicepkg_package $startdir $pkgname +} + +nonfree_firmware() { + pkgdesc="vdec firmware" + depends="linux-firmware-amlogic" + mkdir "$subpkgdir" +} + +sha512sums=" +6861c2fa573d871d1c75cb17126325fc6c1f3b8cfc387b062b5d37531e5aadd96ec7176eedc34c89ff7a8f9559544ac71deb58f3864e7bfdd7d84ba443988124 deviceinfo +52948c2884a6f6384e12b7a598f70878526d0d3293c214425170145231144ec7de805c038641741a4a5d75b50e554f6a3fa3769784a674217ed032f9b6a233c8 modules-initfs +" diff --git a/device/testing/device-librecomputer-lafrite/deviceinfo b/device/testing/device-librecomputer-lafrite/deviceinfo new file mode 100644 index 000000000..31ae6eb1f --- /dev/null +++ b/device/testing/device-librecomputer-lafrite/deviceinfo @@ -0,0 +1,29 @@ +# Maintainer: Ferass El Hafidi +# Reference: +# Please use double quotes only. You can source this file in shell +# scripts. + +deviceinfo_format_version="0" +deviceinfo_name="Libre Computer AML-S805X-AC-V1.0" +deviceinfo_manufacturer="Libre Computer" +deviceinfo_codename="librecomputer-lafrite" +deviceinfo_year="2019" +deviceinfo_dtb="amlogic/meson-gxl-s805x-libretech-ac" +deviceinfo_arch="aarch64" + +# Device related +deviceinfo_chassis="embedded" +deviceinfo_keyboard="false" +deviceinfo_external_storage="true" +deviceinfo_gpu_accelerated="true" +deviceinfo_screen_width="800" +deviceinfo_screen_height="600" + +# Bootloader related +deviceinfo_flash_method="none" +deviceinfo_boot_filesystem="fat32" +deviceinfo_generate_extlinux_config="true" +deviceinfo_sd_embed_firmware_step_size="512" +deviceinfo_sd_embed_firmware="u-boot/librecomputer-lafrite/u-boot.bin.sd-stripped.bin:1" +deviceinfo_boot_part_start="4096" +deviceinfo_kernel_cmdline="console=null" diff --git a/device/testing/device-librecomputer-lafrite/modules-initfs b/device/testing/device-librecomputer-lafrite/modules-initfs new file mode 100644 index 000000000..da28a74ff --- /dev/null +++ b/device/testing/device-librecomputer-lafrite/modules-initfs @@ -0,0 +1,3 @@ +meson_drm +meson_dw_hdmi +display_connector