bq-piccolo: new device (MR 2523)

[ci:skip-build]
This commit is contained in:
André Apitzsch 2021-07-26 22:20:56 +02:00 committed by Bart Ribbers
parent 5963a970d5
commit 3be319fec5
No known key found for this signature in database
GPG key ID: 0BF4C1B5988C50D8
3 changed files with 110 additions and 0 deletions

View file

@ -0,0 +1,34 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-bq-piccolo
pkgdesc="BQ Aquaris M5"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8939 soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware"
depends="linux-firmware-qcom firmware-adreno firmware-bq-piccolo-venus firmware-bq-piccolo-wcnss"
mkdir "$subpkgdir"
}
sha512sums="
c44c2fd110ac4bdc76abee25cb0f2dcaa5baff0d7cb9b8a806d1a3e4824f4fffeb6a2faf42a6597d6a3c424ec2c08fcb539d9091185cfb73d3f8395a4266355a deviceinfo
"

View file

@ -0,0 +1,31 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="BQ Aquaris M5"
deviceinfo_manufacturer="BQ"
deviceinfo_codename="bq-piccolo"
deviceinfo_year="2015"
deviceinfo_dtb="qcom/msm8939-bq-piccolo"
deviceinfo_append_dtb="true"
deviceinfo_modules_initfs=""
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="1920"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100"
deviceinfo_flash_pagesize="2048"

View file

@ -0,0 +1,45 @@
pkgname=firmware-bq-piccolo
pkgver=1
pkgrel=0
_commit=c7a376fd46f103642ec81a10e1f079bce0df2075
pkgdesc="Firmware for BQ Aquaris M5"
url="https://gitlab.com/a_a/firmware-bq-piccolo"
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck"
source="https://gitlab.com/a_a/firmware-bq-piccolo/-/archive/$_commit/firmware-bq-piccolo-$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"
_fwdir="/lib/firmware/postmarketos"
package() {
# parent package is empty
mkdir -p "$pkgdir"
}
modem() {
pkgdesc="BQ Aquaris M5 modem firmware"
install -Dm644 "$builddir"/modem.* -t "$subpkgdir/$_fwdir"
install -Dm644 "$builddir"/mba.* -t "$subpkgdir/$_fwdir"
}
venus() {
pkgdesc="BQ Aquaris M5 video firmware"
install -Dm644 "$builddir"/venus.mdt "$builddir"/venus.b* \
-t "$subpkgdir/$_fwdir"/qcom/venus-1.8
}
wcnss() {
pkgdesc="BQ Aquaris M5 WiFi/BT firmware"
_files="WCNSS_cfg.dat WCNSS_qcom_cfg.ini WCNSS_qcom_wlan_nv.bin"
install -Dm644 "$builddir"/wcnss.* -t "$subpkgdir/$_fwdir"
for file in $_files; do
install -Dm644 "$builddir"/wlan/prima/"$file" -t "$subpkgdir/$_fwdir"/wlan/prima
done
}
sha512sums="
451a15cc01efa955c035ade5cdd7ce066eb9816bcc1facd7d0e6649aa746509f235a798e33d92a47c649a3cd05ed886fdcf6d817470789e5af4a7e41f8330c0f firmware-bq-piccolo-c7a376fd46f103642ec81a10e1f079bce0df2075.tar.gz
"