80 Commits

Author SHA1 Message Date
Khem Raj
206ec910d5 opencv: Adjust bbappend for 4.11 upgrade from meta-oe
Drop backport patch present in 4.11 already

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-05 01:45:29 -08:00
Kurt Kiefer
a15cc4ebf0 libusbgx-config: l4t-gadget-config-setup: handle kernel module bridge as built-in
Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-10-29 12:03:41 -07:00
Matt Madison
383596fb08 external/openembedded-layer: update tensorrt-plugins to 10.3.0
* Switch git:// to gitsm:// to pick up the ONNX submodule
* Refresh build patch, dropping some long-obsolete changes
* Replace second build patch with the correct fix via CUDAFLAGS setting

Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
e0b75858e5 external/openembedded-layer: add CUDA 12.6 build patch to opencv
Signed-off-by: Matt Madison <matt@madison.systems>
2024-10-26 08:15:33 -07:00
Matt Madison
d01401058a external/openembedded-layer: update opencv bbappend version to 4.10
Signed-off-by: Matt Madison <matt@madison.systems>
2024-09-24 04:04:13 -07:00
Matt Madison
b9f1c32608 external: clean up patch headers
Signed-off-by: Matt Madison <matt@madison.systems>
2024-06-13 05:51:45 -07:00
Matt Madison
427c8002a8 external/openembedded-layer: libusbgx: update runtime dependencies
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-30 12:13:39 -07:00
Matt Madison
2e5eb0a18d external/openembedded-layer: drop obsolete patch for v4l-utils
Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-28 06:54:03 -07:00
Matt Madison
614c2510a9 meta: update all recipes for the UNPACKDIR transition
* No more 'S = "${WORKDIR}"', which is not permitted
* All ${WORKDIR} references for local files updated to ${UNPACKDIR}
* Custom do_unpack for the recipes that are in the public_sources
  archive in the BSP adjusted for the new unpacking approach
* Some SRC_URIs updated with 'destsuffix=' parameters where needed

Signed-off-by: Matt Madison <matt@madison.systems>
2024-05-28 06:53:54 -07:00
Kurt Kiefer
a15bc835e5 external/openembedded-layer: tensorrt-plugins: use CMAKE_CXX_STANDARD 17
Previously the 17 standard was needed just for some plugins, and leaving
14 was fine for the rest of the project. With recent changes to absl, now
we need the 17 standard for other parts as well.

This change builds on the do_configure:prepend sed fixup to include the
CMakeLists.txt CMAKE_CXX_STANDARD being forced in a couple more places.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-04-29 13:30:42 -07:00
Timo Schuster
52db02b4aa Fix override syntax error in libglvnd_%.bbappend
Signed-off-by: Timo Schuster <timo.schuster@leica-microsystems.com>
2024-03-21 07:27:50 -05:00
Matt Madison
dab7e5b155 external/openembedded-layer: update opencv bbappend to 4.9
* Refresh build patches
* Drop backported patches for Python bindings that are now in 4.9

Signed-off-by: Matt Madison <matt@madison.systems>
2024-02-14 03:20:46 -08:00
Matt Madison
7833745672 external/openembedded-layer: update v4l-utils bbappend and patches
for the v4l-utils switch to meson that came in with the latest update
in meta-oe.

Signed-off-by: Matt Madison <matt@madison.systems>
2024-01-20 06:18:12 -08:00
Kurt Kiefer
563552ce02 external/openembedded-layer: tensorrt-plugins: fixes for new protobuf
Due to updates to protobuf and gcc, make some updates to the build. Namely,
this means using C++17 as required by protobuf and making sure we link to
the system protobuf.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
2024-01-08 09:53:44 -08:00
Khem Raj
45bf0e8e98 v4l-utils: Use RTLD_DI_ORIGIN when its available
Musl does not provide it. Therefore ensure its only used when its found
by configure

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-17 08:01:45 -08:00
Matt Madison
524bf0c79c Revert "external/openembedded-layer: opencv: disable dnn module"
This reverts commit 35dab0f604.

Commit 225ce6a14a8110ab6b573b4dc9f5297a03d17e0f in meta-oe added in
a patch for opencv that fixes the C++11/C++17 protobuf issue for the
dnn module, so we can put dnn back in the PACKAGECONFIG.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-10-16 08:35:14 -07:00
Matt Madison
35dab0f604 external/openembedded-layer: opencv: disable dnn module
OpenCV requires C++11 standard.  The dnn module adds
protobuf as a dependency, and the version currently
in meta-oe needs C++14.

See https://github.com/opencv/opencv/issues/23466
and https://github.com/opencv/opencv/issues/23791
for more information.

