scons.bbclass: add staging function
authorwoglinde <heinold@inf.fu-berlin.de>
Sat, 28 Mar 2009 14:56:07 +0000 (15:56 +0100)
committerwoglinde <heinold@inf.fu-berlin.de>
Tue, 31 Mar 2009 08:01:04 +0000 (10:01 +0200)
classes/scons.bbclass

index b7007b0..cd5de61 100644 (file)
@@ -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