aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwoglinde <heinold@inf.fu-berlin.de>2009-03-28 15:56:07 +0100
committerwoglinde <heinold@inf.fu-berlin.de>2009-03-31 10:01:04 +0200
commit20dc6592d98595aac0a107f4eb06e27b915ee0db (patch)
treee20d6ab3a9767668abdb92c8a6bf47a41c563ca1
parentc7b72aee55f207c5ed7b267d054eb32947fc66ef (diff)
downloadopenembedded-20dc6592d98595aac0a107f4eb06e27b915ee0db.tar.gz
scons.bbclass: add staging function
-rw-r--r--classes/scons.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/scons.bbclass b/classes/scons.bbclass
index b7007b03a6..cd5de61e6d 100644
--- a/classes/scons.bbclass
+++ b/classes/scons.bbclass
@@ -11,4 +11,10 @@ scons_do_install() {
oefatal "scons install execution failed."
}
-EXPORT_FUNCTIONS do_compile do_install
+scons_do_stage() {
+ install -d ${D}${prefix}
+ ${STAGING_BINDIR_NATIVE}/scons PREFIX=${STAGING_DIR_HOST}/${layout_prefix} prefix=${STAGING_DIR_HOST}/${layout_prefix} install || \
+ oefatal "scons stage execution failed."
+}
+
+EXPORT_FUNCTIONS do_compile do_install do_stage