2021-09-30 11:03:46 +00:00
|
|
|
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sm6350"
|
|
|
|
pkgname=linux-$_flavor
|
2022-10-15 20:26:12 +00:00
|
|
|
pkgver=6.0.2
|
|
|
|
pkgrel=0
|
2021-09-30 11:03:46 +00:00
|
|
|
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
|
2022-09-07 20:43:05 +00:00
|
|
|
pmb:kconfigcheck-community
|
2021-09-30 11:03:46 +00:00
|
|
|
"
|
2022-06-29 18:05:12 +00:00
|
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
2021-09-30 11:03:46 +00:00
|
|
|
|
|
|
|
_repo="linux"
|
|
|
|
_config="config-$_flavor.$arch"
|
2022-10-15 20:26:12 +00:00
|
|
|
_commit="acc6778273d102225893f2497645d7be0dd3f018"
|
2021-09-30 11:03:46 +00:00
|
|
|
|
|
|
|
# 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 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2021-09-30 11:03:46 +00:00
|
|
|
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="
|
2022-10-15 20:26:12 +00:00
|
|
|
2d3354a7ed040c5d894db8ea2e61abf868083a971c706f857ad0d50805c36ea766eb6c2201422c275052d7e9a28a10b05ccf1b45b641f9a3032d35f985b5705f linux-acc6778273d102225893f2497645d7be0dd3f018.tar.gz
|
|
|
|
ae598503fa78621203206c0ccd3b02d710e7543fcc57638b8037448eef52ffa0e68408215134abfdd395022c05b00950ecd897e4ec32ff2e45455e16910857a5 config-postmarketos-qcom-sm6350.aarch64
|
2021-09-30 11:03:46 +00:00
|
|
|
"
|