From 7c975383279291a314e95301e8cf2a4ead17c856 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 2 Nov 2009 17:27:05 +0000 Subject: binconfig/pkgconfig.bbclass: Convert staging functions into SYSROOT_PREPROCESS_FUNCS operating on SYSROOT_DESTDIR Signed-off-by: Richard Purdie --- meta/classes/base.bbclass | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/classes/base.bbclass') 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 # Could be compile but populate_staging and do_install shouldn't run at the same time addtask populate_staging after do_install +SYSROOT_PREPROCESS_FUNCS ?= "" +SYSROOT_DESTDIR = "${WORKDIR}/sysroot-destdir/" + python do_populate_staging () { # # Only run do_stage if its not the empty default above @@ -1003,6 +1006,8 @@ python do_populate_staging () { stagefunc = bb.data.getVar('do_stage', d, 1).strip() if stagefunc != "base_do_stage": bb.build.exec_func('do_stage', d) + for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split(): + bb.build.exec_func(f, d) } addtask install after do_compile -- cgit v1.2.3-54-g00ecf