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 <hepler@google.com>
Commit-Queue: Adam MacBeth <amacbeth@google.com>
diff --git a/pw_tls_client/BUILD.gn b/pw_tls_client/BUILD.gn
index 4c22319..41a4745 100644
--- a/pw_tls_client/BUILD.gn
+++ b/pw_tls_client/BUILD.gn
@@ -85,7 +85,7 @@
# 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 @@
# 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 6fa8f3a..78c9cf0 100644
--- a/pw_tls_client/docs.rst
+++ b/pw_tls_client/docs.rst
@@ -63,8 +63,8 @@
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