diff options
| -rw-r--r-- | meta/recipes-support/icu/icu_74-2.bb | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/meta/recipes-support/icu/icu_74-2.bb b/meta/recipes-support/icu/icu_74-2.bb index 8352bf2a5b..53853e24a5 100644 --- a/meta/recipes-support/icu/icu_74-2.bb +++ b/meta/recipes-support/icu/icu_74-2.bb | |||
| @@ -30,7 +30,7 @@ TARGET_CXXFLAGS:append = "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', ' | |||
| 30 | 30 | ||
| 31 | ASNEEDED = "" | 31 | ASNEEDED = "" |
| 32 | 32 | ||
| 33 | do_compile:prepend:class-target () { | 33 | remove_build_host_references_from_libicutu () { |
| 34 | # Make sure certain build host references do not end up being compiled | 34 | # Make sure certain build host references do not end up being compiled |
| 35 | # in the image. This only affects libicutu and icu-dbg | 35 | # in the image. This only affects libicutu and icu-dbg |
| 36 | sed \ | 36 | sed \ |
| @@ -39,6 +39,14 @@ do_compile:prepend:class-target () { | |||
| 39 | -i ${B}/tools/toolutil/Makefile | 39 | -i ${B}/tools/toolutil/Makefile |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | do_compile:prepend:class-target () { | ||
| 43 | remove_build_host_references_from_libicutu | ||
| 44 | } | ||
| 45 | |||
| 46 | do_compile:prepend:class-nativesdk () { | ||
| 47 | remove_build_host_references_from_libicutu | ||
| 48 | } | ||
| 49 | |||
| 42 | PREPROCESS_RELOCATE_DIRS = "${datadir}/${BPN}/${PV}" | 50 | PREPROCESS_RELOCATE_DIRS = "${datadir}/${BPN}/${PV}" |
| 43 | do_install:append:class-native() { | 51 | do_install:append:class-native() { |
| 44 | mkdir -p ${D}/${STAGING_ICU_DIR_NATIVE}/config | 52 | mkdir -p ${D}/${STAGING_ICU_DIR_NATIVE}/config |
| @@ -49,6 +57,15 @@ do_install:append:class-native() { | |||
| 49 | cp -r ${B}/tools ${D}/${STAGING_ICU_DIR_NATIVE} | 57 | cp -r ${B}/tools ${D}/${STAGING_ICU_DIR_NATIVE} |
| 50 | } | 58 | } |
| 51 | 59 | ||
| 60 | remove_build_host_references() { | ||
| 61 | sed -i \ | ||
| 62 | -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ | ||
| 63 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
| 64 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
| 65 | ${D}/${libdir}/${BPN}/${@icu_install_folder(d)}/Makefile.inc \ | ||
| 66 | ${D}/${libdir}/${BPN}/${@icu_install_folder(d)}/pkgdata.inc | ||
| 67 | } | ||
| 68 | |||
| 52 | do_install:append:class-target() { | 69 | do_install:append:class-target() { |
| 53 | # The native pkgdata can not generate the correct data file. | 70 | # The native pkgdata can not generate the correct data file. |
| 54 | # Use icupkg to re-generate it. | 71 | # Use icupkg to re-generate it. |
| @@ -56,14 +73,12 @@ do_install:append:class-target() { | |||
| 56 | rm -f ${D}/${datadir}/${BPN}/${@icu_install_folder(d)}/icudt${ICU_MAJOR_VER}b.dat | 73 | rm -f ${D}/${datadir}/${BPN}/${@icu_install_folder(d)}/icudt${ICU_MAJOR_VER}b.dat |
| 57 | icupkg -tb ${S}/data/in/icudt${ICU_MAJOR_VER}l.dat ${D}/${datadir}/${BPN}/${@icu_install_folder(d)}/icudt${ICU_MAJOR_VER}b.dat | 74 | icupkg -tb ${S}/data/in/icudt${ICU_MAJOR_VER}l.dat ${D}/${datadir}/${BPN}/${@icu_install_folder(d)}/icudt${ICU_MAJOR_VER}b.dat |
| 58 | fi | 75 | fi |
| 59 | 76 | ||
| 60 | # Remove build host references... | 77 | remove_build_host_references |
| 61 | sed -i \ | 78 | } |
| 62 | -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ | 79 | |
| 63 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | 80 | do_install:append:class-nativesdk() { |
| 64 | -e 's:${HOSTTOOLS_DIR}/::g' \ | 81 | remove_build_host_references |
| 65 | ${D}/${libdir}/${BPN}/${@icu_install_folder(d)}/Makefile.inc \ | ||
| 66 | ${D}/${libdir}/${BPN}/${@icu_install_folder(d)}/pkgdata.inc | ||
| 67 | } | 82 | } |
| 68 | 83 | ||
| 69 | PACKAGES =+ "libicudata libicuuc libicui18n libicutu libicuio" | 84 | PACKAGES =+ "libicudata libicuuc libicui18n libicutu libicuio" |
