Skip to content

Commit

Permalink
contianer-runtime-csv: add CONTAINER_CSV_LIB_PATH variable that enabl…
Browse files Browse the repository at this point in the history
…es 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.
  • Loading branch information
paroque28 committed Jul 18, 2024
1 parent 0f91e29 commit b7989c2
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions classes/container-runtime-csv.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ python populate_container_csv() {
else:
bb.warn("Unrecognized file type for container CSV: {}".format(entry))
continue
# 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('/usr/lib/aarch64-linux-gnu/'):
entry = entry.replace('/usr/lib/', custom_lib_path)
csvlines.append("{}, /{}".format(csvtype, entry))

os.chdir(oldcwd)
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 b7989c2

Please sign in to comment.