bq-gohan: new device (BQ Aquaris X5 Plus) (MR 1164)

[ci:skip-build] Already built successfully on CI in MR
This commit is contained in:
Federico Amedeo Izzo 2020-04-19 11:33:21 +02:00 committed by Alexey Min
parent 606b723450
commit b887fb2139
No known key found for this signature in database
GPG key ID: EBF5ECFFFEE34DED
4 changed files with 3923 additions and 0 deletions

View file

@ -0,0 +1,25 @@
# Contributor: Federico Amedeo Izzo <federico@izzo.pro>
# Maintainer: Federico Amedeo Izzo <federico@izzo.pro>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-bq-gohan
pkgdesc="BQ Aquaris X5 Plus"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-bq-gohan mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="83b7eaa4d5a21be3194a778d46abc81c2afb662421fa79bdfc2737634849659a64a6ccb4c043169d4679c9c46646b2f3cd4248a81493c017d775264b5e4a5bb0 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 X5 Plus"
deviceinfo_manufacturer="BQ"
deviceinfo_codename="bq-gohan"
deviceinfo_year="2016"
deviceinfo_dtb=""
deviceinfo_modules_initfs=""
deviceinfo_arch="armv7"
# Device related
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="1920"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=30 msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk 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,52 @@
# Contributor: Federico Amedeo Izzo <federico@izzo.pro>
# Maintainer: Federico Amedeo Izzo <federico@izzo.pro>
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm/configs/gohan_defconfig
pkgname=linux-bq-gohan
pkgver=3.10.84
pkgrel=0
pkgdesc="BQ Aquaris X5 Plus kernel fork"
arch="armv7"
_carch="arm"
_flavor="bq-gohan"
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 (doesn't boot when compiled with newer versions)
if [ "${CC:0:5}" != "gcc4-" ]; then
CC="gcc4-$CC"
HOSTCC="gcc4-gcc"
CROSS_COMPILE="gcc4-$CROSS_COMPILE"
fi
# Source
_repository="android_kernel_bq_msm8976"
_commit="19147fab27a5104598d615c4ea939aee2e18ade8"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
. 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"
}
sha512sums="4e9c7984e567482d7b550ee2bd737eca38355995935ea2653f6f9f605818813e3a3c0d9c4f3649c6897cf172b0009f020e8e3de129e6f64bf2874349b4ff8081 linux-bq-gohan-19147fab27a5104598d615c4ea939aee2e18ade8.tar.gz
42e2a1a8b1750b5b4e7bdd74bb54ebbf80d2d07bf8f64c5a0c2a91472ed7e8233fccd89d62ad8ff1cc44ba633cfbdf2ab101c60010a1aa37b364368ceac8af8c config-bq-gohan.armv7"

File diff suppressed because it is too large Load diff