Disabling dnn for now.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-10-06 13:40:22 -07:00
Matt Madison
92d6da7c14 external/openembedded-layer: tensorrt-plugins: drop CUDA_NVCC_FLAGS
from the EXTRA_OECMAKE setting, as the cmake build there uses CUDA
language support instead of the obsolete FindCUDA module.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-23 11:14:14 -07:00
Matt Madison
b4f3d87bb3 haveged: update systemd service unit
systemd's random-seed service units/targets have changed with
recent updates, and the haveged service was causing a dependency
loop.  Disable the default dependencies, and change the WantedBy
to sysinit.target to fix this.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-20 08:37:34 -07:00
Matt Madison
7cac95de84 external/openembedded-layer: backport opencv upstream patches for CUDA
to fix issues with python interface generation for opencv cuda modules.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-07-22 09:33:23 -07:00
Jose Quaresma
8d8eee9e62 external/openembedded-layer: opencv: 4.7 -> 4.8
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
2023-07-13 08:35:51 -07:00
Matt Madison
c53edc6321 external/openembedded-layer: more fixes for opencv 4.7 build
* Update OpenCVDetectCUDA.cmake patch to prevent insertion of
  build paths into the generated opencv4.pc file
* Disable cmake build checks/regeneration so the build isn't
  regenerated during the install step, which is causing
  incorrect recompilations

Signed-off-by: Matt Madison <matt@madison.systems>
2023-03-17 12:11:30 -07:00
Matt Madison
c2c2c920ff external/openembedded-layer: update bbappend for opencv 4.7
with an additional patch to fix breakage in OpenCVDetectCUDA.cmake.

Signed-off-by: Matt Madison <matt@madison.systems>
2023-03-17 07:05:38 -07:00
Ilies CHERGUI
05ca0bc31b opencv: add missing whitespace
Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2023-02-08 03:14:00 -08:00
Ilies CHERGUI
5fc9ad10ce tensorrt-plugins: update to 8.5.2
Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2023-02-08 03:14:00 -08:00
Matt Madison
458d71ab82 external/openembedded-layer: refresh libusbgx bbappend
to account for the packaging-related changes that have gone
into the recipe in meta-oe.

Signed-off-by: Matt Madison <matt@madison.systems>
2022-12-04 03:34:19 -08:00
Matt Madison
46c1b1a714 libglvnd: updates to accommodate recipe in meta-oe
A recipe for libglvnd has landed in meta-oe with a version
newer than our copy here. We need to handle builds with and
without meta-oe in the layer set, so update to work like we
do with libv4l2/v4l-utils:

* Rename our recipe to libglvnd-tegra, restricted to tegra
  machines only.  Add appropriate PROVIDES/RPROVIDES so users
  can still reference just 'libglvnd', update it to 1.5.0 to
  match the meta-oe recipe, and fix a typo.

* Add a bbappend for libglvnd under external/openembedded-layer.
  The bbappend applies the tegra-specific build settings we need
  and makes the packages built tegra-specific.

Signed-off-by: Matt Madison <matt@madison.systems>
2022-10-31 05:53:06 -07:00
Matt Madison
a2f6e569ff external/openembedded-layer: fixups for the haveged bbappend
* Install the service unit file with correct permissions
* Move the Before= line to the [Unit] section

Signed-off-by: Matt Madison <matt@madison.systems>
2022-10-06 14:31:33 -07:00
Matt Madison
cfd4e84f3e external/openembedded-layer: correct FILES append in libusbgx-config
Signed-off-by: Matt Madison <matt@madison.systems>
2022-09-17 06:44:02 -07:00
Jose Quaresma
223b0794be libusbgx-config: make the overrides tegra specific
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
2022-09-14 09:57:50 -07:00
Jose Quaresma
8e53c8fad6 haveged: make the overrides tegra specific
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
2022-09-14 09:57:50 -07:00
Atharva Nandanwar
f0ea3a5000 container-csv.bbclass: remove the class from layer
- Removing dynamically generated container csv files for nvidia
container passthrough mechanism, as NVIDIA has moved to base l4t.csv
which includes all the container passthrough references

Signed-off-by: Atharva Nandanwar <anandanwar@sighthound.com>
2022-09-05 13:54:07 -07:00
Matt Madison
10e6c53d7d external/openembedded-layer: drop spidev-test bbappend
which is no longer needed with our kernel updated to 5.10.

Signed-off-by: Matt Madison <matt@madison.systems>
2022-09-05 13:54:07 -07:00
Matt Madison
a7caaae629 external/openembedded-layer: update tensorrt-plugins to 8.4.1
Signed-off-by: Matt Madison <matt@madison.systems>
2022-09-05 13:54:07 -07:00
Matt Madison
75d1e697c9 external/meta-python: update python3-tensorrt to 8.4.1
Signed-off-by: Matt Madison <matt@madison.systems>
2022-09-05 13:54:07 -07:00
Tim Orling
006b6da8fd haveged: reintroduce systemd service
Upstream meta-oe dropped the systemd service since it is no longer
needed in Linux kernel > 5.6. But we are still on 4.9.y so we need it.

