mirror of
git://git.yoctoproject.org/meta-freescale.git
synced 2025-07-19 12:59:04 +02:00

The meta-fsl-arm is going to be used as the base for this layer. It contains a clean history and allowing a more granullar set of changes. This commit is just a rename of all contents of meta-fsl-arm subdirectory to this layer's root, subsequent changes are based on top of that. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
28 lines
852 B
Plaintext
28 lines
852 B
Plaintext
# 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
|
|
head=`git rev-parse --verify --short HEAD 2> /dev/null`
|
|
printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${S}/.scmversion
|
|
printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${B}/.scmversion
|
|
else
|
|
printf "%s" "${UBOOT_LOCALVERSION}" > ${S}/.scmversion
|
|
printf "%s" "${UBOOT_LOCALVERSION}" > ${B}/.scmversion
|
|
fi
|
|
}
|