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,37 @@
|
||||
From 5de183dc436bb647361ab641d891c113e6a7dadd Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 8 Mar 2020 16:30:48 -0700
|
||||
Subject: [PATCH] cmake: Use a regular expression to match x86 architectures
|
||||
|
||||
in OE we use i686 for qemux86 and this results in
|
||||
|
||||
-- INFO - Target arch is i686
|
||||
CMake Error at CMakeLists.txt:191 (message):
|
||||
Only x86, arm, mips, PERIPHERALMAN and mock platforms currently supported
|
||||
|
||||
So using a wildcard helps in using any x86 arch
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Upstream-Status: Submitted [https://github.com/eclipse/mraa/pull/1125]
|
||||
|
||||
CMakeLists.txt | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 250d9106..fb642722 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -176,8 +176,7 @@ else ()
|
||||
message (STATUS "INFO - Override arch is ${DETECTED_ARCH}")
|
||||
endif()
|
||||
|
||||
-if (DETECTED_ARCH STREQUAL "i586" OR DETECTED_ARCH STREQUAL "x86_64"
|
||||
- OR DETECTED_ARCH STREQUAL "i386")
|
||||
+if (DETECTED_ARCH MATCHES "i?86" OR DETECTED_ARCH STREQUAL "x86_64")
|
||||
set (X86PLAT ON)
|
||||
elseif (DETECTED_ARCH MATCHES "arm.*" OR DETECTED_ARCH MATCHES "aarch64")
|
||||
set (ARMPLAT ON)
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
From 30f78cb2775358dacd10b02c0ba2ec0c3ba2945d Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 31 Dec 2023 19:16:35 -0800
|
||||
Subject: [PATCH 1/2] mraa: Use posix basename
|
||||
|
||||
Musl has removed the declaration from string.h [1] which exposes the
|
||||
problem especially with clang-17+ compiler where implicit function
|
||||
declaration is flagged as error. Use posix basename and make a copy of
|
||||
string to operate on to emulate GNU basename behaviour.
|
||||
|
||||
[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Upstream-Status: Submitted [https://github.com/eclipse/mraa/pull/1125]
|
||||
src/mraa.c | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/mraa.c b/src/mraa.c
|
||||
index 653ea1fa..b556d045 100644
|
||||
--- a/src/mraa.c
|
||||
+++ b/src/mraa.c
|
||||
@@ -12,6 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <dlfcn.h>
|
||||
+#include <libgen.h>
|
||||
#include <pwd.h>
|
||||
#include <sched.h>
|
||||
#include <stddef.h>
|
||||
@@ -341,9 +342,11 @@ static int
|
||||
mraa_count_iio_devices(const char* path, const struct stat* sb, int flag, struct FTW* ftwb)
|
||||
{
|
||||
// we are only interested in files with specific names
|
||||
- if (fnmatch(IIO_DEVICE_WILDCARD, basename(path), 0) == 0) {
|
||||
+ char* tmp = strdup(path);
|
||||
+ if (fnmatch(IIO_DEVICE_WILDCARD, basename(tmp), 0) == 0) {
|
||||
num_iio_devices++;
|
||||
}
|
||||
+ free(tmp);
|
||||
return 0;
|
||||
}
|
||||
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
From ffa6f1254066b1d5d99192002043be945ff64297 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 31 Dec 2023 19:18:42 -0800
|
||||
Subject: [PATCH 2/2] gpio: Include limits.h for PATH_MAX
|
||||
|
||||
Musl exposes this problem where PATH_MAX is used but limits.h is not
|
||||
included, it works with glibc perhaps due to limits.h being indirectly
|
||||
included by another system header.
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Upstream-Status: Submitted [https://github.com/eclipse/mraa/pull/1125]
|
||||
src/gpio/gpio_chardev.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/gpio/gpio_chardev.c b/src/gpio/gpio_chardev.c
|
||||
index 2cd15968..9f727de7 100644
|
||||
--- a/src/gpio/gpio_chardev.c
|
||||
+++ b/src/gpio/gpio_chardev.c
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
+#include <limits.h>
|
||||
#include <poll.h>
|
||||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
SUMMARY = "Linux Library for low speed I/O Communication"
|
||||
HOMEPAGE = "https://github.com/intel-iot-devkit/mraa"
|
||||
SECTION = "libs"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=91e7de50a8d3cf01057f318d72460acd"
|
||||
|
||||
SRCREV = "3c288a09109969eef9c2da7d92d3c62f92a015cc"
|
||||
PV = "2.2.0+git"
|
||||
|
||||
SRC_URI = "git://github.com/eclipse/${BPN}.git;protocol=https;branch=master \
|
||||
file://0001-cmake-Use-a-regular-expression-to-match-x86-architec.patch \
|
||||
file://0001-mraa-Use-posix-basename.patch \
|
||||
file://0002-gpio-Include-limits.h-for-PATH_MAX.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# CMakeLists.txt checks the architecture, only x86 and ARM supported for now
|
||||
COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux"
|
||||
|
||||
inherit cmake setuptools3-base
|
||||
|
||||
DEPENDS += "json-c"
|
||||
|
||||
EXTRA_OECMAKE:append = " -DINSTALLTOOLS:BOOL=ON -DFIRMATA=ON -DCMAKE_SKIP_RPATH=ON -DPYTHON2_LIBRARY=OFF \
|
||||
-DPYTHON3_PACKAGES_PATH:PATH=${baselib}/python${PYTHON_BASEVERSION}/site-packages \
|
||||
-DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so \
|
||||
-DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI} \
|
||||
"
|
||||
|
||||
# Prepend mraa-utils to make sure bindir ends up in there
|
||||
PACKAGES =+ "${PN}-utils"
|
||||
|
||||
FILES:${PN}-doc += "${datadir}/mraa/examples/"
|
||||
|
||||
FILES:${PN}-utils = "${bindir}/"
|
||||
|
||||
# override this in local.conf to get needed bindings.
|
||||
# BINDINGS:pn-mraa="python"
|
||||
# will result in only the python bindings being built/packaged.
|
||||
# Note: 'nodejs' is disabled by default because the bindings
|
||||
# generation currently fails with nodejs (>v7.x).
|
||||
BINDINGS ??= "python"
|
||||
|
||||
# nodejs isn't available for armv4/armv5 architectures
|
||||
BINDINGS:armv4 ??= "python"
|
||||
BINDINGS:armv5 ??= "python"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
|
||||
${@bb.utils.contains('PACKAGES', 'python3-${PN}', 'python', '', d)}"
|
||||
|
||||
PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON, -DBUILDSWIGPYTHON=OFF, swig-native python3,"
|
||||
PACKAGECONFIG[nodejs] = "-DBUILDSWIGNODE=ON, -DBUILDSWIGNODE=OFF, swig-native nodejs-native,"
|
||||
PACKAGECONFIG[ft4222] = "-DUSBPLAT=ON -DFTDI4222=ON, -DUSBPLAT=OFF -DFTDI4222=OFF,, libft4222"
|
||||
|
||||
FILES:python3-${PN} = "${PYTHON_SITEPACKAGES_DIR}/"
|
||||
RDEPENDS:python3-${PN} += "python3"
|
||||
|
||||
FILES:node-${PN} = "${prefix}/lib/node_modules/"
|
||||
RDEPENDS:node-${PN} += "nodejs"
|
||||
|
||||
### Include desired language bindings ###
|
||||
PACKAGES =+ "${@bb.utils.contains('BINDINGS', 'nodejs', 'node-${PN}', '', d)}"
|
||||
PACKAGES =+ "${@bb.utils.contains('BINDINGS', 'python', 'python3-${PN}', '', d)}"
|
||||
|
||||
TOOLCHAIN = "gcc"
|
||||
Reference in New Issue
Block a user