Get all our roborio tools loading downloaded .sos

This is the last piece to make `bazel build --cpu=roborio //...` work on
a barebones Stretch system.

Change-Id: I87b8737ee479dd16c9421f81a42c5ecf6413f822
diff --git a/debian/BUILD b/debian/BUILD
index aa1b85f..a052657 100644
--- a/debian/BUILD
+++ b/debian/BUILD
@@ -32,6 +32,10 @@
     ":matplotlib.bzl",
     matplotlib_debs = "files",
 )
+load(
+    ":arm_frc_gnueabi_deps.bzl",
+    arm_frc_gnueabi_deps_debs = "files",
+)
 load("//debian:packages.bzl", "download_packages", "generate_deb_tarball")
 
 filegroup(
@@ -143,6 +147,23 @@
     ],
 )
 
+# This list was obtained by manually looking at the output from:
+# find bazel-out/../../../external/arm_frc_linux_gnueabi_repo/ -executable -type f -exec ldd {} + | sed 's/=>.*//g' | sort -u
+download_packages(
+    name = "download_arm_frc_gnueabi_deps",
+    packages = [
+        "libexpat1",
+        "libgmp10",
+        "libisl10",
+        "liblzma5",
+        "libmpc3",
+        "libmpfr4",
+        "libncurses5",
+        "libtinfo5",
+        "zlib1g",
+    ],
+)
+
 generate_deb_tarball(
     name = "python",
     files = python_debs,
@@ -182,3 +203,8 @@
     name = "matplotlib",
     files = matplotlib_debs,
 )
+
+generate_deb_tarball(
+    name = "arm_frc_gnueabi_deps",
+    files = arm_frc_gnueabi_deps_debs,
+)
diff --git a/debian/arm_frc_gnueabi_deps.BUILD b/debian/arm_frc_gnueabi_deps.BUILD
new file mode 100644
index 0000000..8d1034d
--- /dev/null
+++ b/debian/arm_frc_gnueabi_deps.BUILD
@@ -0,0 +1,8 @@
+filegroup(
+    name = "arm_frc_gnueabi_deps",
+    srcs = glob([
+        "lib/x86_64-linux-gnu/*.so*",
+        "usr/lib/x86_64-linux-gnu/*.so*",
+    ]),
+    visibility = ["@arm_frc_linux_gnueabi_repo//:__pkg__"],
+)
diff --git a/debian/arm_frc_gnueabi_deps.bzl b/debian/arm_frc_gnueabi_deps.bzl
new file mode 100644
index 0000000..69a568e
--- /dev/null
+++ b/debian/arm_frc_gnueabi_deps.bzl
@@ -0,0 +1,9 @@
+files = {
+    "libexpat1_2.1.0-6+deb8u4_amd64.deb": "de7979297d0298271d71b4554772ba4da60ba6895ed86ca8fc9c1159c58913e4",
+    "libgmp10_6.0.0+dfsg-6_amd64.deb": "155a31b0f716aa3dcd7ee68e9bd57e0b76a6b31f4e41fb2d953e986315437082",
+    "libisl10_0.12.2-2_amd64.deb": "5a091cf30221e183d319f4906a746043be7220061f3b742b2ad958ee79ac01f7",
+    "libmpc3_1.0.2-1_amd64.deb": "0a252dcf89843ee8b402fd226c8fb552d69c82c7013a28e335ba36878468d959",
+    "libmpfr4_3.1.2-2_amd64.deb": "1b6ef16024e7850c4f2d47dbe06cba1143ac36d5584db515f63d5fbd873e3eb2",
+    "libncurses5_5.9+20140913-1+deb8u3_amd64.deb": "529417741277e91ed343e1e01aa68a0e4bca33b1fee5bdfb19093634b21ed0c5",
+    "libtinfo5_5.9+20140913-1+deb8u3_amd64.deb": "36a0f120da15f82c0c729535ac48d95e126c5d7fc2c4aceb94bf27ced5a4cecc",
+}