]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass/native.bbclass: Use autotools_stage_all instead of oe_runmake insta...
authorRichard Purdie <richard@openedhand.com>
Wed, 19 Mar 2008 15:35:13 +0000 (15:35 +0000)
committerRichard Purdie <richard@openedhand.com>
Wed, 19 Mar 2008 15:35:13 +0000 (15:35 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4056 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/autotools.bbclass
meta/classes/native.bbclass

index 733ee81e14df26f18368f98001981b6b245231ef..7a87cc0bf81c1fe94bdcb3180693ae45514a7850 100644 (file)
@@ -1,5 +1,8 @@
 inherit base
 
+# use autotools_stage_all for native packages
+AUTOTOOLS_NATIVE_STAGE_INSTALL = "1"
+
 def autotools_dep_prepend(d):
        import bb;
 
index 8f2b6f3fec7b864a3ac4490d76d6f13ea3995cea..ddbbc04e19fccee61ea13b61a9a2edacb59db249 100644 (file)
@@ -1,5 +1,3 @@
-inherit base
-
 # Native packages are built indirectly via dependency,
 # no need for them to be a direct target of 'world'
 EXCLUDE_FROM_WORLD = "1"
@@ -78,7 +76,12 @@ export oldincludedir = "${STAGING_DIR_NATIVE}${layout_includedir}"
 do_stage () {
        if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ]
        then
-               oe_runmake install
+               if [ "${AUTOTOOLS_NATIVE_STAGE_INSTALL}" != "1"]
+               then
+                       oe_runmake install
+               else
+                       autotools_stage_all
+               fi
        fi
 }