2b973b639b
Enable display and gpu. Signed-off-by: Jianhua Lu <lujianhua000@gmail.com>
66 lines
1.6 KiB
Text
66 lines
1.6 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
_flavor="postmarketos-qcom-sm8250"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.18.0_rc6
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel fork for SM8250"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://github.com/lujianhua/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
makedepends="
|
|
findutils
|
|
linux-headers
|
|
xz
|
|
bash
|
|
bc
|
|
bison
|
|
devicepkg-dev
|
|
flex
|
|
openssl-dev
|
|
perl
|
|
"
|
|
|
|
# Source
|
|
_commit="a5b6404c37799e16363a226bf5ef45288317e52c"
|
|
_config="config-$_flavor.$arch"
|
|
source="
|
|
$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/linux-$_commit"
|
|
_outdir="out"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
REPLACE_GCCH=0 \
|
|
. downstreamkernel_prepare
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
}
|
|
|
|
package() {
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
|
|
|
install -Dm644 "$builddir/$_outdir/arch/$_carch/boot/Image.gz" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
make O="$_outdir" \
|
|
ARCH="$_carch" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb" \
|
|
modules_install dtbs_install
|
|
}
|
|
|
|
sha512sums="
|
|
0e12645f9830a91e52c7cdab807dcd04805c379238053977f934a3f13729f0ba8709671c3414e50fc02026a4c0db8fc3bf6ac71e31df5df466c8110f7059bf8e linux-postmarketos-qcom-sm8250-a5b6404c37799e16363a226bf5ef45288317e52c.tar.gz
|
|
f354cca1133a8f8241b9f3a87d6d6bf5e81630c6f885e8963d52e34b03b2f070641fe874ed943a2c44db419b90976aab45deb15fff404d7e84db797b92db8768 config-postmarketos-qcom-sm8250.aarch64
|
|
"
|