- job: name: openembedded-lkft-linux-developer project-type: freestyle defaults: global properties: - authorization: anonymous: - job-read - job-extended-read linaro: - job-read - job-extended-read - job-build - job-cancel daniel.diaz@linaro.org: - job-build - job-read - job-extended-read - job-configure - job-cancel - build-discarder: days-to-keep: 30 num-to-keep: 30 artifact-num-to-keep: 1 description: |

LKFT Developer Build

This Jenkins job can build your kernel along with the rest of the OpenEmbedded filesystem. It will be published automatically and can be tested the same way LKFT runs on the regular builds.

You can compare your test results with existing runs on actual hardware: arm (X15), arm64 (HiKey) and x86_64 (Xeon E3-1220)

This is more or less how it goes:

Links will appear on your build job to point to:

You can start by clicking on Build with Parameters, right here on the left pane. Just provide a kernel (Git repo and revision) and we'll take care of the rest!

Note that these config fragments are added to your defconfig:

parameters: - string: name: KERNEL_REPO default: 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git' description: | [MANDATORY] Kernel repository URL - string: name: KERNEL_BRANCH default: 'master' description: | [MANDATORY] Kernel branch - choice: name: TARGET_MACHINE choices: - 'hikey' - 'x15' - 'x86' description: | [MANDATORY] Target machine. Can be hikey (arm64), x15 (arm), or x86 (x86_64). - string: name: KERNEL_CONFIG default: '' description: | [OPTIONAL] Kernel config
If ommited the default kernel config will use
- defconfig on arm64
- multi_v7_defconfig on arm
- x86_64_defconfig on x86
An URL pointing to the config can be used as well.
Note: an additional config fragment is added to ensure systemd is functional - string: name: KERNEL_COMMIT default: '' description: | [OPTIONAL] Kernel commit
If ommited TIP will be used
e.g.: 0adb32858b0bddf4ada5f364a84ed60b196dbcda - string: name: TEST_SUITES default: 'none' description: | [OPTIONAL] Test suites to run
Can be blank (for all), 'none' for no tests, or a combination of the following separated by space: - kselftests - libhugetlbfs - ltp E.g.: 'kselftests ltp' disabled: false node: docker-lkft display-name: 'LKFT - Linux Developer Builder (OpenEmbedded/rocko)' wrappers: - timeout: timeout: 180 - timestamps - credentials-binding: - text: credential-id: QA_REPORTS_TOKEN variable: QA_REPORTS_TOKEN builders: - shell: !include-raw: openembedded-lkft/kernel-versions.sh - inject: properties-file: linux_versions - shell: | #!/bin/bash -e # Target machine is just an user friendly name. # Mapping for TARGET_MACHINE -> MACHINE/DEVICE_TYPE # Set a default config if it isn't given case "${TARGET_MACHINE}" in hikey) MACHINE=hikey DEVICE_TYPE=hi6220-hikey # or Juno? (it is supported from in 4.4 kernel while HiKey isn't) #MACHINE=juno #DEVICE_TYPE=juno-r2 [ -z "${KERNEL_CONFIG}" ] && KERNEL_CONFIG=defconfig ;; x15) MACHINE=am57xx-evm DEVICE_TYPE=x15 [ -z "${KERNEL_CONFIG}" ] && KERNEL_CONFIG=multi_v7_defconfig ;; x86) MACHINE=intel-core2-32 DEVICE_TYPE=x86 [ -z "${KERNEL_CONFIG}" ] && KERNEL_CONFIG=x86_64_defconfig ;; esac cat << EOF > ${WORKSPACE}/custom-kernel-info.inc.tmp KERNEL_COMMIT = "${KERNEL_SRCREV}" KERNEL_REPO = "${KERNEL_REPO/http*:/git:}" KERNEL_BRANCH = "${KERNEL_BRANCH}" KERNEL_CONFIG_aarch64 = "${KERNEL_CONFIG}" KERNEL_CONFIG_arm = "${KERNEL_CONFIG}" KERNEL_CONFIG_x86-64 = "${KERNEL_CONFIG}" EOF echo "IMAGES=rpb-console-image-lkft" > parameters echo "MANIFEST_URL=https://github.com/96boards/oe-rpb-manifest.git" >> parameters echo "MANIFEST_BRANCH=rocko" >> parameters echo "DISTRO=rpb" >> parameters echo "MACHINE=${MACHINE}" >> parameters echo "DEVICE_TYPE=${DEVICE_TYPE}" >> parameters echo "LAVA_SERVER=https://lkft.validation.linaro.org/RPC2/" >> parameters echo "PUB_DEST=openembedded/lkft/rocko/generic/rpb/linux-developer/${BUILD_NUMBER}" >> parameters echo "QA_SERVER=https://qa-reports.linaro.org" >> parameters echo "QA_SERVER_PROJECT=linux-developer-oe" >> parameters echo "KERNEL_SRCREV=${KERNEL_SRCREV}" >> parameters echo "KERNEL_RECIPE=linux-generic" >> parameters cat parameters echo "#${BUILD_NUMBER}-${KERNEL_SRCREV:0:8}" > ${WORKSPACE}/version.txt - build-name-setter: name: 'version.txt' file: true - inject: properties-file: parameters - shell: !include-raw: openembedded-lkft/builders-generic.sh - inject: properties-file: post_build_lava_parameters - linaro-publish-token - shell: !include-raw: openembedded-lkft/publishers.sh - shell: !include-raw: openembedded-lkft/submit_for_testing-staging.sh - shell: !include-raw: openembedded-lkft/qemu-testjobs.sh - inject: properties-file: qemu_device_type_parameters - shell: !include-raw: openembedded-lkft/submit_for_testing-staging.sh publishers: - groovy-postbuild: script: !include-raw: - rpb-openembedded/postbuild.groovy - openembedded-lkft/postbuild.groovy - email-ext: recipients: 'daniel.diaz@linaro.org' matrix-trigger: only-configurations subject: '[CI] Developer/${KERNEL_BRANCH}: ${BUILD_STATUS}' body: | Build URL: ${PROJECT_URL}${BUILD_NUMBER}/ Log: ${PROJECT_URL}${BUILD_NUMBER}/console Parsed warnings/errors: ${PROJECT_URL}${BUILD_NUMBER}/parsed_console Git URL: ${KERNEL_REPO} Git branch: ${KERNEL_BRANCH} Git commit: ${KERNEL_COMMIT} Errors: ${BUILD_LOG_REGEX, regex="^ERROR:.* ", linesBefore=0, linesAfter=0, showTruncatedLines=false}