summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/toolchain-scripts-base.bbclass
blob: d24a986e0221cc34de9a08568a45183da4ca4a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#

#This function create a version information file
toolchain_create_sdk_version () {
	local versionfile=$1
	rm -f $versionfile
	touch $versionfile
	echo 'Distro: ${DISTRO}' >> $versionfile
	echo 'Distro Version: ${DISTRO_VERSION}' >> $versionfile
	echo 'Metadata Revision: ${METADATA_REVISION}' >> $versionfile
	echo 'Timestamp: ${DATETIME}' >> $versionfile
}
toolchain_create_sdk_version[vardepsexclude] = "DATETIME"