1# 2# Copyright OpenEmbedded Contributors 3# 4# SPDX-License-Identifier: MIT 5# 6 7#This function create a version information file 8toolchain_create_sdk_version () { 9 local versionfile=$1 10 rm -f $versionfile 11 touch $versionfile 12 echo 'Distro: ${DISTRO}' >> $versionfile 13 echo 'Distro Version: ${DISTRO_VERSION}' >> $versionfile 14 echo 'Metadata Revision: ${METADATA_REVISION}' >> $versionfile 15 echo 'Timestamp: ${DATETIME}' >> $versionfile 16} 17toolchain_create_sdk_version[vardepsexclude] = "DATETIME" 18