ec0d98e9be
* Enable flash/torch LED (CONFIG_LEDS_QCOM_FLASH) * Fix USB init when not plugged in during bootloader stage [ci:skip-build] already built successfully in CI
59 lines
1.7 KiB
Text
59 lines
1.7 KiB
Text
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
_flavor="postmarketos-qcom-sm6350"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.1.0
|
|
pkgrel=0
|
|
pkgdesc="Mainline Kernel fork for SM6350 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://github.com/z3ntu/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-community
|
|
"
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
|
|
|
_repo="linux"
|
|
_config="config-$_flavor.$arch"
|
|
_commit="d36e74bfe9f8163bb7b9001f267490c91d954d77"
|
|
|
|
# Source
|
|
source="
|
|
$_repo-$_commit.tar.gz::https://github.com/z3ntu/$_repo/archive/$_commit/$_repo-$_commit.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/$_repo-$_commit"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
make modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
}
|
|
|
|
sha512sums="
|
|
d9e7a0e80b48450b2bd20d788b6ae38279c94ed12275a4f5955872795df7c7a3fa425d2c66fe1fbcd161687579dc94748c0b9fbd606a894818c3a793292a7b90 linux-d36e74bfe9f8163bb7b9001f267490c91d954d77.tar.gz
|
|
0b13f003cfa6e05594bc466d2d46ee09213a85d7bac353ae84ab06fc72d32050602b5b114f44c8afc40e617980d5c1fa3690077594c0e35fdc829d358b4a339f config-postmarketos-qcom-sm6350.aarch64
|
|
"
|