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,17 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
# Copyright (c) 2024 TQ-Systems GmbH <oss@ew.tq-group.com>, D-82229 Seefeld, Germany.
|
||||
# Author: Matthias Schiffer
|
||||
|
||||
[Unit]
|
||||
Description=fw_env.config selection
|
||||
DefaultDependencies=no
|
||||
Before=sysinit.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@LIBEXECDIR@/tq/u-boot-env-tq.sh
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
@@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
# Copyright (c) 2024 TQ-Systems GmbH <oss@ew.tq-group.com>, D-82229 Seefeld, Germany.
|
||||
# Author: Matthias Schiffer
|
||||
|
||||
set -e
|
||||
|
||||
RUNTIME_CONFIG=/run/tq/fw_env.config
|
||||
|
||||
get_root_dev () {
|
||||
findmnt --evaluate --first-only --noheadings --output SOURCE --mountpoint /
|
||||
}
|
||||
|
||||
get_env_loc () {
|
||||
case "$(get_root_dev)" in
|
||||
/dev/mmcblk0p*)
|
||||
echo mmc0
|
||||
;;
|
||||
/dev/mmcblk1p*)
|
||||
echo mmc1
|
||||
;;
|
||||
ubi0:*)
|
||||
echo spi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
get_fw_env_config () {
|
||||
echo "/etc/fw_env.config-$(get_env_loc)"
|
||||
}
|
||||
|
||||
main () {
|
||||
local config
|
||||
|
||||
config=$(get_fw_env_config)
|
||||
|
||||
if ! [ -r "$config" ]; then
|
||||
config=/dev/null
|
||||
fi
|
||||
|
||||
mkdir -p "$(dirname "$RUNTIME_CONFIG")"
|
||||
ln -sfn "$config" "$RUNTIME_CONFIG"
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user