diff options
Diffstat (limited to 'recipes/meta/cross-linkage_1.0.bb')
-rw-r--r-- | recipes/meta/cross-linkage_1.0.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes/meta/cross-linkage_1.0.bb b/recipes/meta/cross-linkage_1.0.bb new file mode 100644 index 0000000000..9be09aa6f8 --- /dev/null +++ b/recipes/meta/cross-linkage_1.0.bb @@ -0,0 +1,35 @@ +DESCRIPTION = "cross-linkage sets up symlinks between cross and staging so the compiler can find things" +SECTION = "devel" +PACKAGES = "" + +INHIBIT_DEFAULT_DEPS = "1" +EXCLUDE_FROM_WORLD = "1" +PR = "r0" + +SRC_URI = "" + +do_configure() { + : +} + +do_compile () { + : +} + +do_install() { + : +} + +do_stage () { + install -d ${CROSS_DIR}/${TARGET_SYS}/ + if [ -e ${CROSS_DIR}/${TARGET_SYS}/include ]; then + cp -pPRr ${CROSS_DIR}/${TARGET_SYS}/include/* ${STAGING_INCDIR} + mv ${CROSS_DIR}/${TARGET_SYS}/include/ ${CROSS_DIR}/${TARGET_SYS}/include-oldbackup + fi + ln -s ${STAGING_INCDIR}/ ${CROSS_DIR}/${TARGET_SYS}/include + if [ -e ${CROSS_DIR}/${TARGET_SYS}/lib ]; then + cp -pPRr ${CROSS_DIR}/${TARGET_SYS}/lib/* ${STAGING_LIBDIR} + mv ${CROSS_DIR}/${TARGET_SYS}/lib/ ${CROSS_DIR}/${TARGET_SYS}/lib-oldbackup + fi + ln -s ${STAGING_LIBDIR} ${CROSS_DIR}/${TARGET_SYS}/lib +} |