summaryrefslogtreecommitdiffstats
path: root/meta/classes/toolchain-scripts-base.bbclass
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-09-22 14:05:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-23 14:56:39 +0100
commitcb1ffb835f9ee3a10314016d7356d843a22736dd (patch)
tree6261279ef3c3682a46af92ac6541511c46a66807 /meta/classes/toolchain-scripts-base.bbclass
parent8f85911dae474fa7a17e284562c8a1f1c1799ea4 (diff)
downloadpoky-cb1ffb835f9ee3a10314016d7356d843a22736dd.tar.gz
toolchain-scripts-base: add base class for toolchain_create_sdk_version
We use toolchain_create_sdk_version() in buildtools-tarball but don't want the extra classes toolchain-scripts pulls in, therefore split out a separate base class for this function which both toolchain-scripts and the buildtools-tarball can inherit. (From OE-Core rev: a398dfa654dc035c404fc12279fac9edf6403e11) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/toolchain-scripts-base.bbclass')
-rw-r--r--meta/classes/toolchain-scripts-base.bbclass11
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
2toolchain_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}
11toolchain_create_sdk_version[vardepsexclude] = "DATETIME"