- Toolchain: arm-rtems4.11-gcc from RTEMS Source Builder, branch 4.11
On WORKSPACE
add this for linux:
http_archive(
name = "arm_rtems",
strip_prefix = "rules_arm_rtems-master",
url = "https://github.com/bsail/rules_arm_rtems/archive/master.zip",
)
http_archive(
name = "com_arm_developer_toolchain_gcc_rtems",
strip_prefix = "arm-rtems4.11",
url = "<your gcc binutils url>",
)
Generates a .bin file
load("@arm_rtems//tools/arm_compiler:raw_binary.bzl", "raw_binary_rtems")
raw_binary_rtems(
name = "my_bin",
src = ":binary"
)
Generates a .hex file
load("@arm_rtems//tools/arm_compiler:raw_binary.bzl", "hex_binary_rtems")
hex_binary_rtems(
name = "my_hex",
src = ":binary"
)