Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
From 6914c4fd3d53c0c6ea304123bf57429bb64ec16f Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 31 Jan 2024 21:01:27 -0800
|
||||
Subject: [PATCH 1/2] media_device: Add bool return type to unlock()
|
||||
|
||||
unlock uses lockf which is marked with __attribute__
|
||||
((warn_unused_result)) and compilers warn about it and some treat
|
||||
-Wunused-result as error with -Werror turned on, It would be good to
|
||||
check if lockf failed or succeeded, however, that piece is not changed
|
||||
with this, this fixes build with clang++ 18
|
||||
|
||||
../git/src/libcamera/media_device.cpp:167:2: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
|
||||
167 | lockf(fd_.get(), F_ULOCK, 0);
|
||||
| ^~~~~ ~~~~~~~~~~~~~~~~~~~~~
|
||||
1 error generated.
|
||||
|
||||
Upstream-Status: Submitted [https://lists.libcamera.org/pipermail/libcamera-devel/2024-February/040380.html]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
include/libcamera/internal/media_device.h | 2 +-
|
||||
src/libcamera/media_device.cpp | 6 +++---
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/include/libcamera/internal/media_device.h b/include/libcamera/internal/media_device.h
|
||||
index eb8cfde4..b09dfd16 100644
|
||||
--- a/include/libcamera/internal/media_device.h
|
||||
+++ b/include/libcamera/internal/media_device.h
|
||||
@@ -33,7 +33,7 @@ public:
|
||||
bool busy() const { return acquired_; }
|
||||
|
||||
bool lock();
|
||||
- void unlock();
|
||||
+ bool unlock();
|
||||
|
||||
int populate();
|
||||
bool isValid() const { return valid_; }
|
||||
diff --git a/src/libcamera/media_device.cpp b/src/libcamera/media_device.cpp
|
||||
index 2949816b..eaa2fdb0 100644
|
||||
--- a/src/libcamera/media_device.cpp
|
||||
+++ b/src/libcamera/media_device.cpp
|
||||
@@ -159,12 +159,12 @@ bool MediaDevice::lock()
|
||||
*
|
||||
* \sa lock()
|
||||
*/
|
||||
-void MediaDevice::unlock()
|
||||
+bool MediaDevice::unlock()
|
||||
{
|
||||
if (!fd_.isValid())
|
||||
- return;
|
||||
+ return false;
|
||||
|
||||
- lockf(fd_.get(), F_ULOCK, 0);
|
||||
+ return lockf(fd_.get(), F_ULOCK, 0) == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
SUMMARY = "Linux libcamera framework"
|
||||
SECTION = "libs"
|
||||
|
||||
LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
|
||||
|
||||
LIC_FILES_CHKSUM = "\
|
||||
file://LICENSES/GPL-2.0-or-later.txt;md5=fed54355545ffd980b814dab4a3b312c \
|
||||
file://LICENSES/LGPL-2.1-or-later.txt;md5=2a4f4fd2128ea2f65047ee63fbca9f68 \
|
||||
"
|
||||
|
||||
SRC_URI = " \
|
||||
git://git.libcamera.org/libcamera/libcamera.git;protocol=https;branch=master \
|
||||
file://0001-media_device-Add-bool-return-type-to-unlock.patch \
|
||||
"
|
||||
|
||||
SRCREV = "35ed4b91291d9f3d08e4b51acfb51163e65df8f8"
|
||||
|
||||
PE = "1"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls chrpath-native libevent libyaml"
|
||||
DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}"
|
||||
|
||||
PACKAGES =+ "${PN}-gst ${PN}-pycamera"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base"
|
||||
PACKAGECONFIG[pycamera] = "-Dpycamera=enabled,-Dpycamera=disabled,python3 python3-pybind11"
|
||||
|
||||
LIBCAMERA_PIPELINES ??= "auto"
|
||||
|
||||
EXTRA_OEMESON = " \
|
||||
-Dpipelines=${LIBCAMERA_PIPELINES} \
|
||||
-Dv4l2=true \
|
||||
-Dcam=enabled \
|
||||
-Dlc-compliance=disabled \
|
||||
-Dtest=false \
|
||||
-Ddocumentation=disabled \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland qt', 'qtwayland', '', d)}"
|
||||
|
||||
inherit meson pkgconfig python3native
|
||||
|
||||
do_configure:prepend() {
|
||||
sed -i -e 's|py_compile=True,||' ${S}/utils/codegen/ipc/mojo/public/tools/mojom/mojom/generate/template_expander.py
|
||||
}
|
||||
|
||||
do_install:append() {
|
||||
chrpath -d ${D}${libdir}/libcamera.so
|
||||
chrpath -d ${D}${libexecdir}/libcamera/v4l2-compat.so
|
||||
}
|
||||
|
||||
do_package:append() {
|
||||
bb.build.exec_func("do_package_recalculate_ipa_signatures", d)
|
||||
}
|
||||
|
||||
do_package_recalculate_ipa_signatures() {
|
||||
local modules
|
||||
for module in $(find ${PKGD}/usr/lib/libcamera -name "*.so.sign"); do
|
||||
module="${module%.sign}"
|
||||
if [ -f "${module}" ] ; then
|
||||
modules="${modules} ${module}"
|
||||
fi
|
||||
done
|
||||
|
||||
${S}/src/ipa/ipa-sign-install.sh ${B}/src/ipa-priv-key.pem "${modules}"
|
||||
}
|
||||
|
||||
FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so"
|
||||
FILES:${PN}-gst = "${libdir}/gstreamer-1.0"
|
||||
FILES:${PN}-pycamera = "${PYTHON_SITEPACKAGES_DIR}/libcamera"
|
||||
|
||||
# libcamera-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to
|
||||
# both 32 and 64 bit file APIs.
|
||||
GLIBC_64BIT_TIME_FLAGS = ""
|
||||
Reference in New Issue
Block a user