Skip to content
Snippets Groups Projects
Verified Commit 81b67d87 authored by methanal's avatar methanal Committed by Robert Eckelmann
Browse files

samsung-j6lte: new mainline port (MR 5785)

This port is based on the linux-postmarketos-exynos7870 kernel.
parent 8c13605b
No related branches found
No related tags found
No related merge requests found
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-j6lte
pkgdesc="Samsung Galaxy J6 (2018)"
pkgver=2
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-j6lte"
mkdir "$subpkgdir"
}
sha512sums="
fa363c817bb6655f53ac7d3a8c349cc96c8a11d80538d1c0d38101eb67ac4452761c3a8283444c0884095495c6f127c70e8be3e004b2898e2353d41570f5e375 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="Samsung Galaxy J6 (2018)"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-j6lte"
deviceinfo_year="2018"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1480"
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_sparse="true"
deviceinfo_flash_pagesize="2048"
deviceinfo_flash_kernel_on_update="true"
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-j6lte"
pkgname=firmware-samsung-j6lte
pkgver=2
pkgrel=0
pkgdesc="Proprietary firmware blobs for Samsung Galaxy J6 (2018)"
url="https://gitlab.com/exynos7870-mainline/firmware"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck !spdx !tracedeps pmb:cross-native"
_device="j6lte"
_commit="c69a2f7405aeadf3eac6a1e9aa870608707022a2"
source="$url/-/archive/$_commit/firmware-$_commit.tar.gz"
package() {
# Bluetooth firmware (Broadcom BCM43430B0)
install -Dm644 "$srcdir/firmware-$_commit/$_device/bluetooth_bcm.hcd" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"BCM43430B0.hcd"
# Wi-Fi SDIO firmware (Broadcom BCM43430B0)
install -Dm644 "$srcdir/firmware-$_commit/$_device/wlansdio_bcm.bin" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"brcmfmac43430b0-sdio.bin"
install -Dm644 "$srcdir/firmware-$_commit/$_device/wlansdio_bcm.clm_blob" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"brcmfmac43430b0-sdio.clm_blob"
install -Dm644 "$srcdir/firmware-$_commit/$_device/wlansdio_bcm.txt" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"brcmfmac43430b0-sdio.txt"
}
sha512sums="
ae7c5c531ef0f15b690089a884f45030eaab8056297db0ca07eb93c06d537f1a3e43fd2a602c6b044e61d4f9ebd071a2dc500a7766fa0775633385703be1ad66 firmware-c69a2f7405aeadf3eac6a1e9aa870608707022a2.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment