Generate our CROSSTOOL
I want to add a second cortex-m4f one, which is mostly the same, and not
have to maintain two of them. Actually doing that is coming in a
separate change.
Change-Id: I6e985de31b7741a7aa27a1d221d28623192f0a08
diff --git a/tools/cpp/BUILD b/tools/cpp/BUILD
index 3bee68e..9f6bb19 100644
--- a/tools/cpp/BUILD
+++ b/tools/cpp/BUILD
@@ -81,6 +81,7 @@
filegroup(
name = "clang_3p6_compiler_files",
srcs = [
+ "flags_compiler_inputs",
"//tools/cpp/clang_3p6:clang",
"//tools/cpp/clang_3p6:ld",
"@clang_3p6_repo//:compiler_components",
@@ -197,7 +198,7 @@
name = "cc-compiler-cortex-m4f",
all_files = ":empty",
compiler_files = ":empty",
- cpu = "cortex-m4",
+ cpu = "cortex-m4f",
dwp_files = ":empty",
dynamic_runtime_libs = [":empty"],
linker_files = "//motors/core:linkerscript",
@@ -206,3 +207,12 @@
strip_files = ":empty",
supports_param_files = 0,
)
+
+py_binary(
+ name = "gen_crosstool",
+ srcs = ["gen_crosstool.py"],
+ main = "gen_crosstool.py",
+ deps = [
+ "//third_party/bazel:crosstool_config_proto_py",
+ ],
+)