Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 1 | load(":toolchain_config.bzl", "cc_toolchain_config") |
| 2 | |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 3 | package(default_visibility = ["//visibility:public"]) |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 4 | |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 5 | [cc_toolchain_config( |
| 6 | name = "{}_toolchain_config".format(cpu), |
| 7 | cpu = cpu, |
| 8 | ) for cpu in |
| 9 | ["armeabi-v7a", "armhf-debian", "cortex-m4f", "cortex-m4f-k22", "k8", "roborio"] |
| 10 | ] |
| 11 | |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 12 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 13 | name = "empty_main", |
| 14 | srcs = ["empty_main.c"], |
Brian Silverman | 63889f9 | 2015-11-27 01:33:56 -0500 | [diff] [blame] | 15 | ) |
| 16 | |
| 17 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 18 | name = "malloc", |
| 19 | deps = select({ |
| 20 | "//tools:has_asan": [], |
| 21 | "//tools:has_tsan": [], |
| 22 | "//tools:cpu_cortex_m4f": [], |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 23 | "//tools:cpu_cortex_m4f_k22": [], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 24 | "//conditions:default": ["//third_party/gperftools:tcmalloc"], |
| 25 | }), |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 26 | ) |
| 27 | |
| 28 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 29 | name = "stl", |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 30 | ) |
| 31 | |
| 32 | filegroup( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 33 | name = "empty", |
| 34 | srcs = [], |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 35 | ) |
| 36 | |
Brian Silverman | b200c17 | 2017-01-02 17:35:35 -0800 | [diff] [blame] | 37 | # This is the entry point for --crosstool_top. |
| 38 | cc_toolchain_suite( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 39 | name = "toolchain", |
| 40 | toolchains = { |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 41 | "k8": ":cc-compiler-k8", |
| 42 | "roborio": ":cc-compiler-roborio", |
| 43 | "armhf-debian": "cc-compiler-armhf-debian", |
| 44 | "cortex-m4f": "cc-compiler-cortex-m4f", |
| 45 | "cortex-m4f-k22": "cc-compiler-cortex-m4f-k22", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 46 | }, |
Brian Silverman | b466eef | 2015-11-28 20:33:44 -0500 | [diff] [blame] | 47 | ) |
| 48 | |
| 49 | # Compiler inputs given by --copt etc in //tools:bazel.rc. |
| 50 | filegroup( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 51 | name = "flags_compiler_inputs", |
| 52 | srcs = select({ |
| 53 | "//tools:has_asan": [ |
| 54 | "asan-blacklist", |
| 55 | ], |
| 56 | "//tools:has_ubsan": [ |
| 57 | "ubsan-blacklist", |
| 58 | ], |
| 59 | "//conditions:default": [], |
| 60 | }), |
| 61 | ) |
| 62 | |
| 63 | filegroup( |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 64 | name = "clang_6p0_all_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 65 | srcs = [ |
| 66 | ":flags_compiler_inputs", |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 67 | "//tools/cpp/clang_6p0:as", |
| 68 | "//tools/cpp/clang_6p0:tool-wrappers", |
| 69 | "@clang_6p0_repo//:compiler_pieces", |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 70 | ], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 71 | ) |
| 72 | |
| 73 | filegroup( |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 74 | name = "clang_6p0_ar_files", |
| 75 | srcs = [ |
| 76 | "//tools/cpp/clang_6p0:ar", |
| 77 | "@clang_6p0_repo//:compiler_pieces", |
| 78 | ], |
| 79 | ) |
| 80 | |
| 81 | filegroup( |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 82 | name = "clang_6p0_linker_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 83 | srcs = [ |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 84 | "//tools/cpp/clang_6p0:ar", |
| 85 | "//tools/cpp/clang_6p0:clang", |
| 86 | "//tools/cpp/clang_6p0:clang-symlinks", |
| 87 | "//tools/cpp/clang_6p0:ld", |
| 88 | "@clang_6p0_repo//:compiler_pieces", |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 89 | ], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 90 | ) |
| 91 | |
| 92 | filegroup( |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 93 | name = "clang_6p0_strip_files", |
Brian Silverman | 5c00e23 | 2018-08-12 02:08:32 -0700 | [diff] [blame] | 94 | srcs = [ |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 95 | "//tools/cpp/clang_6p0:strip", |
| 96 | "@clang_6p0_repo//:compiler_pieces", |
Brian Silverman | 5c00e23 | 2018-08-12 02:08:32 -0700 | [diff] [blame] | 97 | ], |
| 98 | ) |
| 99 | |
| 100 | filegroup( |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 101 | name = "clang_6p0_compiler_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 102 | srcs = [ |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 103 | "flags_compiler_inputs", |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 104 | "//tools/cpp/clang_6p0:clang", |
| 105 | "//tools/cpp/clang_6p0:ld", |
| 106 | "@clang_6p0_repo//:compiler_components", |
| 107 | "@clang_6p0_repo//:compiler_pieces", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 108 | ], |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 109 | ) |
| 110 | |
| 111 | cc_toolchain( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 112 | name = "cc-compiler-k8", |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 113 | all_files = ":clang_6p0_all_files", |
| 114 | compiler_files = ":clang_6p0_compiler_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 115 | dwp_files = ":empty", |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 116 | linker_files = ":clang_6p0_linker_files", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 117 | ar_files = ":clang_6p0_ar_files", |
| 118 | as_files = ":clang_6p0_compiler_files", |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 119 | objcopy_files = "//tools/cpp/clang_6p0:objcopy", |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 120 | strip_files = ":clang_6p0_strip_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 121 | supports_param_files = 1, |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 122 | toolchain_identifier = "k8_linux", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 123 | toolchain_config = ":k8_toolchain_config", |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 124 | ) |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 125 | |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 126 | filegroup( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 127 | name = "roborio-compiler-files", |
| 128 | srcs = [ |
| 129 | ":flags_compiler_inputs", |
| 130 | "//tools/cpp/arm-frc-linux-gnueabi:as", |
| 131 | "//tools/cpp/arm-frc-linux-gnueabi:tool-wrappers", |
| 132 | "@arm_frc_linux_gnueabi_repo//:compiler_pieces", |
| 133 | ], |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 134 | ) |
| 135 | |
| 136 | filegroup( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 137 | name = "roborio_linker_files", |
| 138 | srcs = [ |
| 139 | "//tools/cpp/arm-frc-linux-gnueabi:ar", |
| 140 | "//tools/cpp/arm-frc-linux-gnueabi:gcc", |
| 141 | "//tools/cpp/arm-frc-linux-gnueabi:ld", |
| 142 | "//tools/cpp/arm-frc-linux-gnueabi:libs", |
| 143 | "@arm_frc_linux_gnueabi_repo//:compiler_pieces", |
| 144 | ], |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 145 | ) |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 146 | |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 147 | filegroup( |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 148 | name = "roborio_ar_files", |
| 149 | srcs = [ |
| 150 | "//tools/cpp/arm-frc-linux-gnueabi:ar", |
| 151 | "@arm_frc_linux_gnueabi_repo//:compiler_pieces", |
| 152 | ], |
| 153 | ) |
| 154 | |
| 155 | filegroup( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 156 | name = "roborio_compiler_files", |
| 157 | srcs = [ |
| 158 | "//tools/cpp/arm-frc-linux-gnueabi:gcc", |
| 159 | "//tools/cpp/arm-frc-linux-gnueabi:ld", |
| 160 | "@arm_frc_linux_gnueabi_repo//:compiler_components", |
| 161 | "@arm_frc_linux_gnueabi_repo//:compiler_pieces", |
| 162 | ], |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 163 | ) |
| 164 | |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 165 | filegroup( |
| 166 | name = "roborio_strip_files", |
| 167 | srcs = [ |
| 168 | "//tools/cpp/arm-frc-linux-gnueabi:strip", |
| 169 | "@arm_frc_linux_gnueabi_repo//:compiler_pieces", |
| 170 | ], |
| 171 | ) |
| 172 | |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 173 | cc_toolchain( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 174 | name = "cc-compiler-roborio", |
| 175 | all_files = ":roborio-compiler-files", |
| 176 | compiler_files = ":roborio_compiler_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 177 | dwp_files = ":empty", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 178 | linker_files = ":roborio_linker_files", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 179 | ar_files = ":roborio_ar_files", |
| 180 | as_files = ":roborio_compiler_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 181 | objcopy_files = "//tools/cpp/arm-frc-linux-gnueabi:objcopy", |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 182 | strip_files = ":roborio_strip_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 183 | supports_param_files = 1, |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 184 | toolchain_identifier = "roborio_linux", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 185 | toolchain_config = ":roborio_toolchain_config", |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 186 | ) |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 187 | |
| 188 | filegroup( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 189 | name = "linaro-gcc-files", |
| 190 | srcs = [ |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 191 | ":clang_6p0_all_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 192 | "//tools/cpp/linaro_linux_gcc:clang-symlinks", |
| 193 | "//tools/cpp/linaro_linux_gcc:tool-wrappers", |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 194 | "@linaro_linux_gcc_repo//:compiler_pieces", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 195 | ], |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 196 | ) |
| 197 | |
| 198 | filegroup( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 199 | name = "linaro_linux_linker_files", |
| 200 | srcs = [ |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 201 | ":clang_6p0_linker_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 202 | "//tools/cpp/linaro_linux_gcc:ar", |
| 203 | "//tools/cpp/linaro_linux_gcc:clang", |
| 204 | "//tools/cpp/linaro_linux_gcc:clang-ld", |
| 205 | "//tools/cpp/linaro_linux_gcc:clang-symlinks", |
| 206 | "//tools/cpp/linaro_linux_gcc:gcc", |
| 207 | "//tools/cpp/linaro_linux_gcc:ld", |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 208 | "@linaro_linux_gcc_repo//:compiler_pieces", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 209 | ], |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 210 | ) |
| 211 | |
| 212 | filegroup( |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 213 | name = "linaro_linux_ar_files", |
| 214 | srcs = [ |
| 215 | "//tools/cpp/linaro_linux_gcc:ar", |
| 216 | "@linaro_linux_gcc_repo//:compiler_pieces", |
| 217 | ], |
| 218 | ) |
| 219 | |
| 220 | filegroup( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 221 | name = "linaro_linux_compiler_files", |
| 222 | srcs = [ |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 223 | ":clang_6p0_compiler_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 224 | "//tools/cpp/linaro_linux_gcc:as", |
| 225 | "//tools/cpp/linaro_linux_gcc:clang", |
| 226 | "//tools/cpp/linaro_linux_gcc:gcc", |
| 227 | "//tools/cpp/linaro_linux_gcc:ld", |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 228 | "@linaro_linux_gcc_repo//:compiler_pieces", |
Brian Silverman | 7a7c24d | 2018-09-01 17:49:09 -0700 | [diff] [blame] | 229 | ], |
| 230 | ) |
| 231 | |
| 232 | filegroup( |
| 233 | name = "linaro_linux_strip_files", |
| 234 | srcs = [ |
| 235 | "//tools/cpp/linaro_linux_gcc:strip", |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 236 | "@linaro_linux_gcc_repo//:compiler_pieces", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 237 | ], |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 238 | ) |
| 239 | |
| 240 | cc_toolchain( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 241 | name = "cc-compiler-armhf-debian", |
| 242 | all_files = ":linaro-gcc-files", |
| 243 | compiler_files = ":linaro_linux_compiler_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 244 | dwp_files = ":empty", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 245 | linker_files = ":linaro_linux_linker_files", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 246 | ar_files = "linaro_linux_ar_files", |
| 247 | as_files = "linaro_linux_compiler_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 248 | objcopy_files = "//tools/cpp/linaro_linux_gcc:objcopy", |
Brian Silverman | 7a7c24d | 2018-09-01 17:49:09 -0700 | [diff] [blame] | 249 | strip_files = ":linaro_linux_strip_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 250 | supports_param_files = 1, |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 251 | toolchain_identifier = "clang_linux_armhf", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 252 | toolchain_config = ":armhf-debian_toolchain_config", |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 253 | ) |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 254 | |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 255 | filegroup( |
| 256 | name = "gcc_arm_none_eabi_none_files", |
| 257 | srcs = [ |
| 258 | "//tools/cpp/gcc_arm_none_eabi:tool-wrappers", |
| 259 | "@gcc_arm_none_eabi//:compiler_pieces", |
| 260 | ], |
| 261 | ) |
| 262 | |
| 263 | filegroup( |
| 264 | name = "gcc_arm_none_eabi_compiler_files", |
| 265 | srcs = [ |
| 266 | "//tools/cpp/gcc_arm_none_eabi:as", |
| 267 | "//tools/cpp/gcc_arm_none_eabi:gcc", |
| 268 | "//tools/cpp/gcc_arm_none_eabi:ld", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 269 | "@gcc_arm_none_eabi//:compiler_pieces", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 270 | ], |
| 271 | ) |
| 272 | |
| 273 | filegroup( |
| 274 | name = "gcc_arm_none_eabi_linker_files", |
| 275 | srcs = [ |
| 276 | "//motors/core:linkerscripts", |
| 277 | "//tools/cpp/gcc_arm_none_eabi:ar", |
| 278 | "//tools/cpp/gcc_arm_none_eabi:gcc", |
| 279 | "//tools/cpp/gcc_arm_none_eabi:ld", |
| 280 | "@gcc_arm_none_eabi//:compiler_pieces", |
| 281 | ], |
| 282 | ) |
| 283 | |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 284 | filegroup( |
| 285 | name = "gcc_arm_none_eabi_ar_files", |
| 286 | srcs = [ |
| 287 | "//tools/cpp/gcc_arm_none_eabi:ar", |
| 288 | "@gcc_arm_none_eabi//:compiler_pieces", |
| 289 | ], |
| 290 | ) |
| 291 | |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 292 | cc_toolchain( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 293 | name = "cc-compiler-cortex-m4f", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 294 | all_files = ":gcc_arm_none_eabi_none_files", |
| 295 | compiler_files = ":gcc_arm_none_eabi_compiler_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 296 | dwp_files = ":empty", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 297 | linker_files = ":gcc_arm_none_eabi_linker_files", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 298 | ar_files = ":gcc_arm_none_eabi_ar_files", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 299 | objcopy_files = "//tools/cpp/gcc_arm_none_eabi:objcopy", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 300 | strip_files = "//tools/cpp/gcc_arm_none_eabi:strip", |
| 301 | supports_param_files = 1, |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 302 | toolchain_identifier = "cortex-m4f", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 303 | toolchain_config = ":cortex-m4f_toolchain_config", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 304 | ) |
| 305 | |
| 306 | cc_toolchain( |
| 307 | name = "cc-compiler-cortex-m4f-k22", |
| 308 | all_files = ":gcc_arm_none_eabi_none_files", |
| 309 | compiler_files = ":gcc_arm_none_eabi_compiler_files", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 310 | dwp_files = ":empty", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 311 | linker_files = ":gcc_arm_none_eabi_linker_files", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 312 | objcopy_files = ":empty", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 313 | strip_files = ":empty", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 314 | supports_param_files = 1, |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 315 | toolchain_identifier = "cortex-m4f-k22", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame^] | 316 | toolchain_config = ":cortex-m4f-k22_toolchain_config", |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 317 | ) |