From aa04ad46bbad56f7a385147bd393b399119187ac Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 27 May 2014 14:39:52 +0000 Subject: gcc/nativesdk-mingw-w84-headers: Move symlinking to headers recipe The symlinking is really an artefact of the way the headers are provided. Move all the code into one place. Also have the initial compiler depend on the headers else the build can fail. High parallelism prevented the issue from being seen in most cases. Signed-off-by: Richard Purdie --- recipes-devtools/gcc/gcc-crosssdk-initial_4.8.bbappend | 9 +-------- recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_2.0.8.bb | 8 ++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/recipes-devtools/gcc/gcc-crosssdk-initial_4.8.bbappend b/recipes-devtools/gcc/gcc-crosssdk-initial_4.8.bbappend index 7a7ca37..1c09342 100644 --- a/recipes-devtools/gcc/gcc-crosssdk-initial_4.8.bbappend +++ b/recipes-devtools/gcc/gcc-crosssdk-initial_4.8.bbappend @@ -1,8 +1 @@ - -do_install_append_mingw32 () { - ln -s ${STAGING_DIR_TARGET}/${target_exec_prefix}/ ${D}/${exec_prefix}/${TARGET_SYS} -} - -sysroot_stage_all_append_mingw32 () { - sysroot_stage_dir ${D}${exec_prefix}/${TARGET_SYS} ${SYSROOT_DESTDIR}${exec_prefix}/${TARGET_SYS} -} \ No newline at end of file +DEPENDS_append_mingw32 = " nativesdk-mingw-w64-headers" diff --git a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_2.0.8.bb b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_2.0.8.bb index b12a04e..a3d0e46 100644 --- a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_2.0.8.bb +++ b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_2.0.8.bb @@ -26,8 +26,16 @@ do_compile() { : } +FILES_${PN} += "${exec_prefix}/${TARGET_SYS}" + do_install_append() { # Move files to include folder where gcc-crosssdk-initial is looking mv ${D}${exec_prefix}/${HOST_SYS}/include ${D}${exec_prefix} rmdir ${D}${exec_prefix}/${HOST_SYS} + + ln -s ./ ${D}/${exec_prefix}/${HOST_SYS} +} + +sysroot_stage_all_append_mingw32 () { + ln -s ./ ${SYSROOT_DESTDIR}${exec_prefix}/${HOST_SYS} } -- cgit v1.2.3-54-g00ecf