bq-picmt: new device (BQ Aquaris X5) (MR 1134)

This commit is contained in:
lazzardo 2020-04-08 12:32:40 +02:00 committed by Daniele Debernardi
parent 8f79b6f5b2
commit 424266950b
No known key found for this signature in database
GPG key ID: 5782FCF5DAE9AF60
5 changed files with 3948 additions and 0 deletions

View file

@ -0,0 +1,31 @@
# Contributor: Jonathan Albrieux <jonathan.albrieux@gmail.com>
# Maintainer: Jonathan Albrieux <jonathan.albrieux@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-bq-picmt"
pkgdesc="BQ Aquaris X5"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-bq-picmt mkbootimg qemu mesa-dri-swrast msm-fb-refresher"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Wifi(/Modem in progress)/Adreno firmware"
depends="firmware-bq-picmt-wcnss firmware-bq-picmt-modem msm-modem-downstream firmware-bq-picmt-adreno"
mkdir "$subpkgdir"
}
sha512sums="29f99696dc50e624223b3ee1cfbccc3d99fbe63b06b4bc340a57a796fed009e6048d4bbd440d2fc5fd38dcb4823fd172a019030230cb56164cc2498f7677cf76 deviceinfo"

View file

@ -0,0 +1,30 @@
# 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 X5"
deviceinfo_manufacturer="BQ"
deviceinfo_codename="bq-picmt"
deviceinfo_year="2015"
deviceinfo_arch="armv7"
# Device related
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1280"
deviceinfo_dev_touchscreen="/dev/input/event9"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk androidboot.bqdevice=picmt buildvariant=user"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_dtb_second="false"
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,51 @@
# Contributor: Jonathan Albrieux <jonathan.albrieux@gmail.com>
# Maintainer: Jonathan Albrieux <jonathan.albrieux@gmail.com>
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm/configs/picmt_defconfig
pkgname="linux-bq-picmt"
pkgver=3.10.49
pkgrel=0
pkgdesc="BQ Aquaris X5 kernel fork"
arch="armv7"
_carch="arm"
_flavor="bq-picmt"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps"
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl gcc4 linux-headers"
# Compiler: GCC 4 (Last kernel version built with gcc4.8.x)
if [ "${CC:0:5}" != "gcc4-" ]; then
CC="gcc4-$CC"
HOSTCC="gcc4-gcc"
CROSS_COMPILE="gcc4-$CROSS_COMPILE"
fi
# Source
_repository="aquaris-X5"
_commit="f727041ed84edbe41169f612430ec23fe0754a7e"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/JonnyMe/$_repository/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_commit"
prepare() {
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
}
sha512sums="409acfb8f8951e3b0d1a11160d2f21e5f4f7de932187ab35828df84b6a3532a9711eceae82105bc93785a0fff1483b994c51ceb4cb60ec34943db137a4091480 linux-bq-picmt-f727041ed84edbe41169f612430ec23fe0754a7e.tar.gz
0393408784501f499dbd41f4e24389e2deab73d55201dc1dcb5a95f0e33d0823aa8d090bab47f8facba518600840098e754a65118cfc002f220581aed4d842ab config-bq-picmt.armv7"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,44 @@
pkgname=firmware-bq-picmt
pkgver=0.1
pkgrel=0
pkgdesc="Firmware for Samsung Aquaris X5"
url="https://github.com/JonnyMe/picmt-firmware"
subpackages="$pkgname-adreno $pkgname-modem $pkgname-wcnss"
arch="armv7"
license="proprietary"
options="!check !strip !archcheck"
source="https://github.com/JonnyMe/picmt-firmware/raw/master/picmt_firmware_files.tar.xz"
_fwdir="/lib/firmware/postmarketos"
package() {
mkdir -p "$pkgdir"
mkdir -p "$pkgdir"/lib/firmware/postmarketos
mkdir -p "$pkgdir"/lib/firmware/postmarketos/wlan/prima
}
modem() {
pkgdesc="Aquaris X5 modem firmware"
cd "$srcdir"
install -D -m644 modem.* -t "$subpkgdir"/lib/firmware/postmarketos
install -D -m644 mba.* -t "$subpkgdir"/lib/firmware/postmarketos
}
adreno() {
pkgdesc="Aquaris X5 adreno gpu firmware"
cd "$srcdir"
install -D -m644 tz* -t "$subpkgdir"/lib/firmware/postmarketos
install -D -m644 a225* -t "$subpkgdir"/lib/firmware/qcom
install -D -m644 a330* -t "$subpkgdir"/lib/firmware/qcom
install -D -m644 a420* -t "$subpkgdir"/lib/firmware/qcom
}
wcnss() {
pkgdesc="Aquaris X5 WiFi/BT firmware"
depends="wcnss-wlan"
cd "$srcdir"
install -D -m644 wcnss.* -t "$subpkgdir"/lib/firmware/postmarketos
install -D -m644 WCNSS_* -t "$subpkgdir"/lib/firmware/postmarketos/wlan/prima
}
sha512sums="986f32ac33b895ca80abfe476cd1abd47a778ae8ddc6593ed4a6a91a244c5fe7ced6766b98ea2a3bdb4720fbabc40a50a8972106e6be2227f5ed8d7ffcdf2c0d picmt_firmware_files.tar.xz"