pmaports/device/archived/linux-samsung-beyond1lte-downstream/APKBUILD
chiffa 3235ae4f92
samsung-beyond1lte: archive downstream port
Rename downstream samsung-beyond1lte port so the name doesn't colide with the mainline port and can be selected in pmbootstrap init for testing

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8999>
2026-07-31 07:54:10 +00:00

67 lines
2.2 KiB
Text

# Archived: Downstream port, only for testing. Use mainline port!
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/exynos9820-beyond1lte_defconfig
maintainer="chiffa <chiffathefoxx@gmail.com>"
pkgname=linux-samsung-beyond1lte-downstream
pkgver=4.14.316
pkgrel=0
pkgdesc="Samsung Galaxy S10 downstream kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="samsung-beyond1lte"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
bash
bc
bison
clang
devicepkg-dev
findutils
flex
lld
llvm
openssl-dev
perl
"
# Source
_repository="android_kernel_samsung_exynos9820"
_commit="7d08ec364a0659edcf90a8dae4453b21e4542311"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
$_config
remove-header-lkc.patch
fix-check-lxdialog.patch
selinux_include_generated_headers.patch
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
REPLACE_GCCH=0 . downstreamkernel_prepare
}
build() {
unset LDFLAGS
# This kernel uses the integrated assembler by default,
# LLVM_IAS=1 is redundant
make O="$_outdir" ARCH="$_carch" LLVM=1 \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
}
sha512sums="
8ac222f644a534204fd5ea5e657991214bfc069042b48620b956ce0c249af6639b9a18c20892481c8514d2cdd3c3bd967062a4d16ba53504fd76d1227a365d44 linux-samsung-beyond1lte-downstream-7d08ec364a0659edcf90a8dae4453b21e4542311.tar.gz
a4a99dd42d0f687e5f0a46fc0f7dd61ffa5deb06459153befe109bed87cb282ab3d1454836865b78f7ac8e67225df98a79ff22aa52ce517e82c5ebd6c011f39f config-samsung-beyond1lte.aarch64
1872a4d9963f128965ab46b329d448e6b776d373cf99f2b8e11d025aa3e10a0308da19beb715c6bdced0b2c6ef44c47a5c013554a19787a64f8ac58d34bc912f remove-header-lkc.patch
182be3c596b9cc267ac108d7cf03fc8c328ccc6b36770800e4dcedea8d1bb65e3f5eacf590c2948f58b1418cc60a1670ba77dde8c259e428d158c31b6e1dbaf5 fix-check-lxdialog.patch
6ab9db01d35f7f5cc2c19ebe5f65a7dc479a1c68de587300cdde9a6c759d34610666c72f0f321cd450cf56c13df3b54a774e0f7ebdbf0f8608fbfd66b49d04e7 selinux_include_generated_headers.patch
"