Patchwork toolchain-scripts: separate dependencies from site file naming

login
register
mail settings
Submitter Christopher Larson
Date July 26, 2012, 7:40 p.m.
Message ID <1343331648-19882-1-git-send-email-kergoth@gmail.com>
Download mbox | patch
Permalink /patch/33161/
State New
Headers show

Comments

Christopher Larson - July 26, 2012, 7:40 p.m.
From: Christopher Larson <chris_larson@mentor.com>

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 meta/classes/toolchain-scripts.bbclass |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 44284c3..68bb661 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -137,6 +137,7 @@  toolchain_create_sdk_env_script_for_installer () {
 TOOLCHAIN_CONFIGSITE_NOCACHE = "${@siteinfo_get_files(d, True)}"
 TOOLCHAIN_CONFIGSITE_SYSROOTCACHE = "${STAGING_DATADIR}/${TARGET_SYS}_config_site.d"
 TOOLCHAIN_NEED_CONFIGSITE_CACHE = "${TCLIBC} ncurses"
+TOOLCHAIN_CONFIGSITE_DEPENDS = "virtual/libc ncurses"
 
 #This function create a site config file
 toolchain_create_sdk_siteconfig () {
@@ -173,7 +174,7 @@  toolchain_create_sdk_version[vardepsexclude] = "DATETIME"
 
 python __anonymous () {
     deps = ""
-    for dep in (d.getVar('TOOLCHAIN_NEED_CONFIGSITE_CACHE', True) or "").split():
+    for dep in (d.getVar('TOOLCHAIN_CONFIGSITE_DEPENDS', True) or "").split():
         deps += " %s:do_populate_sysroot" % dep
     d.appendVarFlag('do_configure', 'depends', deps)
 }