diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/cross.bbclass | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/classes/cross.bbclass b/classes/cross.bbclass index ad8b847213..6037d692b5 100644 --- a/classes/cross.bbclass +++ b/classes/cross.bbclass @@ -47,10 +47,21 @@ exec_prefix = "${prefix}" base_sbindir = "${base_prefix}/bin" sbindir = "${exec_prefix}/bin" +do_install () { + oe_runmake 'DESTDIR=${D}' install +} + do_stage () { - oe_runmake install + autotools_stage_all } -do_install () { - : +# +# Override the default sysroot staging copy since this won't look like a target system +# +sysroot_stage_all() { + sysroot_stage_dir ${D} ${SYSROOT_DESTDIR} + install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ + install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ + mv ${SYSROOT_DESTDIR}${target_base_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ || true + mv ${SYSROOT_DESTDIR}${target_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ || true } |