summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 9e78ce2927..45adeb9e6e 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -996,6 +996,9 @@ do_populate_staging[dirs] = "${STAGING_DIR_TARGET}/${bindir} ${STAGING_DIR_TARGE
996# Could be compile but populate_staging and do_install shouldn't run at the same time 996# Could be compile but populate_staging and do_install shouldn't run at the same time
997addtask populate_staging after do_install 997addtask populate_staging after do_install
998 998
999SYSROOT_PREPROCESS_FUNCS ?= ""
1000SYSROOT_DESTDIR = "${WORKDIR}/sysroot-destdir/"
1001
999python do_populate_staging () { 1002python do_populate_staging () {
1000 # 1003 #
1001 # Only run do_stage if its not the empty default above 1004 # Only run do_stage if its not the empty default above
@@ -1003,6 +1006,8 @@ python do_populate_staging () {
1003 stagefunc = bb.data.getVar('do_stage', d, 1).strip() 1006 stagefunc = bb.data.getVar('do_stage', d, 1).strip()
1004 if stagefunc != "base_do_stage": 1007 if stagefunc != "base_do_stage":
1005 bb.build.exec_func('do_stage', d) 1008 bb.build.exec_func('do_stage', d)
1009 for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split():
1010 bb.build.exec_func(f, d)
1006} 1011}
1007 1012
1008addtask install after do_compile 1013addtask install after do_compile