diff options
Diffstat (limited to 'meta/classes/toolchain-scripts.bbclass')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index fb59761fd6..2b9cfac6a1 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -88,3 +88,27 @@ toolchain_create_sdk_env_script_for_installer () { | |||
88 | echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script | 88 | echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script |
89 | echo 'export POKY_SDK_VERSION="${SDK_VERSION}"' >> $script | 89 | echo 'export POKY_SDK_VERSION="${SDK_VERSION}"' >> $script |
90 | } | 90 | } |
91 | |||
92 | #This function create a site config file | ||
93 | toolchain_create_sdk_siteconfig () { | ||
94 | local siteconfig=$1 | ||
95 | shift | ||
96 | local files=$@ | ||
97 | |||
98 | rm -f $siteconfig | ||
99 | touch $siteconfig | ||
100 | for sitefile in ${files} ; do | ||
101 | cat $sitefile >> $siteconfig | ||
102 | done | ||
103 | } | ||
104 | |||
105 | #This function create a version information file | ||
106 | toolchain_create_sdk_version () { | ||
107 | local versionfile=$1 | ||
108 | rm -f $versionfile | ||
109 | touch $versionfile | ||
110 | echo 'Distro: ${DISTRO}' >> $versionfile | ||
111 | echo 'Distro Version: ${DISTRO_VERSION}' >> $versionfile | ||
112 | echo 'Metadata Revision: ${METADATA_REVISION}' >> $versionfile | ||
113 | echo 'Timestamp: ${DATETIME}' >> $versionfile | ||
114 | } | ||