samsung-on7xelte: new mainline port (MR 4980)

This port is based on the linux-postmarketos-exynos7870 kernel.

[ci:skip-build]: already built successfully in CI
This commit is contained in:
methanal 2024-03-30 21:40:59 +00:00 committed by Robert Eckelmann
parent 8c1b379e53
commit 3b164500be
No known key found for this signature in database
GPG key ID: 30C0D50BEF63BF54
3 changed files with 105 additions and 0 deletions

View file

@ -0,0 +1,37 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-on7xelte
pkgdesc="Samsung Galaxy J7 Prime"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
dtbtool-exynos
linux-postmarketos-exynos7870
mesa-dri-simpledrm
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Proprietary firmware blobs for $pkgdesc"
depends="firmware-samsung-on7xelte"
mkdir "$subpkgdir"
}
sha512sums="
78d6cd235ba284259ff26358b0b45a9f19d6d5e55fa3b46a2a1edd535dcfa717f0ea297a5dcd86bea03ddf001bce54b0c4c679108787d30573f7e00e66e503eb deviceinfo
"

View file

@ -0,0 +1,39 @@
# 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 J7 Prime"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-on7xelte"
deviceinfo_year="2016"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="1920"
deviceinfo_gpu_accelerated="true"
# Bootloader related
deviceinfo_flash_method="heimdall-bootimg"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="true"
deviceinfo_bootimg_qcdt_type="exynos"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_pagesize="2048"
deviceinfo_flash_sparse="true"
deviceinfo_flash_sparse_samsung_format="1"
deviceinfo_flash_offset_base="0x10000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100"
deviceinfo_flash_heimdall_partition_kernel="BOOT"
deviceinfo_flash_heimdall_partition_system="USERDATA"
# Kernel related
deviceinfo_dtb="exynos/exynos7870-on7xelte"

View file

@ -0,0 +1,29 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=firmware-samsung-on7xelte
pkgver=2
pkgrel=0
pkgdesc="Proprietary firmware blobs for Samsung Galaxy J7 Prime"
url="https://gitlab.com/exynos7870-mainline/firmware"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck !spdx !tracedeps pmb:cross-native"
_device="on7xelte"
_commit="b89cec942fe297ff8623dd87e92f1a2380ed68f8"
source="$url/-/archive/$_commit/firmware-$_commit.tar.gz"
package() {
# Bluetooth firmware (Broadcomm BCM43430A1)
install -Dm644 "$srcdir/firmware-$_commit/$_device/bluetooth_bcm.hcd" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"BCM43430A1.hcd"
# Wi-Fi SDIO firmware (Broadcom BCM43430A1)
install -Dm644 "$srcdir/firmware-$_commit/$_device/wlansdio_bcm.bin" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"brcmfmac43430-sdio.bin"
install -Dm644 "$srcdir/firmware-$_commit/$_device/wlansdio_bcm.txt" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"brcmfmac43430-sdio.txt"
}
sha512sums="
ea9b18d5f1a7020fe59878191f30dcdeda17e9853066b94247443c55fc15801fc818a1bc0d909bebe007940c70e3d1bd4b7fb0b5725a1d424aedaabbccd44f36 firmware-b89cec942fe297ff8623dd87e92f1a2380ed68f8.tar.gz
"