Verified Commit 6ecdcbf9 authored by ungeskriptet's avatar ungeskriptet 🔴 Committed by Oliver Smith
Browse files

samsung-santos10wifi: new device (Samsung Galaxy Tab 3 10.1 Wi-Fi) (MR 2022)

[ci:skip-build]: already built successfully in CI
parent 743c3eda
Pipeline #270276570 passed with stages
in 1 minute and 56 seconds
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-santos10wifi
pkgdesc="Samsung Galaxy Tab 3 10.1 Wi-Fi"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="x86"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-santos10wifi mkbootimg"
makedepends="devicepkg-dev"
subpackages="
$pkgname-x11
$pkgname-nonfree-firmware:nonfree_firmware
"
source="deviceinfo
xorg.conf"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
x11() {
install_if="$pkgname xorg-server"
depends="
xf86-input-libinput
xf86-video-fbdev"
install -Dm644 "$srcdir"/xorg.conf \
"$subpkgdir"/etc/X11/xorg.conf.d/10-santos10wifi.conf
}
nonfree_firmware() {
pkgdesc="Wi-Fi firmware"
depends="firmware-samsung-santos10wifi"
mkdir "$subpkgdir"
}
sha512sums="4810fff00aad46cc51d940b9f4f9d2b5a286880dc45c4603c207481f1f7c8a9c9216b5a5e8a3211c8307ae8f043b1ea7f1021470bea9740c548021881c8c3a1e deviceinfo
2511fa519813061531757996fbbbb9eecae1a136d2e13149fd7afe04d19982c7eaa5ced8df57860bb816186f206915fcbd4a9e34fdf92b2c6efe3320a223c328 xorg.conf"
# 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 3 10.1 Wi-Fi"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-santos10wifi"
deviceinfo_year="2013"
deviceinfo_arch="x86"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1280"
deviceinfo_screen_height="800"
# Bootloader related
deviceinfo_flash_method="heimdall-bootimg"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
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_pagesize="2048"
deviceinfo_flash_heimdall_partition_kernel="BOOT"
deviceinfo_flash_heimdall_partition_system="SYSTEM"
deviceinfo_flash_sparse="true"
Section "Device"
Identifier "Card0"
Driver "fbdev"
EndSection
pkgname=firmware-samsung-santos10wifi
pkgver=0.1
pkgrel=0
_commit="22fdeccf3db554b50ebba1877d6e71085511114f"
pkgdesc="Samsung Galaxy Tab 3 10.1 Wi-Fi Firmware"
url="https://github.com/santos10-dev/proprietary_vendor_samsung_santos10-common"
arch="x86"
license="proprietary"
source="$pkgname-$_commit.tar.gz::https://github.com/santos10-dev/proprietary_vendor_samsung_santos10-common/archive/$_commit.tar.gz"
options="!check !strip !archcheck !spdx"
builddir="$srcdir/proprietary_vendor_samsung_santos10-common-$_commit"
package() {
# Wi-Fi
install -Dm644 proprietary/vendor/firmware/bcmdhd_sta.bin_b2 \
"$pkgdir"/lib/firmware/postmarketos/bcmdhd_sta.bin_b2
install -Dm644 proprietary/vendor/firmware/nvram_net.txt \
"$pkgdir"/lib/firmware/postmarketos/nvram_net.txt
# Misc
install -Dm644 proprietary/vendor/firmware/fw_sst_08e7.bin \
"$pkgdir"/lib/firmware/postmarketos/fw_sst_08e7.bin
}
sha512sums="d0cf1081ed1e0f6e2c9c9d94bc34b8094054909d5c5580304f8cbd3d69d9712c2875e1a90da2f51837e5d67d6849cd0719b35b301ba37d0d5fdee228e8e62258 firmware-samsung-santos10wifi-22fdeccf3db554b50ebba1877d6e71085511114f.tar.gz"
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/x86/configs/lineage_santos10_defconfig
pkgname=linux-samsung-santos10wifi
pkgver=3.4.34
pkgrel=0
pkgdesc="Samsung Galaxy Tab 3 10.1 Wi-Fi kernel fork"
arch="x86"
_carch="x86"
_flavor="samsung-santos10wifi"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl xz linux-headers elfutils-dev"
# Source
_repository="android_kernel_samsung_santos10"
_commit="edec7f67e953eff11415ac47b6a5080e6e8b2ffe"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/dpdudek/$_repository/archive/$_commit.tar.gz
$_config
gcc7-give-up-on-ilog2-const-optimizations.patch
gcc8-fix-put-user.patch
gcc10-extern_YYLOC_global_declaration.patch
kernel-use-the-gnu89-standard-explicitly.patch
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
}
sha512sums="bf9360bad6361cde778adb83b4f991f55d8bf5ea066b71da82b3fa37af70dc7a7e29430a92e5537c395ca37f967d181502415c75ee59a6b986e1020bed53f8ee linux-samsung-santos10wifi-edec7f67e953eff11415ac47b6a5080e6e8b2ffe.tar.gz
8e817f977c6c4333a63202ed596ad40aeb4eaa774d4652b203ae920b27c0f66e2b7b963dd87328e84d39e1b02230a1a0a708f1d74c6cf8f1845848398b3b8987 config-samsung-santos10wifi.x86
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
ad0182a483791fc88e058838bc331b2f04a75ba291e763767babdb815efadfc3b4fda97e69e2e3f00a426cabea088e35297a92bd287592597d1e309be68ee92c kernel-use-the-gnu89-standard-explicitly.patch"
../../.shared-patches/linux/gcc10-extern_YYLOC_global_declaration.patch
\ No newline at end of file
../../.shared-patches/linux/gcc7-give-up-on-ilog2-const-optimizations.patch
\ No newline at end of file
../../.shared-patches/linux/gcc8-fix-put-user.patch
\ No newline at end of file
../../.shared-patches/linux/kernel-use-the-gnu89-standard-explicitly.patch
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment