user/linux-pine64-pinenote: new aport
This commit is contained in:
parent
fafce64d02
commit
ca434fa936
2 changed files with 6254 additions and 0 deletions
58
user/linux-pine64-pinenote/APKBUILD
Normal file
58
user/linux-pine64-pinenote/APKBUILD
Normal file
|
@ -0,0 +1,58 @@
|
|||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm64/configs/pinenote_defconfig
|
||||
|
||||
pkgname=linux-pine64-pinenote
|
||||
pkgver=6.12.0
|
||||
pkgrel=0
|
||||
pkgdesc="Pine64 PineNote close to mainline fork"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
_flavor="pine64-pinenote"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
makedepends="bison findutils flex installkernel openssl-dev perl"
|
||||
|
||||
# Source
|
||||
_config="config-$_flavor.$arch"
|
||||
_commit="9d066a65f5cbaa8cd3bfc73a1b54fbac2d0f76ac"
|
||||
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/m-weigand/linux/archive/$_commit.tar.gz
|
||||
$_config
|
||||
"
|
||||
builddir="$srcdir/linux-$_commit"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cp "$srcdir/config-$_flavor.$CARCH" .config
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/boot
|
||||
|
||||
install -Dm644 "$builddir/arch/$_carch/boot/Image" \
|
||||
"$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="
|
||||
d3c2510f9f835a0570fbb812cec2f9e12e402878c1f9f214364ae1918bc4c00f69a1fc5e005cf6b85c0690e6fd5f6ce9e61efd88145a83725ed12b6b8c07b97e linux-pine64-pinenote-9d066a65f5cbaa8cd3bfc73a1b54fbac2d0f76ac.tar.gz
|
||||
97e8c1b137768ff7722ad3d975ad2496490c11249aaf9ffc4ee4d77b8935e24f59244cc6346bafd9b0c9fd5751f2ccfa24def2256f03b995c46f8906d8c8fe9c config-pine64-pinenote.aarch64
|
||||
"
|
6196
user/linux-pine64-pinenote/config-pine64-pinenote.aarch64
Normal file
6196
user/linux-pine64-pinenote/config-pine64-pinenote.aarch64
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue