From 16c90ac21b67533680983843cd101d692d4f4155 Mon Sep 17 00:00:00 2001 From: Adam MacBeth Date: Thu, 19 Jan 2023 23:34:01 +0000 Subject: [PATCH] pw_tls_client: Fix typos in names pw_tls_client_C_TIME_BACKEND -> pw_tls_client_TIME_BACKEND generate_buid_time_header -> generate_build_time_header Change-Id: Ia77cfea8afd4ec600d52665061419c04ff6cdc57 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126740 Reviewed-by: Wyatt Hepler Commit-Queue: Adam MacBeth --- pw_tls_client/BUILD.gn | 6 +++--- pw_tls_client/docs.rst | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pw_tls_client/BUILD.gn b/pw_tls_client/BUILD.gn index 4c223196b2..41a47455a2 100644 --- a/pw_tls_client/BUILD.gn +++ b/pw_tls_client/BUILD.gn @@ -85,7 +85,7 @@ pw_facade("time") { # The build time is obtained with a python script and put in a generated header # file. The header file is included in build_time.cc -pw_python_action("generate_buid_time_header") { +pw_python_action("generate_build_time_header") { header_output = "$target_gen_dir/$target_name/build_time.h" script = "generate_build_time_header.py" outputs = [ @@ -101,11 +101,11 @@ pw_python_action("generate_buid_time_header") { # The target provides a backend to :time that returns build time. pw_source_set("build_time") { - time_injection_outputs = get_target_outputs(":generate_buid_time_header") + time_injection_outputs = get_target_outputs(":generate_build_time_header") include_dirs = [ get_path_info(time_injection_outputs[0], "dir") ] sources = [ "build_time.cc" ] deps = [ - ":generate_buid_time_header", + ":generate_build_time_header", ":time.facade", ] } diff --git a/pw_tls_client/docs.rst b/pw_tls_client/docs.rst index 6fa8f3ab24..78c9cf0f21 100644 --- a/pw_tls_client/docs.rst +++ b/pw_tls_client/docs.rst @@ -63,8 +63,8 @@ to the TLS library in use. However, common TLS libraires, such as BoringSSL and MbedTLS, support the use of C APIs ``time()`` and ``getimtofday()`` for obtaining date time. To accomodate the use of these libraries, a facade target ``pw_tls_client:time`` is added that wraps these APIs. For GN builds, -specify the backend target with variable ``pw_tls_client_C_TIME_BACKEND``. -``pw_tls_client_C_TIME_BACKEND`` defaults to the ``pw_tls_client::build_time`` +specify the backend target with variable ``pw_tls_client_TIME_BACKEND``. +``pw_tls_client_TIME_BACKEND`` defaults to the ``pw_tls_client::build_time`` backend that returns build time. If downstream project chooses to use other TLS libraires that handle time source