summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/base.bbclass9
-rw-r--r--meta/classes/gzipnative.bbclass2
-rw-r--r--meta/classes/perlnative.bbclass2
-rw-r--r--meta/classes/pythonnative.bbclass2
4 files changed, 12 insertions, 3 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 1f7602394e..a57bd596d6 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -74,6 +74,15 @@ FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/$
74# in the context of the location its used (:=) 74# in the context of the location its used (:=)
75THISDIR = "${@os.path.dirname(d.getVar('FILE', True))}" 75THISDIR = "${@os.path.dirname(d.getVar('FILE', True))}"
76 76
77def extra_path_elements(d):
78 path = ""
79 elements = (d.getVar('EXTRANATIVEPATH', True) or "").split()
80 for e in elements:
81 path = path + "${STAGING_BINDIR_NATIVE}/" + e + ":"
82 return path
83
84PATH_prepend = "${@extra_path_elements(d)}"
85
77addtask fetch 86addtask fetch
78do_fetch[dirs] = "${DL_DIR}" 87do_fetch[dirs] = "${DL_DIR}"
79do_fetch[file-checksums] = "${@bb.fetch.get_checksum_file_list(d)}" 88do_fetch[file-checksums] = "${@bb.fetch.get_checksum_file_list(d)}"
diff --git a/meta/classes/gzipnative.bbclass b/meta/classes/gzipnative.bbclass
index 4a411434a4..007e32c690 100644
--- a/meta/classes/gzipnative.bbclass
+++ b/meta/classes/gzipnative.bbclass
@@ -1,3 +1,3 @@
1PATH_prepend = "${STAGING_BINDIR_NATIVE}/pigz-native:${STAGING_BINDIR_NATIVE}/gzip-native:" 1EXTRANATIVEPATH += "pigz-native gzip-native"
2DEPENDS += "gzip-native" 2DEPENDS += "gzip-native"
3 3
diff --git a/meta/classes/perlnative.bbclass b/meta/classes/perlnative.bbclass
index 2211b72135..cc8de8b381 100644
--- a/meta/classes/perlnative.bbclass
+++ b/meta/classes/perlnative.bbclass
@@ -1,3 +1,3 @@
1PATH_prepend = "${STAGING_BINDIR_NATIVE}/perl-native:" 1EXTRANATIVEPATH += "perl-native"
2DEPENDS += "perl-native" 2DEPENDS += "perl-native"
3OECMAKE_PERLNATIVE_DIR = "${STAGING_BINDIR_NATIVE}/perl-native" 3OECMAKE_PERLNATIVE_DIR = "${STAGING_BINDIR_NATIVE}/perl-native"
diff --git a/meta/classes/pythonnative.bbclass b/meta/classes/pythonnative.bbclass
index bc346da58d..7886207d06 100644
--- a/meta/classes/pythonnative.bbclass
+++ b/meta/classes/pythonnative.bbclass
@@ -1,3 +1,3 @@
1PYTHON="${STAGING_BINDIR_NATIVE}/python-native/python" 1PYTHON="${STAGING_BINDIR_NATIVE}/python-native/python"
2PATH_prepend = "${STAGING_BINDIR_NATIVE}/python-native:" 2EXTRANATIVEPATH += "python-native"
3DEPENDS += " python-native " 3DEPENDS += " python-native "