samsung-espresso3g: new port. (MR 2427)

[ci:skip-build] Already built on CI in MR
This commit is contained in:
MightyM17 2021-08-11 12:56:53 +05:30 committed by Dylan Van Assche
parent 4de4d6aa98
commit 169a653565
No known key found for this signature in database
GPG key ID: 8642571587897EA1
5 changed files with 7272 additions and 0 deletions

View file

@ -0,0 +1,33 @@
# Maintainer: Mighty17 <mightymb17@gmail.com>
# Co-Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-espresso3g
pkgdesc="Samsung Galaxy Tab 2 3g (7.0 inch)"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-espresso3g mkbootimg"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Wifi firmware"
depends="firmware-samsung-espresso3g"
mkdir "$subpkgdir"
}
sha512sums="
45266981e103b1335bd50a82fa45d09a7e16fae961ac4844f30b8448a26e0d76461472f6c8aa92972638126dbfcbc6a1ca8eb996729e1362fd909ffb7852f828 deviceinfo
"

View file

@ -0,0 +1,30 @@
# 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 2 3g (7.0 inch)"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-espresso3g"
deviceinfo_year="2012"
deviceinfo_dtb="omap4-samsung-espresso3g"
deviceinfo_append_dtb="true"
deviceinfo_arch="armv7"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1024"
deviceinfo_screen_height="600"
# Bootloader related
deviceinfo_flash_method="heimdall-bootimg"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_flash_offset_base="0x40000000"
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_heimdall_partition_system="FACTORYFS"

View file

@ -0,0 +1,30 @@
pkgname=firmware-samsung-espresso3g
pkgver=1
pkgrel=0
pkgdesc="Samsung Galaxy Tab 2 Firmware"
url="https://github.com/TheMuppets/proprietary_vendor_samsung"
arch="armv7"
license="proprietary"
options="!check !strip !archcheck !spdx"
# Source
_commit="89fe5020dbaf2920dece954ce86aa2edf3389852"
_url="https://github.com/TheMuppets/proprietary_vendor_samsung/raw/$_commit/espresso-common/proprietary/system/etc/wifi"
_files="
bcmdhd_sta.bin
nvram_net.txt
"
for _i in $_files; do
source="$source $_i::$_url/$_i";
done
package() {
install -Dm644 "$srcdir/nvram_net.txt" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"brcmfmac4330-sdio.samsung,espresso3g.txt"
install -Dm644 "$srcdir/bcmdhd_sta.bin" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"brcmfmac4330-sdio.bin"
}
sha512sums="
bd2729c2cbc3c52e1abc5c6e0f4ba32b3b77711bc73c76aece591f8de642da69f0edb8620e422e102e0eaced8c9d76870ac63dfc7113e318ad8aa2633a32b10f bcmdhd_sta.bin
24c0eab68996c9f80453cf01c8059ec6672175668a13ebd91abcd33bf56afd94c7564d0f6e6d2b87d3a44171ca3dce895ffd13b61d29ae583b76635998e4042f nvram_net.txt
"

View file

@ -0,0 +1,47 @@
pkgname=linux-samsung-espresso3g
pkgver=5.12_rc1
pkgrel=0
pkgdesc="Samsung Galaxy Tab 2 (7.0 inch) mainline kernel"
arch="armv7"
_carch="arm"
_flavor="samsung-espresso3g"
url="https://kernel.org"
license="GPL2"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="openssl-dev yaml-dev mpc1-dev mpfr-dev xz findutils bison flex perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev"
_commit="1c1df9a145ef1773ede24f6fc1c446026cb62066"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/MightyM17/linux_openpvrsgx/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/linux_openpvrsgx-$_commit"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$arch" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
install -Dm644 "$builddir/arch/$_carch/boot/"*zImage \
"$pkgdir/boot/vmlinuz-$_flavor"
install -D "$builddir"/include/config/kernel.release \
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
make -j1 modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
}
sha512sums="
d20744e8fd7916e432dde4008c46f92b8604c806dfbabe4344ab95073a070920206984eb07337f47f9a9bc9d0dd99179325cd408d22fd21ff233fb7b04371611 linux-samsung-espresso3g-1c1df9a145ef1773ede24f6fc1c446026cb62066.tar.gz
6884e44ccacfed2e19b9a17f5b9ba7e8bf0404fc1f679d35dea1f6db20c97db760337bdb56b619c04687a3adbc1b9d2f381373a94d8e371e5c787353d14ce8f4 config-samsung-espresso3g.armv7
"

File diff suppressed because it is too large Load diff