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:
87
sources/meta-freescale/scripts/convert-bsp-specific-overrides
Executable file
87
sources/meta-freescale/scripts/convert-bsp-specific-overrides
Executable file
@@ -0,0 +1,87 @@
|
||||
#!/bin/sh
|
||||
# Convert old-style NXP overrides to new style BSP overides
|
||||
#
|
||||
# Essentially, we extend the overrides to a generic-bsp, nxp-bsp, and mainline-bsp.
|
||||
#
|
||||
# So, for example, the mx8mq override is split into:
|
||||
#
|
||||
# - imx-generic-bsp: compatible with every i.MX SoC and both BSP variants
|
||||
# - imx-nxp-bsp: compatible with every i.MX SoC but specific to NXP BSP
|
||||
# - imx-mainline-bsp: compatible with every i.MX SoC but specific to Mainline BSP
|
||||
#
|
||||
# - mx8-generic-bsp: compatible with every i.MX8 SoC and both BSP variants
|
||||
# - mx8-nxp-bsp: compatible with every i.MX8 SoC but specific to NXP BSP
|
||||
# - mx8-mainline-bsp: compatible with every i.MX8 SoC but specific to Mainline BSP
|
||||
#
|
||||
# - mx8m-generic-bsp: compatible with every i.MX8M SoC and both BSP variants
|
||||
# - mx8m-nxp-bsp: compatible with every i.MX8M SoC but specific to NXP BSP
|
||||
# - mx8m-mainline-bsp: compatible with every i.MX8M SoC but specific to Mainline BSP
|
||||
#
|
||||
# - mx8mq-generic-bsp: compatible with every i.MX8MQ SoC and both BSP variants
|
||||
# - mx8mq-nxp-bsp: compatible with every i.MX8MQ SoC8 but specific to NXP BSP
|
||||
# - mx8mq-mainline-bsp: compatible with every i.MX8MQ SoC but specific to Mainline BSP
|
||||
#
|
||||
# The extender mechanism is responsible for extending the override list to include the generic
|
||||
# overrides. We can then use the three different variants to handle the metadata correctly.
|
||||
#
|
||||
# WARN: This script is intended to be run only once in a layer.
|
||||
#
|
||||
# Copyright 2022 (C) O.S. Systems Software LTDA.
|
||||
|
||||
# Error out if the layer looks as already converted.
|
||||
if git ls-files \
|
||||
| grep -v 'conf/machine/' \
|
||||
| xargs egrep -q '(mx[5-8s]|vf\w+)-(nxp|generic|mainline)-bsp'; then
|
||||
echo "ERROR: The $0 should be used once in a layer. The layer seems already converted."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Convert the recipes to use the new BSP-specific overrides.
|
||||
git ls-files \
|
||||
| grep -v 'conf/machine/' \
|
||||
| xargs sed -i \
|
||||
-e 's,:\(mx[6-8]\w*\),:\1-nxp-bsp,g' \
|
||||
-e 's,(\(mx[6-8]\w*\)),(\1-nxp-bsp),g' \
|
||||
-e 's,\(mx[6-8]\w*\)|,\1-nxp-bsp|,g' \
|
||||
-e 's,|\(mx[6-8]\w*\)),|\1-nxp-bsp),g' \
|
||||
\
|
||||
-e 's,:\(mx[5s]\w*\),:\1-generic-bsp,g' \
|
||||
-e 's,(\(mx[5s]\w*\)),(\1-generic-bsp),g' \
|
||||
-e 's,\(mx[5s]\w*\)|,\1-generic-bsp|,g' \
|
||||
-e 's,|\(mx[5s]\w*\)),|\1-generic-bsp),g' \
|
||||
\
|
||||
-e 's,:\(vf\w*\),:\1-generic-bsp,g' \
|
||||
-e 's,:\(vf[56]0\w*\),:\1-generic-bsp,g' \
|
||||
-e 's,\(vf\w*\)|,\1-generic-bsp|,g' \
|
||||
-e 's,|\(vf\w*\)),|\1-generic-bsp),g' \
|
||||
-e 's,\(vf[56]0\w*\)|,\1-generic-bsp|,g' \
|
||||
-e 's,|\(vf[56]0\w*\)),|\1-generic-bsp),g' \
|
||||
\
|
||||
-e 's,:\(imx\) ,:\1-nxp-bsp ,g' \
|
||||
-e 's,(\(imx\)),(\1-nxp-bsp),g' \
|
||||
-e 's,\(imx\)|,\1-nxp-bsp|,g' \
|
||||
-e 's,|\(imx\)),|\1-nxp-bsp),g'
|
||||
|
||||
# Convert the folders old overrides to the new BSP-specific overrides.
|
||||
for d in $(find -type d | egrep '/mx[6-8]w*'); do
|
||||
git mv $d $d-nxp-bsp
|
||||
done
|
||||
|
||||
for d in $(find -type d | egrep '/imx$'); do
|
||||
git mv $d $d-nxp-bsp
|
||||
done
|
||||
|
||||
for d in $(find -type d | egrep '/mx[5s]w*'); do
|
||||
git mv $d $d-generic-bsp
|
||||
done
|
||||
|
||||
# Rework machine overrides to simplify them.
|
||||
git ls-files conf \
|
||||
| xargs sed -i \
|
||||
-e 's,mx6:mx6,mx6,g' \
|
||||
-e 's,mx6ul:mx6ull:,mx6ull:,g' \
|
||||
-e 's,mx6dl:mx6q:,mx6q:mx6dl:,g' \
|
||||
\
|
||||
-e 's,mx8:mx8m,mx8m,g' \
|
||||
-e 's,mx8m:mx8m,mx8m,g' \
|
||||
-e 's,mx8:mx8x:mx8,mx8,g'
|
||||
20
sources/meta-freescale/scripts/generate-license-file
Executable file
20
sources/meta-freescale/scripts/generate-license-file
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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."
|
||||
107
sources/meta-freescale/scripts/get-maintainer
Executable file
107
sources/meta-freescale/scripts/get-maintainer
Executable file
@@ -0,0 +1,107 @@
|
||||
#!/bin/sh
|
||||
# -*- mode: shell-script; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
#
|
||||
# Copyright (C) 2014 O.S. Systems Software LTDA.
|
||||
# Authored-by: Otavio Salvador <otavio@ossystems.com.br>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
usage() {
|
||||
cat<<EOF
|
||||
Usage:
|
||||
|
||||
$0 [ --machine=<machine> ] <path> ...
|
||||
|
||||
<path>
|
||||
Directory(ies) where to look for machine definition files.
|
||||
|
||||
Options:
|
||||
|
||||
--machine=<machine>
|
||||
Optional param to restrict the printing for a specific machine name.
|
||||
|
||||
--dump
|
||||
Generate output in a format which is easier to parse. Columns
|
||||
are separated by TAB. Empty cells for the "Maintainer" column
|
||||
represent "no maintainer".
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
path=
|
||||
specific_machine=
|
||||
dump_mode=
|
||||
|
||||
for opt in ${*}; do
|
||||
if [ "`echo $opt | cut -b-10`" = "--machine=" ]; then
|
||||
specific_machine="`echo $opt | cut -b11-`"
|
||||
elif [ "$opt" = "--dump" ]; then
|
||||
dump_mode=1
|
||||
else
|
||||
path="$path $opt"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -z "$path" ]; then
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
maintained=`mktemp`
|
||||
orphan=`mktemp`
|
||||
|
||||
machines=`find $path -wholename '*/conf/machine/*.conf'`
|
||||
for m in $machines; do
|
||||
machine=`basename $m | sed 's,\.conf$,,g'`
|
||||
if [ -n "$specific_machine" ] && [ "$machine" != "$specific_machine" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
name=`sed -n 's,#@NAME:\s*\(.*\)\s*,\1,p' $m`
|
||||
maint=`sed -n 's,#@MAINTAINER:\s*\(.*\)\s*,\1,p' $m`
|
||||
|
||||
if [ -n "$dump_mode" ]; then
|
||||
if [ -n "$maint" ]; then
|
||||
printf "${machine}\t${name}\t${maint}\n" >> $maintained
|
||||
else
|
||||
printf "${machine}\t${name}\n" >> $orphan
|
||||
fi
|
||||
else
|
||||
if [ -n "$maint" ]; then
|
||||
printf "%-25s %-50s %-50s\n" "$machine" "$name" "$maint" >> $maintained
|
||||
else
|
||||
printf "%-25s %-50s %-50s\n" "$machine" "$name" "Orphan" >> $orphan
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
display() {
|
||||
sort -u -k 2 $maintained | grep -v $^
|
||||
sort -u -k 2 $orphan | grep -v $^
|
||||
}
|
||||
|
||||
if [ -n "$dump_mode" ]; then
|
||||
display
|
||||
else
|
||||
cat <<EOF
|
||||
========================= ================================================== ==================================================
|
||||
Machine Name Maintainer
|
||||
========================= ================================================== ==================================================
|
||||
EOF
|
||||
display
|
||||
cat <<EOF
|
||||
========================= ================================================== ==================================================
|
||||
EOF
|
||||
fi
|
||||
rm $maintained $orphan
|
||||
Reference in New Issue
Block a user