]> code.ossystems Code Review - openembedded-core.git/commitdiff
native.bbclass: Drop INHIBIT_NATIVE_STAGE_INSTALL function and wrap logic in a do_sta...
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 11 Jun 2009 13:43:45 +0000 (14:43 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 11 Jun 2009 13:43:45 +0000 (14:43 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/native.bbclass

index 98b62a05499a1d841047e8111f49d8c13c57abf9..de6b6fff42b394d1a1bcdd0e10eb48e2c30796ac 100644 (file)
@@ -77,20 +77,26 @@ export libdir = "${STAGING_DIR_NATIVE}${layout_libdir}"
 export includedir = "${STAGING_DIR_NATIVE}${layout_includedir}"
 export oldincludedir = "${STAGING_DIR_NATIVE}${layout_includedir}"
 
-do_stage () {
-       if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ]
+#
+# If changing this function, please make sure packaged-staging.bbclass is
+# updated too
+#
+do_stage_native () {
+       # If autotools is active, use the autotools staging function, else 
+       # use our "make install" equivalent
+       if [ "${AUTOTOOLS_NATIVE_STAGE_INSTALL}" == "1" ]
        then
-               # If autotools is active, use the autotools staging function, else 
-               # use our "make install" equivalent
-               if [ "${AUTOTOOLS_NATIVE_STAGE_INSTALL}" != "1" ]
-               then
-                       oe_runmake install
-               else
-                       autotools_stage_all
-               fi
+               autotools_stage_all
+       else
+               oe_runmake install
        fi
 }
 
+
+do_stage () {
+       do_stage_native
+}
+
 do_install () {
        true
 }