CONF: put DEBUG and trace under flags
Global flags: ST_DEBUG_TRACE if ST_DEBUG_TRACE = 1, the debug and trace are activated on all boot stage Specific boot stage debug and trace flags: ST_CMD_LINE_DEBUG_TRACE: addons for remove trace on kernel ST_UBOOT_DEBUG_TRACE: activate/deactivate silent mode on u-boot ST_TF_A_DEBUG_TRACE: activate/deactivate trace and debug on TF-A ST_OPTEE_DEBUG_TRACE: activate/deactivate trace and debug on optee Change-Id: I09a0c528fcef18f466f0e2b7b46715e2e43c8cf8 Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
This commit is contained in:
1 parent
4dfdc829f8
commit
46b422655b
6 files changed
+51
-4
No files matched your search
@@ -381,6 +381,12 @@ TOOLCHAIN_HOST_TASK_remove_pn-buildtools-tarball = " ${ST_TOOLS_FOR_SDK_PERL} "
|
||||
TOOLCHAIN_TARGET_TASK += " bash-dev libgomp-dev"
|
||||
TOOLCHAIN_TARGET_TASK_remove_pn-buildtools-tarball = " bash-dev libgomp-dev"
|
||||
|
||||
# =========================================================================
|
||||
# Debug trace
|
||||
# =========================================================================
|
||||
# acitvate/desactive the debug and trace on boot stage: tf-a, optee, u-boot and kernel
|
||||
ST_DEBUG_TRACE ?= "1"
|
||||
|
||||
# =========================================================================
|
||||
# Kernel
|
||||
# =========================================================================
|
||||
@@ -412,6 +418,7 @@ ST_KERNEL_LOADADDR ?= "0xC2000040"
|
||||
# Define the devicetree for Linux A7 examples
|
||||
LINUX_A7_EXAMPLES_DT ?= ""
|
||||
|
||||
ST_CMD_LINE_DEBUG_TRACE ?= "loglevel=1 quiet"
|
||||
# =========================================================================
|
||||
# u-boot
|
||||
# =========================================================================
|
||||
@@ -465,6 +472,7 @@ MACHINE_EXTRA_RRECOMMENDS_append_stm32mp1common = " \
|
||||
u-boot-fw-config-stm32mp \
|
||||
"
|
||||
|
||||
ST_UBOOT_DEBUG_TRACE ?= "${@bb.utils.contains('ST_DEBUG_TRACE', '1', '1', '0', d)}"
|
||||
# =========================================================================
|
||||
# trusted-firmware-a
|
||||
# =========================================================================
|
||||
@@ -497,12 +505,14 @@ TF_A_MTD_START_OFFSET_NAND ?= "0x00200000"
|
||||
TF_A_MTD_START_OFFSET_NOR ?= "0x00080000"
|
||||
TF_A_MTD_START_OFFSET_SPINAND ?= "0x00200000"
|
||||
|
||||
ST_TF_A_DEBUG_TRACE ?= "${@bb.utils.contains('ST_DEBUG_TRACE', '1', '1', '0', d)}"
|
||||
# =========================================================================
|
||||
# optee
|
||||
# =========================================================================
|
||||
# Map OPTEE configuration to device tree list
|
||||
OPTEE_CONF = "${STM32MP_DEVICETREE}"
|
||||
|
||||
ST_OPTEE_DEBUG_TRACE ?= "${@bb.utils.contains('ST_DEBUG_TRACE', '1', '1', '0', d)}"
|
||||
# =========================================================================
|
||||
# fip
|
||||
# =========================================================================
|
||||
|
||||
@@ -12,6 +12,9 @@ UBOOT_EXTLINUX_DEFAULT_LABEL ?= "OpenSTLinux"
|
||||
INITRD_SHORTNAME ??= ""
|
||||
UBOOT_EXTLINUX_INITRD ?= "${@bb.utils.contains('COMBINED_FEATURES', 'autoresize', '/${INITRD_SHORTNAME}', '', d)}"
|
||||
|
||||
UBOOT_EXTLINUX_KERNEL_ARGS ?= "rootwait rw"
|
||||
UBOOT_EXTLINUX_KERNEL_ARGS_append += " ${@bb.utils.contains('ST_DEBUG_TRACE', '1', '', '${ST_CMD_LINE_DEBUG_TRACE}', d)} "
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Configurations
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user