native.bbclass: Run java_stage if JAVA_NATIVE_STAGE_INSTALL is set.
authorRobert Schuster <thebohemian@openembedded.org>
Fri, 17 Oct 2008 09:36:50 +0000 (11:36 +0200)
committerRobert Schuster <thebohemian@openembedded.org>
Wed, 22 Oct 2008 12:52:09 +0000 (14:52 +0200)
classes/native.bbclass

index 8f79935..61048b6 100644 (file)
@@ -80,11 +80,14 @@ export oldincludedir = "${STAGING_DIR_NATIVE}${layout_includedir}"
 do_stage () {
        if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ]
        then
-               if [ "${AUTOTOOLS_NATIVE_STAGE_INSTALL}" != "1" ]
+               if [ "${JAVA_NATIVE_STAGE_INSTALL}" = "1" ]
+               then
+                       java_stage
+               elif [ "${AUTOTOOLS_NATIVE_STAGE_INSTALL}" = "1" ]
                then
-                       oe_runmake install
-               else
                        autotools_stage_all
+               else
+                       oe_runmake install
                fi
        fi
 }