d164248ac6
This function was changed, so these packages need to be rebuilt to have the kernel installed under the new filename 'vmlinuz'
59 lines
2 KiB
Text
59 lines
2 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Maintainer: omame <me@omame.tech>
|
|
pkgname=linux-samsung-j6primelte
|
|
pkgver=3.18.124
|
|
pkgrel=1
|
|
pkgdesc="Samsung Galaxy J6+ kernel (LineageOS 18.1)"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
_flavor="samsung-j6primelte"
|
|
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
|
|
"
|
|
|
|
# Source
|
|
_repository="android_kernel_samsung_msm8917"
|
|
_commit="f7e2c1efe869135a768cb5dfcdf452adecb6e0f3"
|
|
_config="config-$_flavor.$arch"
|
|
source="
|
|
$pkgname-$_commit.tar.gz::https://github.com/samsung-msm8937-devs/$_repository/archive/$_commit.tar.gz
|
|
$_config
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
|
samsung_defex_lsm_use_relative_path.patch"
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
_outdir="out"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
. downstreamkernel_prepare
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 \
|
|
-pkeyopt rsa_keygen_pubexp:65537 | openssl pkcs8 -topk8 \
|
|
-nocrypt -outform der > \
|
|
$builddir/security/samsung/defex_lsm/cert/pubkey_user.der
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
}
|
|
|
|
package() {
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
|
}
|
|
|
|
sha512sums="
|
|
c321711852dfdbc1b36cb507c57e11fb72d3bef2f62d99b1ee84939eaf6b34bb8821a85afaaf0a2477af39d6128f889f15d8fd06f98030d98ed123eb15a627d5 linux-samsung-j6primelte-f7e2c1efe869135a768cb5dfcdf452adecb6e0f3.tar.gz
|
|
53e1b743a655a164085fd54d27c95ddc1cc5de992bc6f34ce4773469abcc770ba058a03d627dabd6c8bee048f383322bc1edfef9b3f572e62c59c0812e737fd2 config-samsung-j6primelte.armv7
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
|
1be8126e7a3e38827536eb5dc22fce6a713322a1e564abaac571a240844f13d8fde7f9e5d0b4c803c2a2f9fef9d2d35b3a57448a944270cc8f105112ee65acb9 samsung_defex_lsm_use_relative_path.patch
|
|
"
|