control applying of no debug config
cover control applying of no debug config
1. We apply no debug fragment by default.
2. User may want to switch on xenomai debug explicitly.
Hongzhan Chen (2):
recipes-kernel/linux: control appyling of no debug config fragment Add kas option for swithing on xenomai debug
README.md | 5 +++++ opt-debug.yml | 19 +++++++++++++++++++ recipes-kernel/linux/linux-xenomai.inc | 2 ++ 3 files changed, 26 insertions(+) create mode 100644 opt-debug.yml
Signature · 1 line
2.17.1
PATCH 1/2 recipes-kernel/linux: control appyling of no debug config fragment
By default, nodbg config fragment would be applied.
--- recipes-kernel/linux/linux-xenomai.inc | 2 ++ 1 file changed, 2 insertions(+)
recipes-kernel/linux/linux-xenomai.inc +2 -0
@@ -12,8 +12,10 @@ require recipes-kernel/linux/linux-custom.inc KERNEL_DEFCONFIG ?= "${DISTRO_ARCH}_defconfig" +XENOMAI_DEBUG ?= "0" SRC_URI += "file://${KERNEL_DEFCONFIG}" +SRC_URI += "${@'file://common_nodbg.cfg' if d.getVar('XENOMAI_DEBUG') == '0' else ''}" DEPENDS += "xenomai-kernel-source" KBUILD_DEPENDS += "xenomai-kernel-source"
Signature · 1 line
2.17.1
PATCH 2/2 Add kas option for swithing on xenomai debug
In reply to Hongzhan ChenXenomai related debug that may influence performance is switched off by default.
--- README.md | 5 +++++ opt-debug.yml | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 opt-debug.yml
README.md +5 -0
@@ -30,6 +30,11 @@ The QEMU ARM64 target is selected by `... kas.yml:board-qemu-arm64.yml` and started via `start-qemu.sh arm64`. Make sure to have `qemu-aarch64-system` installed. +Xenomai related debug is switched off by default. But you still can switch it +on like this: + + kas-container build kas.yml:board-qemu-amd64.yml:opt-debug.yml + ### Physical Targets This repository contains recipes for x86 (`board-x86-64-efi.yml`),
opt-debug.yml new file +19 -0
@@ -0,0 +1,19 @@ +# +# Xenomai Real-Time System +# +# Copyright (C) 2021 Intel Corporation +# +# Authors: +# Hongzhan Chen <[email protected]> +# +# SPDX-License-Identifier: MIT +# + +header: + version: 10 + +# do not apply no debug kernel config fragment + +local_conf_header: + xenomai-debug: | + XENOMAI_DEBUG = "1"
Signature · 1 line
2.17.1
Re: [xenomai-image 2/2] Add kas option for swithing on xenomai debug
Quoted 42 lines · Hongzhan Chen via Xenomai
Xenomai related debug that may influence performance is switched off by default.
Signed-off-by Hongzhan Chen <[email protected]>--- README.md | 5 +++++ opt-debug.yml | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 opt-debug.ymlREADME.md +5
-0@@ -30,6 +30,11 @@ The QEMU ARM64 target is selected by `... kas.yml:board-qemu-arm64.yml` and started via `start-qemu.sh arm64`. Make sure to have `qemu-aarch64-system` installed. +Xenomai related debug is switched off by default. But you still can switch it +on like this: + + kas-container build kas.yml:board-qemu-amd64.yml:opt-debug.yml + ### Physical Targets This repository contains recipes for x86 (`board-x86-64-efi.yml`),opt-debug.yml new file +9
-0@@ -0,0 +1,19 @@ +# +# Xenomai Real-Time System +# +# Copyright (C) 2021 Intel Corporation +# +# Authors: +# Hongzhan Chen <[email protected]> +# +# SPDX-License-Identifier: MIT
opt-debug.yml line 19
Quoted 10 lines
opt-debug.yml new file +10
-0+# + +header: + version: 10 + +# do not apply no debug kernel config fragment + +local_conf_header: + xenomai-debug: | + XENOMAI_DEBUG = "1"
The two patches are fine, but we are now missing :opt-debug.yml in the CI jobs (ci/gitlab-ci-base.yml -> .build:).
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux