diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/native.bbclass | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 98b62a0549..de6b6fff42 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -77,20 +77,26 @@ export libdir = "${STAGING_DIR_NATIVE}${layout_libdir}" | |||
77 | export includedir = "${STAGING_DIR_NATIVE}${layout_includedir}" | 77 | export includedir = "${STAGING_DIR_NATIVE}${layout_includedir}" |
78 | export oldincludedir = "${STAGING_DIR_NATIVE}${layout_includedir}" | 78 | export oldincludedir = "${STAGING_DIR_NATIVE}${layout_includedir}" |
79 | 79 | ||
80 | do_stage () { | 80 | # |
81 | if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ] | 81 | # If changing this function, please make sure packaged-staging.bbclass is |
82 | # updated too | ||
83 | # | ||
84 | do_stage_native () { | ||
85 | # If autotools is active, use the autotools staging function, else | ||
86 | # use our "make install" equivalent | ||
87 | if [ "${AUTOTOOLS_NATIVE_STAGE_INSTALL}" == "1" ] | ||
82 | then | 88 | then |
83 | # If autotools is active, use the autotools staging function, else | 89 | autotools_stage_all |
84 | # use our "make install" equivalent | 90 | else |
85 | if [ "${AUTOTOOLS_NATIVE_STAGE_INSTALL}" != "1" ] | 91 | oe_runmake install |
86 | then | ||
87 | oe_runmake install | ||
88 | else | ||
89 | autotools_stage_all | ||
90 | fi | ||
91 | fi | 92 | fi |
92 | } | 93 | } |
93 | 94 | ||
95 | |||
96 | do_stage () { | ||
97 | do_stage_native | ||
98 | } | ||
99 | |||
94 | do_install () { | 100 | do_install () { |
95 | true | 101 | true |
96 | } | 102 | } |