summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/toolchain-scripts-base.bbclass11
-rw-r--r--meta/classes/toolchain-scripts.bbclass14
2 files changed, 12 insertions, 13 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"
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 @@
1inherit siteinfo kernel-arch 1inherit 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
137toolchain_create_sdk_siteconfig[vardepsexclude] = "TOOLCHAIN_CONFIGSITE_SYSROOTCACHE" 137toolchain_create_sdk_siteconfig[vardepsexclude] = "TOOLCHAIN_CONFIGSITE_SYSROOTCACHE"
138 138
139#This function create a version information file
140toolchain_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}
149toolchain_create_sdk_version[vardepsexclude] = "DATETIME"
150
151python __anonymous () { 139python __anonymous () {
152 import oe.classextend 140 import oe.classextend
153 deps = "" 141 deps = ""