diff options
author | Wyatt Hepler <hepler@google.com> | 2021-12-15 11:22:48 -0800 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2021-12-15 20:04:36 +0000 |
commit | 4b1c30d0947b49afd3b0801f242cf8ec817f8e11 (patch) | |
tree | 1c88539f5fdf0429b4152faf2f18336da8f5cdd5 /pw_tokenizer | |
parent | 30a164f15de8d69c8767f69824bbbb231d83e36d (diff) | |
download | pigweed-4b1c30d0947b49afd3b0801f242cf8ec817f8e11.tar.gz |
pw_tokenizer: Add linker script section for FreeRTOS
pw_tokenizer automatically adds linker script sections based on GN's
current_os variable. "freertos" was recently added as a possible value
in the Pigweed build, so add the linker script section if compiling for
FreeRTOS.
Instead of checking the target OS, the build should check what type of
executable the target produces.
Change-Id: Ia1377cfe378cf25ffbd27260ae2d60ed575f1c26
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/74520
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Carlos Chinchilla <cachinchilla@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Diffstat (limited to 'pw_tokenizer')
-rw-r--r-- | pw_tokenizer/BUILD.gn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pw_tokenizer/BUILD.gn b/pw_tokenizer/BUILD.gn index d5a4fa320..269419edf 100644 --- a/pw_tokenizer/BUILD.gn +++ b/pw_tokenizer/BUILD.gn @@ -41,7 +41,7 @@ config("linker_script") { # Automatically add the tokenizer linker sections when cross-compiling or # building for Linux. macOS and Windows executables are not supported. - if (current_os == "") { + if (current_os == "" || current_os == "freertos") { ldflags = [ "-T", rebase_path("pw_tokenizer_linker_sections.ld", root_build_dir), |