vernee-k506: add nonfree firmware package (MR 1456)
This commit is contained in:
parent
872fc74aee
commit
aef4ae08a5
2 changed files with 41 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
pkgname=device-vernee-k506
|
||||
pkgdesc="Vernee Thor"
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
|
@ -10,6 +10,9 @@ options="!check !archcheck"
|
|||
depends="postmarketos-base linux-vernee-k506 mkbootimg mesa-dri-gallium"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo initfs-hook.sh"
|
||||
subpackages="
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
|
@ -19,5 +22,11 @@ package() {
|
|||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="SoC firmware (WiFi, BT, GPS, Modem, FM)"
|
||||
depends="firmware-vernee-k506"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="d690398cea697cf28d7974c9d5f9a20f2851375c0c2f6ea8a27c66c3f593b46e58463dd4f9ff79f97eca7edbd0913ade1ff53bb15b28ad51af030e613749eb58 deviceinfo
|
||||
50d6784e6af1dce2e6ba18993f5c50ba88fc8a6521bfe15667dd5beddb4c948f59bb800e18b977fb86c93c37105010ce6c20f88405e73a03449ee3226aa14466 initfs-hook.sh"
|
||||
|
|
31
device/testing/firmware-vernee-k506/APKBUILD
Normal file
31
device/testing/firmware-vernee-k506/APKBUILD
Normal file
|
@ -0,0 +1,31 @@
|
|||
pkgname=firmware-vernee-k506
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
_commit="9797317852a993db514ab4e7d6d04d3573b275b5"
|
||||
pkgdesc="Vernee Thor Firmware"
|
||||
url="https://github.com/MediatekAndroidDevelopers/android_vendor_vernee_thor_k506"
|
||||
arch="aarch64"
|
||||
license="proprietary"
|
||||
source="$pkgname-$_commit.tar.gz::https://github.com/MediatekAndroidDevelopers/android_vendor_vernee_thor_k506/archive/$_commit.tar.gz"
|
||||
options="!check !strip !archcheck !spdx"
|
||||
builddir="$srcdir/android_vendor_vernee_thor_k506-$_commit"
|
||||
|
||||
_fileswifi="ROMv2_lm_patch_1_0_hdr.bin ROMv2_lm_patch_1_1_hdr.bin WIFI_RAM_CODE_6735 WMT_SOC.cfg"
|
||||
_filesfm="mt6627_fm_v1_coeff.bin mt6627_fm_v1_patch.bin mt6627_fm_v2_coeff.bin mt6627_fm_v2_patch.bin mt6627_fm_v3_coeff.bin mt6627_fm_v3_patch.bin mt6627_fm_v4_coeff.bin mt6627_fm_v4_patch.bin mt6627_fm_v5_coeff.bin mt6627_fm_v5_patch.bin"
|
||||
_filesothers="catcher_filter_1_lwg_n.bin dsp_1_lwg_n.bin modem_1_lwg_n.img"
|
||||
package() {
|
||||
for _i in $_fileswifi; do
|
||||
install -Dm644 vendor/firmware/"$_i" \
|
||||
"$pkgdir"/lib/firmware/postmarketos/"$_i"
|
||||
done
|
||||
for _i in $_filesfm; do
|
||||
install -Dm644 vendor/firmware/"$_i" \
|
||||
"$pkgdir"/lib/firmware/postmarketos/"$_i"
|
||||
done
|
||||
for _i in $_filesothers; do
|
||||
install -Dm644 vendor/firmware/"$_i" \
|
||||
"$pkgdir"/lib/firmware/postmarketos/"$_i"
|
||||
done
|
||||
}
|
||||
|
||||
sha512sums="11000ad1ca211413e4a22a1454df08984894d5d7f616aba9f91c3cb6817bb2340503789dd9c7f2acd5ee1c154e1e9cf5ff8e42170fcfc926c8f79b3464441904 firmware-vernee-k506-9797317852a993db514ab4e7d6d04d3573b275b5.tar.gz"
|
Loading…
Reference in a new issue