diff options
Diffstat (limited to 'meta/classes/toolchain-scripts-base.bbclass')
-rw-r--r-- | meta/classes/toolchain-scripts-base.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts-base.bbclass b/meta/classes/toolchain-scripts-base.bbclass new file mode 100644 index 0000000000..2489b9dbeb --- /dev/null +++ b/meta/classes/toolchain-scripts-base.bbclass | |||
@@ -0,0 +1,11 @@ | |||
1 | #This function create a version information file | ||
2 | toolchain_create_sdk_version () { | ||
3 | local versionfile=$1 | ||
4 | rm -f $versionfile | ||
5 | touch $versionfile | ||
6 | echo 'Distro: ${DISTRO}' >> $versionfile | ||
7 | echo 'Distro Version: ${DISTRO_VERSION}' >> $versionfile | ||
8 | echo 'Metadata Revision: ${METADATA_REVISION}' >> $versionfile | ||
9 | echo 'Timestamp: ${DATETIME}' >> $versionfile | ||
10 | } | ||
11 | toolchain_create_sdk_version[vardepsexclude] = "DATETIME" | ||