diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-09-22 14:05:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-23 14:56:39 +0100 |
commit | cb1ffb835f9ee3a10314016d7356d843a22736dd (patch) | |
tree | 6261279ef3c3682a46af92ac6541511c46a66807 /meta/classes/toolchain-scripts.bbclass | |
parent | 8f85911dae474fa7a17e284562c8a1f1c1799ea4 (diff) | |
download | poky-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.bbclass')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 997ff8865f..0e11f2d7a0 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -1,4 +1,4 @@ | |||
1 | inherit siteinfo kernel-arch | 1 | inherit toolchain-scripts-base siteinfo kernel-arch |
2 | 2 | ||
3 | # We want to be able to change the value of MULTIMACH_TARGET_SYS, because it | 3 | # We want to be able to change the value of MULTIMACH_TARGET_SYS, because it |
4 | # doesn't always match our expectations... but we default to the stock value | 4 | # doesn't always match our expectations... but we default to the stock value |
@@ -136,18 +136,6 @@ toolchain_create_sdk_siteconfig () { | |||
136 | # The immediate expansion above can result in unwanted path dependencies here | 136 | # The immediate expansion above can result in unwanted path dependencies here |
137 | toolchain_create_sdk_siteconfig[vardepsexclude] = "TOOLCHAIN_CONFIGSITE_SYSROOTCACHE" | 137 | toolchain_create_sdk_siteconfig[vardepsexclude] = "TOOLCHAIN_CONFIGSITE_SYSROOTCACHE" |
138 | 138 | ||
139 | #This function create a version information file | ||
140 | toolchain_create_sdk_version () { | ||
141 | local versionfile=$1 | ||
142 | rm -f $versionfile | ||
143 | touch $versionfile | ||
144 | echo 'Distro: ${DISTRO}' >> $versionfile | ||
145 | echo 'Distro Version: ${DISTRO_VERSION}' >> $versionfile | ||
146 | echo 'Metadata Revision: ${METADATA_REVISION}' >> $versionfile | ||
147 | echo 'Timestamp: ${DATETIME}' >> $versionfile | ||
148 | } | ||
149 | toolchain_create_sdk_version[vardepsexclude] = "DATETIME" | ||
150 | |||
151 | python __anonymous () { | 139 | python __anonymous () { |
152 | import oe.classextend | 140 | import oe.classextend |
153 | deps = "" | 141 | deps = "" |