Generate rules for linking against system libraries in the rootfs
This uses dpkg-query, objdump, and pkgconf to generate the list of files
in each package, the package dependency list, the list of shared object
files needed to link each package, and then link them all together.
The end result is that you can include "opencv4", and it does the right
thing with very minimal hand annotations in the python code.
I need to clean the script up a bit, add some comments, and split it out
so it can be shared with x86 so we can do this there.
The driving force here is that we need to upgrade all the bullseye
packages to bookworm to get them to run on the Orin...
Change-Id: I65e8c59acc6fa81e20b0c130e3fa0d144ecc5dda
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/WORKSPACE b/WORKSPACE
index 5b3bea3..8b80771 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -155,10 +155,6 @@
gtk_runtime_debs = "files",
)
load(
- "//debian:opencv_arm64.bzl",
- opencv_arm64_debs = "files",
-)
-load(
"//debian:opencv_amd64.bzl",
opencv_amd64_debs = "files",
)
@@ -218,8 +214,6 @@
generate_repositories_for_debs(gtk_runtime_debs)
-generate_repositories_for_debs(opencv_arm64_debs)
-
generate_repositories_for_debs(opencv_amd64_debs)
generate_repositories_for_debs(
@@ -462,8 +456,8 @@
http_archive(
name = "arm64_debian_sysroot",
build_file = "@//:compilers/orin_debian_rootfs.BUILD",
- sha256 = "a1d8297cebdf8dcc380afaa9703d56864f256775d4d239210d0883a9f2d009bc",
- url = "https://software.frc971.org/Build-Dependencies/2023-11-18-bookworm-arm64-nvidia-rootfs.tar.xz",
+ sha256 = "afe3061b6f1f7e4f320b141699a63b6afc3a59e522b858b1595e58f2719eb487",
+ url = "https://software.frc971.org/Build-Dependencies/2023-11-22-bookworm-arm64-nvidia-rootfs.tar.xz",
)
# Sysroot generated using //frc971/amd64/build_rootfs.py
@@ -1222,14 +1216,6 @@
url = "https://software.frc971.org/Build-Dependencies/2021-10-03_superstructure_shoot_balls.tar.gz",
)
-# OpenCV arm64 (for raspberry pi)
-http_archive(
- name = "opencv_arm64",
- build_file = "@//debian:opencv.BUILD",
- sha256 = "d284fae46ca710cf24c81ff7ace34929773466bff38f365a80371bea3b36a2ed",
- url = "https://software.frc971.org/Build-Dependencies/opencv_arm64.tar.gz",
-)
-
http_archive(
name = "opencv_k8",
build_file = "@//debian:opencv.BUILD",