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,38 @@
|
||||
# Freescale U-Boot LOCALVERSION extension
|
||||
#
|
||||
# This allow to easy reuse of code between different U-Boot recipes
|
||||
#
|
||||
# The following options are supported:
|
||||
#
|
||||
# SCMVERSION Puts the Git hash in U-Boot local version
|
||||
# LOCALVERSION Value used in LOCALVERSION (default to '+fslc')
|
||||
#
|
||||
# Copyright 2014 (C) O.S. Systems Software LTDA.
|
||||
|
||||
SCMVERSION ??= "y"
|
||||
LOCALVERSION ??= "+fslc"
|
||||
|
||||
UBOOT_LOCALVERSION = "${LOCALVERSION}"
|
||||
|
||||
do_compile:prepend() {
|
||||
if [ "${SCMVERSION}" = "y" ]; then
|
||||
# Add GIT revision to the local version
|
||||
if [ "${SRCREV}" = "INVALID" ]; then
|
||||
hash=${SRCREV_machine}
|
||||
else
|
||||
hash=${SRCREV}
|
||||
fi
|
||||
if [ "$hash" = "AUTOINC" ]; then
|
||||
branch=`git --git-dir=${S}/.git symbolic-ref --short -q HEAD`
|
||||
head=`git --git-dir=${S}/.git rev-parse --verify --short origin/${branch} 2> /dev/null`
|
||||
else
|
||||
head=`git --git-dir=${S}/.git rev-parse --verify --short $hash 2> /dev/null`
|
||||
fi
|
||||
patches=`git --git-dir=${S}/.git rev-list --count $head..HEAD 2> /dev/null`
|
||||
printf "%s%s%s%s%s" "${UBOOT_LOCALVERSION}" +g $head +p $patches > ${S}/.scmversion
|
||||
printf "%s%s%s%s%s" "${UBOOT_LOCALVERSION}" +g $head +p $patches > ${B}/.scmversion
|
||||
else
|
||||
printf "%s" "${UBOOT_LOCALVERSION}" > ${S}/.scmversion
|
||||
printf "%s" "${UBOOT_LOCALVERSION}" > ${B}/.scmversion
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user