diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2011-02-17 10:48:12 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-02-17 17:25:21 -0800 |
commit | 6dc50b17360dfde34d01125a6f9747fcb530be1d (patch) | |
tree | 8e0ff61160103ff320deb42868c8df7b6662aa80 /meta/classes/toolchain-scripts.bbclass | |
parent | f09f8f4aa32d134081a5bd8a5cff631a2e7935f7 (diff) | |
download | openembedded-core-6dc50b17360dfde34d01125a6f9747fcb530be1d.tar.gz openembedded-core-6dc50b17360dfde34d01125a6f9747fcb530be1d.tar.bz2 openembedded-core-6dc50b17360dfde34d01125a6f9747fcb530be1d.tar.xz openembedded-core-6dc50b17360dfde34d01125a6f9747fcb530be1d.zip |
toolchain-script/populate_sdk/meta-toolchain: moving common code.
moving common code between populate_sdk.bbclass and meta-environment.bb
into toolchain-script.bbclass.
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
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 fb59761fd..2b9cfac6a 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass @@ -88,3 +88,27 @@ toolchain_create_sdk_env_script_for_installer () { echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script echo 'export POKY_SDK_VERSION="${SDK_VERSION}"' >> $script } + +#This function create a site config file +toolchain_create_sdk_siteconfig () { + local siteconfig=$1 + shift + local files=$@ + + rm -f $siteconfig + touch $siteconfig + for sitefile in ${files} ; do + cat $sitefile >> $siteconfig + done +} + +#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 +} |