aboutsummaryrefslogtreecommitdiff
path: root/targets
diff options
context:
space:
mode:
authorEwout van Bekkum <ewout@google.com>2022-03-08 12:50:25 -0800
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-03-10 20:19:46 +0000
commit5ddc01d3e728e17694d2d74303738d5b2e77ba50 (patch)
treebe0fe61862890c0cfee19e8a3a19ae43c29b924c /targets
parent2c69d78288606f43f858b37fad5aa846d5524715 (diff)
downloadpigweed-5ddc01d3e728e17694d2d74303738d5b2e77ba50.tar.gz
pw_log_string: Split out the handler facade
Splits up pw_log_string to formalize the implicit facade for the string log handler. In addition, it sets up the module so that the mhandler can be used independently from the pw_log_string backend for pw_log. This is useful when mixing tokenized and string based logging on some targets. Change-Id: I447b684079754093fbad8e311ef7564e38c74f72 Requires: pigweed-internal:24000 Requires: pigweed-internal:24020 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/87340 Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Ewout van Bekkum <ewout@google.com> Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Diffstat (limited to 'targets')
-rw-r--r--targets/default_config.BUILD5
-rw-r--r--targets/stm32f429i_disc1_stm32cube/BUILD.gn3
2 files changed, 7 insertions, 1 deletions
diff --git a/targets/default_config.BUILD b/targets/default_config.BUILD
index 1b48279ea..2ed1d01f1 100644
--- a/targets/default_config.BUILD
+++ b/targets/default_config.BUILD
@@ -20,6 +20,11 @@ label_flag(
)
label_flag(
+ name = "pw_log_string_handler_backend",
+ build_setting_default = "@pigweed//pw_log_string:handler_backend_multiplexer",
+)
+
+label_flag(
name = "pw_assert_backend",
build_setting_default = "@pigweed//pw_assert:backend_multiplexer",
)
diff --git a/targets/stm32f429i_disc1_stm32cube/BUILD.gn b/targets/stm32f429i_disc1_stm32cube/BUILD.gn
index e858774ac..818692857 100644
--- a/targets/stm32f429i_disc1_stm32cube/BUILD.gn
+++ b/targets/stm32f429i_disc1_stm32cube/BUILD.gn
@@ -71,7 +71,8 @@ pw_system_target("stm32f429i_disc1_stm32cube") {
link_deps = [ "$dir_pigweed/targets/stm32f429i_disc1_stm32cube:pre_init" ]
build_args = {
pw_log_BACKEND = dir_pw_log_tokenized
- pw_tokenizer_GLOBAL_HANDLER_WITH_PAYLOAD_BACKEND = "$dir_pw_system:log"
+ pw_tokenizer_GLOBAL_HANDLER_WITH_PAYLOAD_BACKEND =
+ "$dir_pw_system:log_backend.impl"
pw_third_party_freertos_CONFIG = "$dir_pigweed/targets/stm32f429i_disc1_stm32cube:stm32f4xx_freertos_config"
pw_third_party_freertos_PORT = "$dir_pw_third_party/freertos:arm_cm4f"
pw_sys_io_BACKEND = dir_pw_sys_io_stm32cube