Update pico-sdk and bazelify it
This borrows heavily from work that Austin did to initially get this
stuff working.
Merge commit 'a1fdcd85e25a8a2b1e3ca5bc31e45bedf9e58266' into HEAD
Signed-off-by: Ravago Jones <ravagojones@gmail.com>
Change-Id: Id47d383bd5fb46664083b365890fd7bad5786c1f
diff --git a/third_party/pico-sdk/tools/pioasm/BUILD b/third_party/pico-sdk/tools/pioasm/BUILD
new file mode 100644
index 0000000..355834f
--- /dev/null
+++ b/third_party/pico-sdk/tools/pioasm/BUILD
@@ -0,0 +1,31 @@
+cc_binary(
+ name = "pioasm",
+ srcs = [
+ "ada_output.cpp",
+ "c_sdk_output.cpp",
+ "gen/lexer.cpp",
+ "gen/location.h",
+ "gen/parser.cpp",
+ "gen/parser.hpp",
+ "hex_output.cpp",
+ "main.cpp",
+ "output_format.h",
+ "pio_assembler.cpp",
+ "pio_assembler.h",
+ "pio_disassembler.cpp",
+ "pio_disassembler.h",
+ "pio_types.h",
+ "python_output.cpp",
+ ],
+ copts = [
+ "-Wno-unused-parameter",
+ "-Wno-sign-compare",
+ "-fexceptions",
+ ],
+ includes = [
+ ".",
+ "gen",
+ ],
+ target_compatible_with = ["@platforms//cpu:x86_64"],
+ visibility = ["//visibility:public"],
+)