blob: ab9f2398bced93fc5cf057879f53b657a9d7a66a [file] [log] [blame]
Brian Silverman8b638692017-06-26 23:10:26 -07001cc_binary(
2 name = 'medium_salsa.elf',
3 srcs = [
4 'medium_salsa.cc',
5 ],
6 deps = [
7 ':util',
8 '//motors/core',
9 '//motors/usb',
10 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -070011 restricted_to = ['//tools:cortex-m4f'],
Brian Silverman8b638692017-06-26 23:10:26 -070012)
13
14genrule(
15 name = 'medium_salsa',
16 srcs = [
17 'medium_salsa.elf',
18 ],
19 outs = [
20 'medium_salsa.hex',
21 ],
22 cmd = '$(OBJCOPY) -O ihex $< $@',
23 executable = True,
24 output_to_bindir = True,
Austin Schuh9d92e6b2017-10-17 01:19:38 -070025 restricted_to = ['//tools:cortex-m4f'],
Brian Silverman8b638692017-06-26 23:10:26 -070026)
27
28cc_library(
29 name = 'util',
30 hdrs = [
31 'util.h',
32 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -070033 restricted_to = ['//tools:cortex-m4f'],
Brian Silverman8b638692017-06-26 23:10:26 -070034)