- 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 (Juno) and x86 (Xeon E3-1220). A description of the hardware can be found here.

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!
(Please note that you need to log-in to Jenkins first if you haven't.)

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_REV default: 'master' description: | [MANDATORY] Kernel branch, tag, or commit ID to checkout.
Available trees are:
You can specifiy any valid Git reference from those trees, such as origin/myworkbranch, linux-stable-rc/linux-4.18.y, b4dc0ffee, v4.9.131, etc. - choice: name: TARGET_MACHINE choices: - 'juno' - 'x15' - 'x86_64' - 'i386' description: | [MANDATORY] Target machine. Can be juno (arm64), x15 (arm), x86_64, or i386 (32-bits). - string: name: KERNEL_CONFIG default: '' description: | [OPTIONAL] Kernel config file
File to use from arch/${ARCH}/configs/ as base kernel configuration. If ommited the default kernel config will be used:
- defconfig on Juno
- multi_v7_defconfig on X15
- x86_64_defconfig on x86_64
- i386_defconfig on i386
Note: Additional config fragments are added to all defconfigs to ensure build is functional. See the status page for more information. - extended-choice: name: TEST_SUITES description: | [OPTIONAL] Test suites to run
Any combination of the following can be chosen:
- kselftests
- libhugetlbfs
- ltp
- perf
Build artifacts will be published regardless of selection here. type: checkbox value: 'kselftests,libhugetlbfs,ltp,perf' multi-select-delimiter: ' ' - extended-choice: name: USE_KSELFTEST_RELEASE description: | [OPTIONAL] Use latest released version of Kselftests. Useful for Linux Stable branches. - mainline
type: checkbox value: 'mainline' multi-select-delimiter: ' ' - string: name: NOTIFICATION_EMAIL default: '' description: | [OPTIONAL] Notification email
If provided, a notification on the build/test results will be sent to this email. disabled: false node: docker-buster-lkft display-name: 'LKFT - Linux Developer Builder (OpenEmbedded/sumo)' wrappers: - timeout: timeout: 180 - timestamps - credentials-binding: - text: credential-id: QA_REPORTS_TOKEN variable: QA_REPORTS_TOKEN builders: - shell: | CI_MAIL_RECIPIENTS="daniel.diaz@linaro.org" for email in ${NOTIFICATION_EMAIL}; do CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},${email}" done echo "CI_MAIL_RECIPIENTS=${CI_MAIL_RECIPIENTS}" > mail_parameters - inject: properties-file: mail_parameters - 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 juno) 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_64) MACHINE=intel-corei7-64 DEVICE_TYPE=x86 [ -z "${KERNEL_CONFIG}" ] && KERNEL_CONFIG=x86_64_defconfig ;; i386) MACHINE=intel-core2-32 DEVICE_TYPE=i386 [ -z "${KERNEL_CONFIG}" ] && KERNEL_CONFIG=i386_defconfig ;; esac # Convert Git repo to Bitbake's Git URI format kernel_repo=$(echo ${KERNEL_REPO} | sed -e 's#\(ssh://\|https\?://\)#git://#') # Determine Git connection protocol to use kernel_protocol=$(echo ${KERNEL_REPO} | grep -o '.*://' | sed -e 's#://##') cat << EOF > ${WORKSPACE}/custom-kernel-info.inc.tmp KERNEL_COMMIT = "${KERNEL_SRCREV}" KERNEL_REPO = "${kernel_repo}" KERNEL_PROTOCOL = "${kernel_protocol}" KERNEL_CONFIG_aarch64 = "${KERNEL_CONFIG}" KERNEL_CONFIG_arm = "${KERNEL_CONFIG}" KERNEL_CONFIG_x86-64 = "${KERNEL_CONFIG}" KERNEL_CONFIG_x86 = "${KERNEL_CONFIG}" EOF KSELFTEST_PATH="/opt/kselftests/default-in-kernel/" [ -n "${USE_KSELFTEST_RELEASE}" ] && KSELFTEST_PATH="/opt/kselftests/mainline/" [ -z "${TEST_SUITES}" ] && TEST_SUITES="none" echo "IMAGES=rpb-console-image-lkft" > parameters echo "MANIFEST_URL=https://github.com/96boards/oe-rpb-manifest.git" >> parameters echo "MANIFEST_BRANCH=lkft/sumo" >> parameters echo "DISTRO=lkft" >> parameters echo "MACHINE=${MACHINE}" >> parameters echo "DEVICE_TYPE=${DEVICE_TYPE}" >> parameters echo "LAVA_SERVER=https://lkft.validation.linaro.org/RPC2/" >> parameters echo "LAVA_JOB_PRIORITY=79" >> parameters echo "PUB_DEST=openembedded/lkft/sumo/generic/lkft/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 echo "KSELFTEST_PATH=${KSELFTEST_PATH}" >> parameters echo "TEST_SUITES=${TEST_SUITES}" >> parameters echo "KERNEL_DESCRIBE_SUFFIX=-b${BUILD_NUMBER}" >> 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.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.sh publishers: - groovy-postbuild: script: !include-raw: - rpb-openembedded/postbuild.groovy - openembedded-lkft/qareports.groovy - openembedded-lkft/postbuild.groovy - email-ext: recipients: '${CI_MAIL_RECIPIENTS}' matrix-trigger: only-configurations subject: '[CI] Developer/${KERNEL_DESCRIBE}: ${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 describe: ${KERNEL_DESCRIBE} Git commit: ${KERNEL_COMMIT} Errors: ${BUILD_LOG_REGEX, regex="^ERROR:.* ", linesBefore=0, linesAfter=0, showTruncatedLines=false}