2020-05-27 00:05:15 +00:00
|
|
|
# Maintainer: Caleb Connolly <caleb@connolly.tech>
|
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
|
|
|
|
_flavor="oneplus-sdm845"
|
|
|
|
pkgname=linux-$_flavor
|
2020-07-19 16:28:21 +00:00
|
|
|
pkgver=5.8_rc6
|
|
|
|
pkgrel=0
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Kernel fork for OnePlus SDM845 devices, close to mainline"
|
2020-05-27 00:05:15 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2020-07-08 18:29:12 +00:00
|
|
|
url="https://gitlab.com/sdm845-mainline/sdm845-linux"
|
2020-05-27 00:05:15 +00:00
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
|
|
|
|
_config="config-$_flavor.$arch"
|
2020-07-19 16:28:21 +00:00
|
|
|
_commit="57dc9bcca97d7f8a5e79de5b45ca7cd5d66ceef5"
|
2020-05-27 00:05:15 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
2020-07-08 18:29:12 +00:00
|
|
|
sdm845-linux-$_commit.tar.gz::https://gitlab.com/sdm845-mainline/sdm845-linux/-/archive/$_commit/sdm845-linux-$_commit-sdm845.tar.gz
|
2020-05-27 00:05:15 +00:00
|
|
|
$_config
|
|
|
|
"
|
2020-07-08 18:29:12 +00:00
|
|
|
builddir="$srcdir/sdm845-linux-$_commit"
|
2020-05-27 00:05:15 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
mkdir -p "$srcdir"/build
|
|
|
|
cp -v "$srcdir"/$_config "$srcdir"/build/.config
|
|
|
|
make -C "$builddir" O="$srcdir"/build ARCH="$_carch" \
|
|
|
|
olddefconfig
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"/build
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/build/arch/$_carch/boot"
|
|
|
|
|
|
|
|
install -D "$srcdir/build/include/config/kernel.release" \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
|
|
|
|
cd "$srcdir"/build
|
|
|
|
mkdir -p "$pkgdir"/boot
|
2020-05-27 00:21:07 +00:00
|
|
|
make zinstall modules_install dtbs_install \
|
2020-05-27 00:05:15 +00:00
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
|
|
}
|
|
|
|
|
2020-07-19 16:28:21 +00:00
|
|
|
sha512sums="c05ea0b5191e9961613e16c8693ab1afffbbedced2a3223999f065cfe18225c53dff25e1c4a7ff0c7d883d80dc431ae8e2b46d812afc31abd63c25d9c9adb1b6 sdm845-linux-57dc9bcca97d7f8a5e79de5b45ca7cd5d66ceef5.tar.gz
|
|
|
|
0f0760669f931c7b40cb12a3ded1597b4c27642ee89ee06ed2a65db12c6492ae24fb920d376db3cfa56f114c1dc842dd08c7df622a5076b83961e3b4ea3c3f9a config-oneplus-sdm845.aarch64"
|