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,68 @@
|
||||
From 9839c169f513e65fc711646257b3e8588cce623c Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 5 Aug 2020 12:06:01 -0700
|
||||
Subject: [PATCH] libacpi: Fix build witth -fno-commom
|
||||
|
||||
Upstream-Status: Inactive-Upstream [last release before 2008, no vcs]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
libacpi.c | 16 ++++++++++++++++
|
||||
libacpi.h | 6 +++---
|
||||
2 files changed, 19 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/libacpi.c b/libacpi.c
|
||||
index 4e34725..9344ea4 100644
|
||||
--- a/libacpi.c
|
||||
+++ b/libacpi.c
|
||||
@@ -14,6 +14,22 @@
|
||||
#include "libacpi.h"
|
||||
#include "list.h"
|
||||
|
||||
+/**
|
||||
+ * Array for existing batteries, loop until
|
||||
+ * globals->battery_count
|
||||
+ */
|
||||
+battery_t batteries[MAX_ITEMS];
|
||||
+/**
|
||||
+ * Array for existing thermal zones, loop until
|
||||
+ * globals->thermal_count
|
||||
+ */
|
||||
+thermal_t thermals[MAX_ITEMS];
|
||||
+/**
|
||||
+ * Array for existing fans, loop until
|
||||
+ * globals->fan_count
|
||||
+ */
|
||||
+fan_t fans[MAX_ITEMS];
|
||||
+
|
||||
static int read_acpi_battinfo(const int num);
|
||||
static int read_acpi_battalarm(const int num);
|
||||
static int read_acpi_battstate(const int num);
|
||||
diff --git a/libacpi.h b/libacpi.h
|
||||
index 9334b79..5242d3d 100644
|
||||
--- a/libacpi.h
|
||||
+++ b/libacpi.h
|
||||
@@ -183,17 +183,17 @@ typedef struct {
|
||||
* Array for existing batteries, loop until
|
||||
* globals->battery_count
|
||||
*/
|
||||
-battery_t batteries[MAX_ITEMS];
|
||||
+extern battery_t batteries[MAX_ITEMS];
|
||||
/**
|
||||
* Array for existing thermal zones, loop until
|
||||
* globals->thermal_count
|
||||
*/
|
||||
-thermal_t thermals[MAX_ITEMS];
|
||||
+extern thermal_t thermals[MAX_ITEMS];
|
||||
/**
|
||||
* Array for existing fans, loop until
|
||||
* globals->fan_count
|
||||
*/
|
||||
-fan_t fans[MAX_ITEMS];
|
||||
+extern fan_t fans[MAX_ITEMS];
|
||||
/**
|
||||
* Finds existing batteries and fills the
|
||||
* corresponding batteries structures with the paths
|
||||
--
|
||||
2.28.0
|
||||
|
||||
40
sources/poky/meta/recipes-bsp/libacpi/files/ldflags.patch
Normal file
40
sources/poky/meta/recipes-bsp/libacpi/files/ldflags.patch
Normal file
@@ -0,0 +1,40 @@
|
||||
libacpi: Remove QA warning: No GNU_HASH in the elf binary
|
||||
|
||||
Upstream-Status: Inactive-Upstream [last release before 2008, no vcs]
|
||||
|
||||
Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
|
||||
|
||||
---
|
||||
Makefile | 3 ++-
|
||||
config.mk | 1 +
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
--- libacpi-0.2.orig/Makefile
|
||||
+++ libacpi-0.2/Makefile
|
||||
@@ -19,6 +19,7 @@ options:
|
||||
@echo "CFLAGS = ${CFLAGS}"
|
||||
@echo "CC = ${CC}"
|
||||
@echo "SOFLAGS = ${SOFLAGS}"
|
||||
+ @echo "LDFLAGS = ${LDFLAGS}"
|
||||
@echo "LD = ${LD}"
|
||||
|
||||
.c.o:
|
||||
@@ -34,7 +35,7 @@ libacpi.a: ${OBJ}
|
||||
|
||||
libacpi.so: ${OBJ}
|
||||
@echo LD $@
|
||||
- @${CC} ${SOFLAGS} -o $@.${SOVERSION} ${OBJ}
|
||||
+ @${CC} ${SOFLAGS} ${LDFLAGS} -o $@.${SOVERSION} ${OBJ}
|
||||
|
||||
test-libacpi: ${OBJ_test}
|
||||
@echo LD $@
|
||||
--- libacpi-0.2.orig/config.mk
|
||||
+++ libacpi-0.2/config.mk
|
||||
@@ -10,6 +10,7 @@ MANPREFIX = ${PREFIX}/share/man
|
||||
SOFLAGS = -shared -Wl,-soname,${SONAME}
|
||||
CFLAGS += -fPIC -g --pedantic -Wall -Wextra
|
||||
ARFLAGS = cr
|
||||
+LDFLAGS =
|
||||
|
||||
# Compiler and linker
|
||||
CC = cc
|
||||
@@ -0,0 +1,37 @@
|
||||
Upstream-Status: Inactive-Upstream [last release before 2008, no vcs]
|
||||
|
||||
Fix libacpi for x32
|
||||
|
||||
libacpi doesn't use base_libdir for install. This patch adds
|
||||
libdir support so that x32 libraries are installed properly.
|
||||
|
||||
Patch Received from: H.J. Lu <hjl.tools@gmail.com>
|
||||
Updated by: Ricardo Salveti <ricardo@opensourcefoundries.com> 2018/02/03
|
||||
|
||||
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/05
|
||||
|
||||
Index: libacpi-0.2/Makefile
|
||||
===================================================================
|
||||
--- libacpi-0.2.orig/Makefile
|
||||
+++ libacpi-0.2/Makefile
|
||||
@@ -42,13 +42,13 @@ install: all
|
||||
@mkdir -p ${DESTDIR}${PREFIX}/include
|
||||
@cp -f libacpi.h ${DESTDIR}${PREFIX}/include
|
||||
@chmod 644 ${DESTDIR}${PREFIX}/include/libacpi.h
|
||||
- @echo installing library to ${DESTDIR}${PREFIX}/lib
|
||||
- @mkdir -p ${DESTDIR}${PREFIX}/lib
|
||||
- @cp -f libacpi.a ${DESTDIR}${PREFIX}/lib
|
||||
- @chmod 644 ${DESTDIR}${PREFIX}/lib/libacpi.a
|
||||
- @cp -f ${SONAME} ${DESTDIR}${PREFIX}/lib/
|
||||
- @chmod 644 ${DESTDIR}${PREFIX}/lib/${SONAME}
|
||||
- @ln -s ${SONAME} ${DESTDIR}${PREFIX}/lib/libacpi.so
|
||||
+ @echo installing library to ${DESTDIR}${LIBDIR}
|
||||
+ @mkdir -p ${DESTDIR}${LIBDIR}
|
||||
+ @cp -f libacpi.a ${DESTDIR}${LIBDIR}
|
||||
+ @chmod 644 ${DESTDIR}${LIBDIR}/libacpi.a
|
||||
+ @cp -f ${SONAME} ${DESTDIR}${LIBDIR}/
|
||||
+ @chmod 644 ${DESTDIR}${LIBDIR}/${SONAME}
|
||||
+ @ln -s ${SONAME} ${DESTDIR}${LIBDIR}/libacpi.so
|
||||
@echo installing test-libacpi to ${DESTDIR}${PREFIX}/bin
|
||||
@mkdir -p ${DESTDIR}${PREFIX}/bin
|
||||
@cp -f test-libacpi ${DESTDIR}${PREFIX}/bin
|
||||
@@ -0,0 +1,47 @@
|
||||
Upstream-Status: Inactive-Upstream [last release before 2008, no vcs]
|
||||
|
||||
---
|
||||
Makefile | 6 +++---
|
||||
config.mk | 3 ++-
|
||||
2 files changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
Index: libacpi-0.2/Makefile
|
||||
===================================================================
|
||||
--- libacpi-0.2.orig/Makefile 2007-07-29 14:09:34.000000000 +0200
|
||||
+++ libacpi-0.2/Makefile 2008-09-26 10:34:53.000000000 +0200
|
||||
@@ -25,16 +25,16 @@ ${OBJ}: config.mk libacpi.h
|
||||
|
||||
libacpi.a: ${OBJ}
|
||||
@echo AR $@
|
||||
- @${AR} $@ ${OBJ}
|
||||
+ ${AR} ${ARFLAGS} $@ ${OBJ}
|
||||
@${RANLIB} $@
|
||||
|
||||
libacpi.so: ${OBJ}
|
||||
@echo LD $@
|
||||
- @${LD} ${SOFLAGS} -o $@.${SOVERSION} ${OBJ}
|
||||
+ @${CC} ${SOFLAGS} -o $@.${SOVERSION} ${OBJ}
|
||||
|
||||
test-libacpi: ${OBJ_test}
|
||||
@echo LD $@
|
||||
- @${LD} -o $@ ${OBJ_test} ${LDFLAGS}
|
||||
+ @${CC} -o $@ ${OBJ_test} ${LDFLAGS}
|
||||
@strip $@
|
||||
|
||||
install: all
|
||||
Index: libacpi-0.2/config.mk
|
||||
===================================================================
|
||||
--- libacpi-0.2.orig/config.mk 2007-07-29 14:09:34.000000000 +0200
|
||||
+++ libacpi-0.2/config.mk 2008-09-26 10:34:33.000000000 +0200
|
||||
@@ -9,9 +9,10 @@ MANPREFIX = ${PREFIX}/share/man
|
||||
# flags
|
||||
SOFLAGS = -shared -Wl,-soname,${SONAME}
|
||||
CFLAGS += -fPIC -g --pedantic -Wall -Wextra
|
||||
+ARFLAGS = cr
|
||||
|
||||
# Compiler and linker
|
||||
CC = cc
|
||||
LD = ${CC}
|
||||
-AR = ar cr
|
||||
+AR = ar
|
||||
RANLIB = ranlib
|
||||
@@ -0,0 +1,23 @@
|
||||
Upstream-Status: Inactive-Upstream [last release before 2008, no vcs]
|
||||
|
||||
Used the cross strip instead of host strip to avoid this build error:
|
||||
|
||||
| strip: Unable to recognise the format of the input file `test-libacpi'
|
||||
| make: *** [test-libacpi] Error 1
|
||||
| ERROR: oe_runmake failed
|
||||
|
||||
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/07
|
||||
|
||||
Index: libacpi-0.2/Makefile
|
||||
===================================================================
|
||||
--- libacpi-0.2.orig/Makefile
|
||||
+++ libacpi-0.2/Makefile
|
||||
@@ -39,7 +39,7 @@ libacpi.so: ${OBJ}
|
||||
test-libacpi: ${OBJ_test}
|
||||
@echo LD $@
|
||||
@${CC} -o $@ ${OBJ_test} ${LDFLAGS}
|
||||
- @strip $@
|
||||
+ @${STRIP} $@
|
||||
|
||||
install: all
|
||||
@echo installing header to ${DESTDIR}${PREFIX}/include
|
||||
33
sources/poky/meta/recipes-bsp/libacpi/libacpi_0.2.bb
Normal file
33
sources/poky/meta/recipes-bsp/libacpi/libacpi_0.2.bb
Normal file
@@ -0,0 +1,33 @@
|
||||
SUMMARY = "ACPI data gathering library"
|
||||
DESCRIPTION = "General purpose shared library for programs gathering ACPI data on Linux. \
|
||||
Thermal zones, battery infomration, fan information and AC states are implemented."
|
||||
SECTION = "base"
|
||||
HOMEPAGE = "http://www.ngolde.de/libacpi.html"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=fec17f82f16630adf2dfb7d2a46f21c5"
|
||||
|
||||
SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
|
||||
file://makefile-fix.patch \
|
||||
file://libacpi_fix_for_x32.patch \
|
||||
file://use_correct_strip_in_cross_environment.patch \
|
||||
file://ldflags.patch \
|
||||
file://0001-libacpi-Fix-build-witth-fno-commom.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "05b53dd7bead66dda35fec502b91066c"
|
||||
SRC_URI[sha256sum] = "13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29"
|
||||
|
||||
UPSTREAM_CHECK_URI = "http://www.ngolde.de/libacpi.html"
|
||||
|
||||
inherit lib_package
|
||||
|
||||
COMPATIBLE_HOST = '(x86_64|i.86|aarch64).*-(linux|freebsd.*)'
|
||||
|
||||
CFLAGS += "-fPIC"
|
||||
EXTRA_OEMAKE = '-e MAKEFLAGS= STRIP="echo"'
|
||||
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
do_install() {
|
||||
oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix} LIBDIR=${libdir}
|
||||
}
|
||||
Reference in New Issue
Block a user