diff --git a/meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/libcamera/files/0002-dcmipp-Fix-configureAwbAlgo-encapsulation-under-EVIS.patch b/meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/libcamera/files/0002-dcmipp-Fix-configureAwbAlgo-encapsulation-under-EVIS.patch new file mode 100644 index 000000000..c454b1d49 --- /dev/null +++ b/meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/libcamera/files/0002-dcmipp-Fix-configureAwbAlgo-encapsulation-under-EVIS.patch @@ -0,0 +1,33 @@ +From: Arturo Buzarra +Date: Wed, 19 Nov 2025 11:58:43 +0100 +Subject: [PATCH] dcmipp: Fix configureAwbAlgo() encapsulation under + EVISION_ALGO_ENABLED + +Awb::queueRequest() unconditionally calls configureAwbAlgo(), but it is +compiled only when EVISION_ALGO_ENABLED is defined. With EVISION_ALGO_ENABLED +disabled, this leads to an undefined symbol at runtime when loading the DCMIPP +IPA. This commit guards the call under EVISION_ALGO_ENABLED so that non-EVISION +builds no longer reference the helper. + +Signed-off-by: Arturo Buzarra +--- + src/ipa/dcmipp/algorithms/awb.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/ipa/dcmipp/algorithms/awb.cpp b/src/ipa/dcmipp/algorithms/awb.cpp +index 006ad4b8..4444ac98 100644 +--- a/src/ipa/dcmipp/algorithms/awb.cpp ++++ b/src/ipa/dcmipp/algorithms/awb.cpp +@@ -652,10 +652,12 @@ void Awb::queueRequest([[maybe_unused]] IPAContext &context, + LOG(DcmippAwb, Debug) << "Updating AwbColourConv to " << (*cconv)[0] << "..."; + } + ++#ifdef EVISION_ALGO_ENABLED + if (internal_.profileDirty && !configureAwbAlgo()) { + LOG(DcmippAwb, Error) << "Cannot reconfigure awb algorithm"; + return; + } ++#endif /* EVISION_ALGO_ENABLED */ + + /* Static config: update params_ and if applicable force config_ update now */ + const auto &customColorTemp = controls.get(controls::draft::AwbCustomColorTemperature); diff --git a/meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/libcamera/libcamera-stm32mp_0.3.0.bb b/meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/libcamera/libcamera-stm32mp_0.3.0.bb index 889a635d5..086788731 100644 --- a/meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/libcamera/libcamera-stm32mp_0.3.0.bb +++ b/meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/libcamera/libcamera-stm32mp_0.3.0.bb @@ -19,6 +19,7 @@ SRCREV = "aee16c06913422a0ac84ee3217f87a9795e3c2d9" SRC_URI += " \ file://0001-0.3.0-stm32mp-add-dcmipp-ipa.patch \ + file://0002-dcmipp-Fix-configureAwbAlgo-encapsulation-under-EVIS.patch \ " PV = "v0.3.0-stm32mp"