From 4b1c30d0947b49afd3b0801f242cf8ec817f8e11 Mon Sep 17 00:00:00 2001 From: Wyatt Hepler Date: Wed, 15 Dec 2021 11:22:48 -0800 Subject: 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 Reviewed-by: Carlos Chinchilla Commit-Queue: Auto-Submit --- pw_tokenizer/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pw_tokenizer') 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), -- cgit v1.2.3