Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
| 3 | filegroup( |
| 4 | name = "gcc", |
| 5 | srcs = [ |
| 6 | "bin/arm-none-eabi-gcc", |
James Kuszmaul | ef420da | 2023-12-27 12:02:15 -0800 | [diff] [blame] | 7 | ":compiler_pieces", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 8 | ], |
| 9 | ) |
| 10 | |
| 11 | filegroup( |
| 12 | name = "ar", |
| 13 | srcs = [ |
| 14 | "bin/arm-none-eabi-ar", |
| 15 | ], |
| 16 | ) |
| 17 | |
| 18 | filegroup( |
| 19 | name = "ld", |
| 20 | srcs = [ |
| 21 | "bin/arm-none-eabi-ld", |
| 22 | ], |
| 23 | ) |
| 24 | |
| 25 | filegroup( |
| 26 | name = "nm", |
| 27 | srcs = [ |
| 28 | "bin/arm-none-eabi-nm", |
| 29 | ], |
| 30 | ) |
| 31 | |
| 32 | filegroup( |
| 33 | name = "objcopy", |
| 34 | srcs = [ |
| 35 | "bin/arm-none-eabi-objcopy", |
| 36 | ], |
| 37 | ) |
| 38 | |
| 39 | filegroup( |
| 40 | name = "objdump", |
| 41 | srcs = [ |
| 42 | "bin/arm-none-eabi-objdump", |
| 43 | ], |
| 44 | ) |
| 45 | |
| 46 | filegroup( |
| 47 | name = "strip", |
| 48 | srcs = [ |
| 49 | "bin/arm-none-eabi-strip", |
| 50 | ], |
| 51 | ) |
| 52 | |
| 53 | filegroup( |
| 54 | name = "as", |
| 55 | srcs = [ |
| 56 | "bin/arm-none-eabi-as", |
| 57 | ], |
| 58 | ) |
| 59 | |
| 60 | filegroup( |
| 61 | name = "compiler_pieces", |
| 62 | srcs = glob([ |
| 63 | "arm-none-eabi/**", |
| 64 | "lib/gcc/arm-none-eabi/**", |
James Kuszmaul | ef420da | 2023-12-27 12:02:15 -0800 | [diff] [blame] | 65 | "libexec/gcc/arm-none-eabi/**", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 66 | "include/**", |
| 67 | ]), |
| 68 | ) |
| 69 | |
| 70 | filegroup( |
| 71 | name = "compiler_components", |
| 72 | srcs = [ |
| 73 | ":ar", |
| 74 | ":as", |
| 75 | ":gcc", |
| 76 | ":ld", |
| 77 | ":nm", |
| 78 | ":objcopy", |
| 79 | ":objdump", |
| 80 | ":strip", |
| 81 | ], |
| 82 | ) |