Upgrade amd64 sysroot to bookworm
Check in the script too used to generate the rootfs. This makes it
easier to make changes going forwards and to add more to the rootfs.
Change-Id: I36e5a1272e6bcb8a8848b6cd2f35befc45f57273
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/compilers/amd64_debian_rootfs.BUILD b/compilers/amd64_debian_rootfs.BUILD
new file mode 100644
index 0000000..8bec407
--- /dev/null
+++ b/compilers/amd64_debian_rootfs.BUILD
@@ -0,0 +1,48 @@
+filegroup(
+ name = "sysroot_files",
+ srcs = glob(
+ # TODO(austin): Only include the base files here. Need to figure out what those are.
+ # TODO(austin): Generate that list when building the rootfs?
+ include = [
+ "include/**",
+ "lib/**",
+ "lib64/**",
+ "usr/include/**",
+ "usr/lib/**",
+ "usr/bin/**",
+ "usr/lib64/**",
+ ],
+ exclude = [
+ "usr/share/**",
+ "usr/include/thrust/**",
+ "usr/include/nv/**",
+ "usr/include/cuda/**",
+ "usr/include/cub/**",
+ "usr/bin/X11",
+ ],
+ ),
+ visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "nppi",
+ srcs = [
+ "usr/lib/x86_64-linux-gnu/libnppc.so.11",
+ "usr/lib/x86_64-linux-gnu/libnppif.so.11",
+ ],
+ hdrs = glob(
+ include = ["usr/include/nppi*.h"],
+ ),
+ visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "cudart",
+ srcs = [
+ "usr/lib/x86_64-linux-gnu/libcuda.so.1",
+ "usr/lib/x86_64-linux-gnu/libcudart.so.11.0",
+ ],
+ visibility = ["//visibility:public"],
+)
+
+# TODO(austin): lzma, gstreamer, opencv