Skip to content

Commit

Permalink
pw_tls_client: Fix typos in names
Browse files Browse the repository at this point in the history
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 <[email protected]>
Commit-Queue: Adam MacBeth <[email protected]>
  • Loading branch information
adamac authored and CQ Bot Account committed Jan 19, 2023
1 parent 5133ef1 commit 16c90ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pw_tls_client/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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",
]
}
Expand Down
4 changes: 2 additions & 2 deletions pw_tls_client/docs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16c90ac

Please sign in to comment.