Skip to content

Commit

Permalink
container-runtime-csv: add CONTAINER_CSV_LIB_PATH
Browse files Browse the repository at this point in the history
The CONTAINER_CSV_LIB_PATH variable that enables the change of the library path.
This is to match the changes in OE4T#1194
and use the pass-through tree for libraries that need to be provided from the NVIDIA prebuilt packages.

Signed-off-by: Pablo Rodriguez Quesada <pablo.aarch64@gmail.com>
  • Loading branch information
paroque28 committed Jul 25, 2024
1 parent 5dff612 commit 3b92588
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 1 deletion.
10 changes: 9 additions & 1 deletion classes/container-runtime-csv.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ python populate_container_csv() {
else:
bb.warn("Unrecognized file type for container CSV: {}".format(entry))
continue
csvlines.append("{}, /{}".format(csvtype, entry))
entry = "/" + entry
# CONTAINER_CSV_LIB_PATH can be set to /usr/lib/aarch64-linux-gnu/ to avoid glibc version mismatch
# See the l4t.csv file at https://github.com/OE4T/meta-tegra/pull/1194
# It's done differently because in this version of the code the csv file is generated and not statically defined
custom_lib_path = d.getVar('CONTAINER_CSV_LIB_PATH')
if custom_lib_path:
if entry.startswith('/usr/lib/') and not entry.startswith(custom_lib_path):
entry = entry.replace('/usr/lib/', custom_lib_path)
csvlines.append("{}, {}".format(csvtype, entry))

os.chdir(oldcwd)
csvfiledir = os.path.join(root, d.getVar('sysconfdir')[1:], 'nvidia-container-runtime',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ TEGRA_PLUGINS:tegra = "tegra-libraries-multimedia-v4l"
RRECOMMENDS:libv4l += "${TEGRA_PLUGINS}"

CONTAINER_CSV_BASENAME = "libv4l"
CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"
CONTAINER_CSV_FILES = "${libdir}/*.so* ${libdir}/libv4l/ov* ${libdir}/libv4l/*.so"
# These files aren't in nvidia host-files-for-container.d/l4t.csv and conflict with attempts
# to install v4l-utils inside the container (Invalid cross-device link)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ do_install() {
rm -f ${D}${libdir}/gstreamer-1.0/libgstnvvidconv*
}

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/*.so* ${libdir}/gstreamer-1.0/*.so*"

FILES_SOLIBSDEV = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ inherit autotools pkgconfig gettext container-runtime-csv features_check

REQUIRED_DISTRO_FEATURES = "opengl"

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/gstreamer-1.0/*.so*"

do_configure:append() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ inherit pkgconfig container-runtime-csv features_check

REQUIRED_DISTRO_FEATURES = "opengl"

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/gstreamer-1.0/*.so*"

do_install() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ inherit pkgconfig container-runtime-csv features_check

REQUIRED_DISTRO_FEATURES = "opengl"

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/gstreamer-1.0/*.so*"

do_install() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ inherit pkgconfig container-runtime-csv features_check

REQUIRED_DISTRO_FEATURES = "opengl"

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/gstreamer-1.0/*.so*"

CFLAGS:append = " -fpic"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ inherit autotools gtk-doc gettext gobject-introspection pkgconfig container-runt

REQUIRED_DISTRO_FEATURES = "opengl"

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/*.so* ${libdir}/gstreamer-1.0/*.so*"

delete_pkg_m4_file() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ inherit autotools gtk-doc gettext pkgconfig container-runtime-csv features_check

REQUIRED_DISTRO_FEATURES = "opengl"

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/gstreamer-1.0/*.so*"

PACKAGES_DYNAMIC = "^${PN}-.*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ S = "${WORKDIR}/gst-nvtee"

inherit pkgconfig container-runtime-csv

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/gstreamer-1.0/*.so*"

do_install() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ inherit pkgconfig container-runtime-csv features_check

REQUIRED_DISTRO_FEATURES = "opengl"

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/gstreamer-1.0/*.so*"

do_install() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ inherit pkgconfig container-runtime-csv features_check

REQUIRED_DISTRO_FEATURES = "opengl"

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/gstreamer-1.0/*.so*"

do_install() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ inherit gettext pkgconfig container-runtime-csv features_check

REQUIRED_DISTRO_FEATURES = "opengl"

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/gstreamer-1.0/*.so*"

copy_headers() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ S = "${WORKDIR}/gst-plugins-nv-video-sinks"

inherit gettext pkgconfig container-runtime-csv cuda features_check

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/gstreamer-1.0/*.so*"

EXTRA_OEMAKE = "CUDA_VER=${CUDA_VERSION}"
Expand Down
1 change: 1 addition & 0 deletions recipes-multimedia/libv4l2/libv4l2-minimal_1.18.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ do_install:append:tegra() {
}

CONTAINER_CSV_BASENAME = "libv4l"
CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"
CONTAINER_CSV_FILES = "${libdir}/*.so* ${libdir}/libv4l/ov* ${libdir}/libv4l/*.so"

PACKAGES =+ "libv4l libv4l-dev"
Expand Down
2 changes: 2 additions & 0 deletions recipes-multimedia/libv4l2/libv4l2-nvvidconv-wrapper_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ inherit cmake pkgconfig container-runtime-csv features_check

REQUIRED_DISTRO_FEATURES = "opengl"

CONTAINER_CSV_LIB_PATH = "/usr/lib/aarch64-linux-gnu/"

CONTAINER_CSV_FILES = "${libdir}/libv4l/plugins/*.so*"

FILES:${PN} = "${libdir}/libv4l/plugins/*${SOLIBSDEV}"
Expand Down

0 comments on commit 3b92588

Please sign in to comment.