summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-02 17:27:05 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-13 12:15:22 +0000
commit7c975383279291a314e95301e8cf2a4ead17c856 (patch)
treec6d258c48f51ecc647692117548b4549f8aa6adb /meta/classes/base.bbclass
parent6ea78d648951e5bbe9669412c0863daaf7f49ca5 (diff)
downloadpoky-7c975383279291a314e95301e8cf2a4ead17c856.tar.gz
binconfig/pkgconfig.bbclass: Convert staging functions into SYSROOT_PREPROCESS_FUNCS operating on SYSROOT_DESTDIR
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
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