Set PACKAGE_ARCH:tegra = "${TEGRA_PKGARCH}" so our additions are
tegra-specific.

Based on https://raw.githubusercontent.com/jirka-h/haveged/v1.9.14/init.d/service.redhat

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
2022-09-05 13:00:44 -07:00
Matt Madison
a3848bbecb external/openembedded-layer: opencv 4.5 -> 4.6
Signed-off-by: Matt Madison <matt@madison.systems>
2022-07-04 04:50:18 -07:00
Matt Madison
188ca2596d external/oe-layer: update tensorrt-plugins to 8.2
Signed-off-by: Matt Madison <matt@madison.systems>
2022-03-18 08:58:52 -07:00
Matt Madison
c15309791f external: opencv: rework config options and add dnn
With the latest update to opencv 4.5.5, builds including
CUDA now appear to require the DNN feature to enabled in
order to get the object detection module included in the
build. So make sure we enable the DNN feature for CUDA
builds.

While here, rework the bbappend to use PACKAGECONFIG to
enable CUDA support, so it can be optional even for tegra
platforms. Also make sure other changes we make use overrides,
so we don't affect non-tegra opencv builds.

Signed-off-by: Matt Madison <matt@madison.systems>
2022-01-27 05:00:25 -08:00
Matt Madison
78bca2ce9c external: v4l-utils: update bbappend
to introduce the opengl DISTRO_FEATURES check for tegra
platforms without generating warnings for non-tegra builds.

Signed-off-by: Matt Madison <matt@madison.systems>
2022-01-07 07:06:50 -08:00
Matt Madison
e09089120e libv4l2*, v4l-utils: make opengl required in DISTRO_FEATURES
Signed-off-by: Matt Madison <matt@madison.systems>
2022-01-07 06:07:20 -08:00
Matt Madison
b5482ea6f9 external/openembedded-layer: update opencv bbappend
to set OPENCV_CUDA_DETECTION_NVCC_FLAGS, which tells
the OpenCV CUDA module which host compiler to use without
generating a warning during the configure step.

Signed-off-by: Matt Madison <matt@madison.systems>
2021-12-16 10:04:11 -08:00
Matt Madison
9e1ed7f0dd external/openembedded-layer: fix tensorrt-plugins build error
The cmake files use pkg-config, so the recipe needs to
inherit the pkgconfig class.

Signed-off-by: Matt Madison <matt@madison.systems>
2021-12-13 08:40:33 -08:00
Matt Madison
620be601a7 meta: update tensorrt recipes for tegra-libraries split
Signed-off-by: Matt Madison <matt@madison.systems>
2021-10-18 13:16:21 -07:00
Matt Madison
26ba69e0b9 external: update v4l-utils runtime dependency on tegra plugins
Signed-off-by: Matt Madison <matt@madison.systems>
2021-10-18 13:16:21 -07:00
Ilies CHERGUI
549afcb00a tensorrt-plugins: fix warning fuzz detected when applying patches.
Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2021-09-29 08:18:36 -07:00
Ilies CHERGUI
3711d26034 tensorrt-plugins: fix build issues when using protobuf version 3.18.x
This is needed because of upgrade version of protobuf from 3.17.x to 3.18.x
in meta-openembedded

https://git.openembedded.org/meta-openembedded/commit/?id=d7d9597348534b9d93dd7ed8ef49fa2b5c33969d

For more details, deprecated version of SetTotalBytesLimit API was removed
in PR #8794 (https://github.com/protocolbuffers/protobuf/pull/8794)

Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2021-09-27 02:44:56 -07:00
Ilies CHERGUI
a642377541 tensorrt-plugins: add recipe
to build TensorRT Plugins from source.

Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
2021-09-25 08:59:08 -07:00
Matt Madison
118eaad252 external/openembedded-layer: update v4l-utils to match NVIDIA build
* Add patch for marking some pixel format conversions as
  device-specific, to align with NVIDIA's sources

* Remove the mplane plugin for tegra targets, since NVIDIA's build
  of libv4l2 points to an NV-specific plugins directory that includes
  only their plugins

Signed-off-by: Matt Madison <matt@madison.systems>
2021-08-28 07:46:31 -07:00
Matt Madison
971dfeb591 meta: overrides conversion cleanup
Fixups for some changes made by the conversion script:
* some occurrences of '::' and ':}'
* '_arm64.deb' -> ':arm64.deb' changes in our SRC_URIs
* some '_'-> ':' conversions in other locations that shouldn't
  have been made

Signed-off-by: Matt Madison <matt@madison.systems>
2021-08-05 13:24:40 -07:00