soc-qcom-msm8916: Add common packages for mainline MSM8916 devices (!582)
Add main/linux-postmarketos-qcom-msm8916 as shared mainline kernel for all MSM8916 devices.
This commit is contained in:
parent
fc839c2ea6
commit
e80aabe73f
3 changed files with 5148 additions and 0 deletions
20
device/soc-qcom-msm8916/APKBUILD
Normal file
20
device/soc-qcom-msm8916/APKBUILD
Normal file
|
@ -0,0 +1,20 @@
|
|||
pkgname="soc-qcom-msm8916"
|
||||
pkgdesc="Common package for Qualcomm MSM8916 devices"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="LGPL-2.1-or-later"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="alsa-lib mesa-dri-freedreno"
|
||||
|
||||
_alsa_commit=eff9ffaa30226006a73b493cfc3e308c0a82bac0
|
||||
source="$pkgname-${_alsa_commit}.tar.gz::https://github.com/msm8916-mainline/alsa-lib/archive/${_alsa_commit}.tar.gz"
|
||||
|
||||
package() {
|
||||
cd "$srcdir/alsa-lib-${_alsa_commit}"/src/conf/ucm
|
||||
find codecs/msm8916-wcd msm8916* -type f -name "*.conf" \
|
||||
-exec install -Dm644 {} "$pkgdir"/usr/share/alsa/ucm/{} \;
|
||||
}
|
||||
|
||||
sha512sums="9499d1e7e5a82833fd3d29faea22c3fc62a8fbb59a8994c0d95f74269746a2c8efc1346a6f569d19b50c87e7db038689d7498c90d6f6ac8d0d8696c0fcbbe3ab soc-qcom-msm8916-eff9ffaa30226006a73b493cfc3e308c0a82bac0.tar.gz"
|
58
main/linux-postmarketos-qcom-msm8916/APKBUILD
Normal file
58
main/linux-postmarketos-qcom-msm8916/APKBUILD
Normal file
|
@ -0,0 +1,58 @@
|
|||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm64/configs/msm8916_defconfig
|
||||
|
||||
_flavor="postmarketos-qcom-msm8916"
|
||||
pkgname="linux-${_flavor}"
|
||||
pkgver=5.3.0_rc6
|
||||
pkgrel=0
|
||||
pkgdesc="Mainline kernel fork for Qualcomm MSM8916 devices"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
url="https://github.com/msm8916-mainline/linux"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps"
|
||||
depends_dev="perl gmp-dev elfutils-dev bash flex bison"
|
||||
makedepends="$depends_dev sed installkernel bc linux-headers openssl-dev dtbtool"
|
||||
|
||||
# Compiler: latest GCC from Alpine
|
||||
HOSTCC="${CC:-gcc}"
|
||||
HOSTCC="${HOSTCC#${CROSS_COMPILE}}"
|
||||
|
||||
# Source
|
||||
_tag=v5.3-rc6-msm8916
|
||||
source="
|
||||
$pkgname-$_tag.tar.gz::$url/archive/$_tag.tar.gz
|
||||
config-$_flavor.$arch
|
||||
"
|
||||
builddir="$srcdir/linux-${_tag#v}"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cp "$srcdir/config-$_flavor.$arch" .config
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/boot
|
||||
make zinstall modules_install dtbs_install \
|
||||
ARCH="$_carch" \
|
||||
INSTALL_PATH="$pkgdir"/boot \
|
||||
INSTALL_MOD_PATH="$pkgdir" \
|
||||
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
|
||||
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
||||
|
||||
install -D "$builddir"/include/config/kernel.release \
|
||||
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
||||
|
||||
# Master DTB (deviceinfo_bootimg_qcdt)
|
||||
dtbTool -p scripts/dtc/ -o arch/arm64/boot/dt.img arch/arm64/boot/
|
||||
install -Dm644 arch/arm64/boot/dt.img "$pkgdir"/boot/dt.img
|
||||
}
|
||||
|
||||
sha512sums="d40bf6aa0f772685232507708366666fbfadba5ade13679bf05508c5dab91db700aa01b34f09c59f04e8c5c20e6bb5a3b8cd068eb7653f6d8442afb742141f63 linux-postmarketos-qcom-msm8916-v5.3-rc6-msm8916.tar.gz
|
||||
d2ca2b11133ce2deb51ebef991334217fff425fcd389f27a46651798b93c3141b64c1f2a8ba1c395076e542c3b72371083bfd020882aaee0e106a663969c43ae config-postmarketos-qcom-msm8916.aarch64"
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue