Add support for building code for Debian armhf
I think this will work with the Ubuntu-based distribution on the TK1
too.
Change-Id: I62350d2f7a8914fb13c421be427388c6e46c5481
diff --git a/tools/cpp/linaro_linux_gcc/BUILD b/tools/cpp/linaro_linux_gcc/BUILD
new file mode 100644
index 0000000..ad3dbb1
--- /dev/null
+++ b/tools/cpp/linaro_linux_gcc/BUILD
@@ -0,0 +1,113 @@
+package(default_visibility = ['//tools/cpp:__pkg__'])
+
+cc_library(
+ name = 'libpthread',
+ visibility = ['//visibility:public'],
+ srcs = [
+ 'clang_more_libs/libpthread.so',
+ ],
+)
+
+filegroup(
+ name = 'gcc',
+ srcs = [
+ '@linaro_linux_gcc_4.9_repo//:gcc',
+ 'arm-linux-gnueabihf-gcc',
+ ],
+)
+
+filegroup(
+ name = 'ar',
+ srcs = [
+ '@linaro_linux_gcc_4.9_repo//:ar',
+ 'arm-linux-gnueabihf-ar',
+ ],
+)
+
+filegroup(
+ name = 'ld',
+ srcs = [
+ '@linaro_linux_gcc_4.9_repo//:ld',
+ 'arm-linux-gnueabihf-ld',
+ ],
+)
+
+filegroup(
+ name = 'nm',
+ srcs = [
+ '@linaro_linux_gcc_4.9_repo//:nm',
+ 'arm-linux-gnueabihf-nm',
+ ],
+)
+
+filegroup(
+ name = 'objcopy',
+ srcs = [
+ '@linaro_linux_gcc_4.9_repo//:objcopy',
+ 'arm-linux-gnueabihf-objcopy',
+ ],
+)
+
+filegroup(
+ name = 'objdump',
+ srcs = [
+ '@linaro_linux_gcc_4.9_repo//:objdump',
+ 'arm-linux-gnueabihf-objdump',
+ ],
+)
+
+filegroup(
+ name = 'strip',
+ srcs = [
+ '@linaro_linux_gcc_4.9_repo//:strip',
+ 'arm-linux-gnueabihf-strip',
+ ],
+)
+
+filegroup(
+ name = 'as',
+ srcs = [
+ '@linaro_linux_gcc_4.9_repo//:as',
+ 'arm-linux-gnueabihf-as',
+ ],
+)
+
+filegroup(
+ name = 'clang',
+ srcs = [
+ 'clang_bin/clang',
+ ],
+)
+
+filegroup(
+ name = 'clang-ld',
+ srcs = [
+ 'clang_bin/ld',
+ ':ld',
+ ],
+)
+
+filegroup(
+ name = 'tool-wrappers',
+ srcs = [
+ ':gcc',
+ ':ar',
+ ':ld',
+ ':nm',
+ ':objcopy',
+ ':objdump',
+ ':strip',
+ ':as',
+ 'clang_bin/as',
+ ':clang',
+ ':clang-ld',
+ ],
+)
+
+filegroup(
+ name = 'clang-symlinks',
+ srcs = glob([
+ 'clang_more_libs/**',
+ 'clang_syroot/**',
+ ]),
+)