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-12-22 21:50:54 +00:00
|
|
|
pkgver=5.10
|
2020-07-19 16:28:21 +00:00
|
|
|
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-12-22 21:50:54 +00:00
|
|
|
_commit="ccb798850a85a6a9c8c70e02f0bf77af06c90d60"
|
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-12-22 21:50:54 +00:00
|
|
|
sha512sums="93c0aa227f441a234e910ed3052fa83fd9d4d77eb044b72769129f0ca82d6a140426029b4541783e1b8c4abe5bd8b476cd53119528a5f18448fe2889bce40ed0 sdm845-linux-ccb798850a85a6a9c8c70e02f0bf77af06c90d60.tar.gz
|
|
|
|
828c76ee54e8d078be7cc371d34ab87c32929f096f70bcd3f69c2e42d748aec0446499fefbdf779fdfb05d8a779745222865674ad371759100ee36245f533202 config-oneplus-sdm845.aarch64"
|