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 @@
|
||||
PACKAGECONFIG:remove:libc-musl = "unicode"
|
||||
@@ -0,0 +1,5 @@
|
||||
PACKAGECONFIG[utf8] = "--enable-utf8,--disable-utf8"
|
||||
|
||||
PACKAGECONFIG ??= "utf8"
|
||||
|
||||
PACKAGECONFIG:remove:libc-musl = "utf8"
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# Copyright TQ-Systems GmbH
|
||||
|
||||
# This script checks if /dev/hwrng is backed by a HW device driver.
|
||||
# This is true if '/sys/class/misc/hw_random/rng_current' does *not*
|
||||
# contain 'none'
|
||||
# This script returns 0 if no HW backend is available, 1 otherwise.
|
||||
# It is intended to be used by 'ExecCondition=' in a systemd .service file
|
||||
|
||||
main() {
|
||||
local ENTROPY_SRC
|
||||
|
||||
ENTROPY_SRC=$(cat /sys/class/misc/hw_random/rng_current 2>/dev/null)
|
||||
if [ -z "${ENTROPY_SRC}" ] || [ "none" = "${ENTROPY_SRC}" ]; then
|
||||
exit 0
|
||||
fi
|
||||
exit 1
|
||||
}
|
||||
|
||||
main "$@"
|
||||
@@ -0,0 +1 @@
|
||||
EXTRA_ARGS="-n jitter -x hwrng"
|
||||
@@ -0,0 +1,3 @@
|
||||
# This ensures rgnd.service is only started if no HW RNG is available
|
||||
[Service]
|
||||
ExecCondition=/usr/bin/check_hwrng
|
||||
@@ -0,0 +1,20 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI += "\
|
||||
file://check_hwrng \
|
||||
file://default \
|
||||
file://rngd.start-check.conf \
|
||||
"
|
||||
|
||||
# make sure we do not miss it for kernel / hardware without functional /dev/hwrng
|
||||
PACKAGECONFIG:append = " libjitterentropy"
|
||||
|
||||
do_install:append() {
|
||||
install -Dm 755 ${WORKDIR}/check_hwrng ${D}${bindir}/check_hwrng
|
||||
|
||||
# Install systemd service override file which will be merged into regular one
|
||||
install -Dm 0644 ${WORKDIR}/rngd.start-check.conf \
|
||||
${D}${systemd_system_unitdir}/rngd.service.d/start-check.conf
|
||||
}
|
||||
|
||||
FILES:${PN} += "${systemd_system_unitdir}/rngd.service.d/start-check.conf"
|
||||
Reference in New Issue
Block a user