- 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)
21 lines
671 B
Bash
Executable File
21 lines
671 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export LC_ALL=C
|
|
|
|
# Create or clear the LICENSE file
|
|
echo "# License Information" > LICENSE
|
|
echo "" >> LICENSE
|
|
echo "This file lists all licenses used by recipes in the meta-freescale layer." >> LICENSE
|
|
echo "" >> LICENSE
|
|
|
|
# Find all .bb and .inc files and extract license information
|
|
find . -type f \( -name "*.bb" -o -name "*.inc" \) | sort | while read -r file; do
|
|
# Extract the license line from each recipe file, if it exists
|
|
license_line=$(grep -i "^LICENSE" "$file")
|
|
if [ -n "$license_line" ]; then
|
|
echo "$file: $license_line" >> LICENSE
|
|
fi
|
|
done
|
|
|
|
echo "LICENSE file has been generated and updated with current recipe licenses."
|