From b52e4c266dcf1df4d9bd61604efbc310247b6bcd Mon Sep 17 00:00:00 2001 From: Edwin Joassart Date: Mon, 20 May 2024 14:09:30 +0200 Subject: [PATCH 1/3] minor: Turn on kernel functionalities required for Pulsar Testing pular --- .../classes/kernel-balena.bbclass | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/meta-balena-common/classes/kernel-balena.bbclass b/meta-balena-common/classes/kernel-balena.bbclass index 3da2b116d3..1a84195188 100644 --- a/meta-balena-common/classes/kernel-balena.bbclass +++ b/meta-balena-common/classes/kernel-balena.bbclass @@ -386,12 +386,24 @@ BALENA_CONFIGS[compress-kmodules] ?= " \ CONFIG_MODULE_COMPRESS_GZIP=y \ " +# +# PULSAR (https://pulsar.sh/docs/faq/kernel-requirements) +# +CONFIG_DEBUG_INFO=y +CONFIG_DEBUG_INFO_BTF=y +CONFIG_SECURITY=y +CONFIG_SECURITYFS=y +CONFIG_SECURITY_NETWORK=y +CONFIG_FUNCTION_TRACER=y +CONFIG_FTRACE_SYSCALLS=y +CONFIG_BPF_LSM=y + # # Do not include debugging info in kernel and modules # -BALENA_CONFIGS[no-debug-info] ?= " \ - CONFIG_DEBUG_INFO=n \ - " +# BALENA_CONFIGS[no-debug-info] ?= " \ +# CONFIG_DEBUG_INFO=n \1 +# " # # Support for touchscreens using generic multitouch driver From f78e98af2f49c0c7163e557ff58d466ae2b623be Mon Sep 17 00:00:00 2001 From: Edwin Joassart Date: Tue, 3 Sep 2024 11:22:35 +0200 Subject: [PATCH 2/3] Update kernel-balena.bbclass --- .../classes/kernel-balena.bbclass | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/meta-balena-common/classes/kernel-balena.bbclass b/meta-balena-common/classes/kernel-balena.bbclass index 1a84195188..366cf9f09c 100644 --- a/meta-balena-common/classes/kernel-balena.bbclass +++ b/meta-balena-common/classes/kernel-balena.bbclass @@ -389,14 +389,16 @@ BALENA_CONFIGS[compress-kmodules] ?= " \ # # PULSAR (https://pulsar.sh/docs/faq/kernel-requirements) # -CONFIG_DEBUG_INFO=y -CONFIG_DEBUG_INFO_BTF=y -CONFIG_SECURITY=y -CONFIG_SECURITYFS=y -CONFIG_SECURITY_NETWORK=y -CONFIG_FUNCTION_TRACER=y -CONFIG_FTRACE_SYSCALLS=y -CONFIG_BPF_LSM=y +BALENA_CONFIGS[pulsar] ?= " \ + CONFIG_DEBUG_INFO=y \ + CONFIG_DEBUG_INFO_BTF=y \ + CONFIG_SECURITY=y \ + CONFIG_SECURITYFS=y \ + CONFIG_SECURITY_NETWORK=y \ + CONFIG_FUNCTION_TRACER=y \ + CONFIG_FTRACE_SYSCALLS=y \ + CONFIG_BPF_LSM=y \ +" # # Do not include debugging info in kernel and modules From 7e1e8d8c6ef8fa8c2e6c5498bf9cee3306b4a7ab Mon Sep 17 00:00:00 2001 From: Edwin Joassart Date: Tue, 3 Sep 2024 11:25:02 +0200 Subject: [PATCH 3/3] Update kernel-balena.bbclass --- meta-balena-common/classes/kernel-balena.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-balena-common/classes/kernel-balena.bbclass b/meta-balena-common/classes/kernel-balena.bbclass index 366cf9f09c..381a462a5f 100644 --- a/meta-balena-common/classes/kernel-balena.bbclass +++ b/meta-balena-common/classes/kernel-balena.bbclass @@ -400,6 +400,8 @@ BALENA_CONFIGS[pulsar] ?= " \ CONFIG_BPF_LSM=y \ " +BALENA_CONFIGS:append = " pulsar" + # # Do not include debugging info in kernel and modules #