Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
| 3 | filegroup( |
| 4 | name = 'gcc', |
| 5 | srcs = [ |
Brian Silverman | b2215d0 | 2015-11-23 19:10:15 -0500 | [diff] [blame^] | 6 | 'usr/bin/arm-frc-linux-gnueabi-gcc', |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 7 | ], |
| 8 | ) |
| 9 | |
| 10 | filegroup( |
| 11 | name = 'ar', |
| 12 | srcs = [ |
| 13 | 'usr/bin/arm-frc-linux-gnueabi-ar', |
| 14 | ], |
| 15 | ) |
| 16 | |
| 17 | filegroup( |
Brian Silverman | b2215d0 | 2015-11-23 19:10:15 -0500 | [diff] [blame^] | 18 | name = 'as', |
| 19 | srcs = [ |
| 20 | 'usr/bin/arm-frc-linux-gnueabi-as', |
| 21 | ], |
| 22 | ) |
| 23 | |
| 24 | filegroup( |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 25 | name = 'ld', |
| 26 | srcs = [ |
| 27 | 'usr/bin/arm-frc-linux-gnueabi-ld', |
| 28 | ], |
| 29 | ) |
| 30 | |
| 31 | filegroup( |
| 32 | name = 'nm', |
| 33 | srcs = [ |
| 34 | 'usr/bin/arm-frc-linux-gnueabi-nm', |
| 35 | ], |
| 36 | ) |
| 37 | |
| 38 | filegroup( |
| 39 | name = 'objcopy', |
| 40 | srcs = [ |
| 41 | 'usr/bin/arm-frc-linux-gnueabi-objcopy', |
| 42 | ], |
| 43 | ) |
| 44 | |
| 45 | filegroup( |
| 46 | name = 'objdump', |
| 47 | srcs = [ |
| 48 | 'usr/bin/arm-frc-linux-gnueabi-objdump', |
| 49 | ], |
| 50 | ) |
| 51 | |
| 52 | filegroup( |
| 53 | name = 'strip', |
| 54 | srcs = [ |
| 55 | 'usr/bin/arm-frc-linux-gnueabi-strip', |
| 56 | ], |
| 57 | ) |
| 58 | |
| 59 | filegroup( |
| 60 | name = 'compiler_pieces', |
| 61 | srcs = glob([ |
| 62 | 'usr/bin/**/*', |
| 63 | 'usr/include/**/*', |
| 64 | 'usr/lib/**/*', |
Brian Silverman | b2215d0 | 2015-11-23 19:10:15 -0500 | [diff] [blame^] | 65 | 'usr/arm-frc-linux-gnueabi/**/*', |
| 66 | 'usr/lib/x86_64-linux-gnu/gcc/**/*', |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 67 | ]), |
| 68 | ) |
| 69 | |
| 70 | filegroup( |
| 71 | name = 'compiler_components', |
| 72 | srcs = [ |
| 73 | ':gcc', |
| 74 | ':ar', |
Brian Silverman | b2215d0 | 2015-11-23 19:10:15 -0500 | [diff] [blame^] | 75 | ':as', |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 76 | ':ld', |
| 77 | ':nm', |
| 78 | ':objcopy', |
| 79 | ':objdump', |
| 80 | ':strip', |
| 81 | ], |
| 82 | ) |
| 83 | |
| 84 | cc_library( |
| 85 | name = 'librt', |
| 86 | srcs = [ |
| 87 | 'usr/arm-frc-linux-gnueabi/usr/lib/librt.so' |
| 88 | ], |
| 89 | ) |
| 90 | |
| 91 | cc_library( |
| 92 | name = 'libdl', |
| 93 | srcs = [ |
| 94 | 'usr/arm-frc-linux-gnueabi/usr/lib/libdl.so' |
| 95 | ], |
| 96 | ) |
| 97 | |
| 98 | cc_library( |
| 99 | name = 'libm', |
| 100 | srcs = [ |
| 101 | 'usr/arm-frc-linux-gnueabi/usr/lib/libm.so' |
| 102 | ], |
| 103 | ) |
| 104 | |
| 105 | cc_library( |
| 106 | name = 'libpthread', |
| 107 | ) |
| 108 | |