device-oneplus-fajita: enable on ci-tron, set the kernel console
To enable on ci-tron, just create the gitlab-ci.yml.j2 template. This could be reused by most other sdm845, and probably qcom devices. This also allows dropping the devicepkg_pmtest_post_install hack, since ci-tron will concatenate all the CI_TRON_KERNEL_CMDLINE__* variables into a single kernel commandline. Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org> Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7489>
This commit is contained in:
parent
55a97f8085
commit
f8a7760f82
3 changed files with 29 additions and 4 deletions
|
|
@ -0,0 +1,27 @@
|
|||
# Use this gitlab-ci snippet if your package:
|
||||
#
|
||||
# * is a Qualcomm device
|
||||
# * has its runner tags definition found in ci-common's ci-tron/common.yml
|
||||
# * uses U-boot as bootloader
|
||||
# * The devicepackage does not support U-boot and UEFI, but still uses the stock
|
||||
# bootloader
|
||||
test-{{ device.name }}:
|
||||
extends:
|
||||
# Extended from jobs defined in ci-common/ci-tron/common.yml
|
||||
- .pmos-ci-tron-runner-{{ device.name }}
|
||||
|
||||
# Extended from build-jobs.yaml.j2
|
||||
- .device-boot-flow-separate-artifacts
|
||||
- .test-{{ device.name }}
|
||||
|
||||
variables:
|
||||
# Let CI-tron construct the bootimg accepted by U-boot in a standard
|
||||
# Qualcomm way
|
||||
CI_TRON_FASTBOOT__HEADER_VERSION: 2
|
||||
CI_TRON_FASTBOOT__BASE: 0x00000000
|
||||
CI_TRON_FASTBOOT__KERNEL_OFFSET: 0x00008000
|
||||
CI_TRON_FASTBOOT__RAMDISK_OFFSET: 0x01000000
|
||||
CI_TRON_FASTBOOT__TAGS_OFFSET: 0x00000100
|
||||
CI_TRON_FASTBOOT__PAGESIZE: 4096
|
||||
CI_TRON_KERNEL_CMDLINE__CONSOLE: "console=ttyMSM0,115200"
|
||||
KERNEL_NAME: "vmlinuz"
|
||||
|
|
@ -3,7 +3,7 @@ maintainer="Casey Connolly <kcxt@postmarketos.org>"
|
|||
pkgname=device-oneplus-fajita
|
||||
pkgdesc="OnePlus 6T"
|
||||
pkgver=18
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
|
|
@ -70,11 +70,8 @@ nonfree_firmware_openrc() {
|
|||
pmtest() {
|
||||
depends="bootrr qrtr firmware-oneplus-sdm845 postmarketos-test-unl0kr"
|
||||
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-mkinitfs-hook-ci"
|
||||
install="$subpkgdir/$subpkgname.post-install"
|
||||
|
||||
mkdir -p "$subpkgdir"
|
||||
|
||||
devicepkg_pmtest_post_install "ttyMSM0,115200" > "$subpkgdir/$subpkgname.post-install"
|
||||
}
|
||||
|
||||
systemd() {
|
||||
|
|
|
|||
1
device/community/device-oneplus-fajita/gitlab-ci.yml.j2
Symbolic link
1
device/community/device-oneplus-fajita/gitlab-ci.yml.j2
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../../.gitlab-ci/packages/single-runner-defined-in-ci-common-qcom-devicepkg-bootimg.yml.j2
|
||||
Loading…
Add table
Add a link
Reference in a new issue