linux-postmarketos-qcom-sc7180: new aport (MR 4250)
This commit is contained in:
parent
9369c05ae9
commit
5eaa998a50
2 changed files with 8472 additions and 0 deletions
69
device/testing/linux-postmarketos-qcom-sc7180/APKBUILD
Normal file
69
device/testing/linux-postmarketos-qcom-sc7180/APKBUILD
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
# Maintainer: Jenneron <jenneron@protonmail.com>
|
||||||
|
pkgname=linux-postmarketos-qcom-sc7180
|
||||||
|
pkgver=6.1.39
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Mainline kernel fork for Qualcomm Snapdragon 7c devices"
|
||||||
|
arch="aarch64"
|
||||||
|
_carch="arm64"
|
||||||
|
_flavor="${pkgname#linux-}"
|
||||||
|
url="https://kernel.org"
|
||||||
|
license="GPL-2.0-only"
|
||||||
|
options="!strip !check !tracedeps
|
||||||
|
pmb:cross-native
|
||||||
|
pmb:kconfigcheck-community
|
||||||
|
"
|
||||||
|
makedepends="
|
||||||
|
bash
|
||||||
|
bison
|
||||||
|
findutils
|
||||||
|
flex
|
||||||
|
installkernel
|
||||||
|
openssl-dev
|
||||||
|
perl
|
||||||
|
gmp-dev
|
||||||
|
mpc1-dev
|
||||||
|
mpfr-dev
|
||||||
|
xz
|
||||||
|
"
|
||||||
|
|
||||||
|
# Source
|
||||||
|
_config="config-$_flavor.$arch"
|
||||||
|
case $pkgver in
|
||||||
|
*.*.*) _kernver=${pkgver%.0};;
|
||||||
|
*.*) _kernver=$pkgver;;
|
||||||
|
esac
|
||||||
|
source="
|
||||||
|
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-${pkgver//_/-}.tar.xz
|
||||||
|
$_config
|
||||||
|
"
|
||||||
|
builddir="$srcdir/linux-${_kernver//_/-}"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
unset LDFLAGS
|
||||||
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||||
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
mkdir -p "$pkgdir"/boot
|
||||||
|
make zinstall 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="
|
||||||
|
20d468ae89b57dda82d7c7b814c3d8b1b510e1623775b09a8a0b0a8a0431461e0a1d2df2bfa01f3102932c8eef91405546898b50ec3e6f30015098bb39722b41 linux-6.1.39.tar.xz
|
||||||
|
4225127e3db8382b6ee6525fdd86f83c00e3a800e8d6badf608d138f8205d3291299505cf37ab83a83008ef001e6df61de7d25cedc6101f7e726327fd96c37ae config-postmarketos-qcom-sc7180.aarch64
|
||||||
|
"
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue