Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | require recipes-core/glibc/glibc-package.inc |
| 2 | |
| 3 | require license.inc |
| 4 | |
| 5 | INHIBIT_DEFAULT_DEPS = "1" |
| 6 | |
| 7 | LIC_FILES_CHKSUM = "\ |
| 8 | file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \ |
| 9 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \ |
| 10 | " |
| 11 | |
| 12 | PROVIDES += "\ |
| 13 | linux-libc-headers \ |
| 14 | virtual/${TARGET_PREFIX}gcc \ |
| 15 | virtual/${TARGET_PREFIX}g++ \ |
| 16 | virtual/${TARGET_PREFIX}gcc-initial \ |
| 17 | virtual/${TARGET_PREFIX}binutils \ |
| 18 | virtual/${TARGET_PREFIX}libc-for-gcc \ |
| 19 | virtual/${TARGET_PREFIX}compilerlibs \ |
| 20 | virtual/libc \ |
| 21 | virtual/libintl \ |
| 22 | virtual/libiconv \ |
| 23 | virtual/crypt \ |
| 24 | glibc-mtrace \ |
| 25 | glibc-thread-db \ |
| 26 | glibc \ |
| 27 | libc-mtrace \ |
| 28 | gcc-runtime \ |
| 29 | libgcc \ |
| 30 | libg2c \ |
| 31 | libg2c-dev \ |
| 32 | libssp \ |
| 33 | libssp-dev \ |
| 34 | libssp-staticdev \ |
| 35 | libgfortran \ |
| 36 | libgfortran-dev \ |
| 37 | libgfortran-staticdev \ |
| 38 | libmudflap \ |
| 39 | libmudflap-dev \ |
| 40 | libgomp \ |
| 41 | libgomp-dev \ |
| 42 | libgomp-staticdev \ |
| 43 | libitm \ |
| 44 | libitm-dev \ |
| 45 | libitm-staticdev \ |
| 46 | libquadmath \ |
| 47 | libquadmath-dev \ |
| 48 | libquadmath-staticdev \ |
| 49 | virtual/linux-libc-headers \ |
| 50 | libgcov-staticdev \ |
| 51 | virtual/libc-locale \ |
| 52 | " |
| 53 | |
| 54 | PV = "${EAT_VER_MAIN}" |
| 55 | |
| 56 | BINV = "${EAT_VER_GCC}" |
| 57 | |
| 58 | SRC_URI = "file://SUPPORTED" |
| 59 | |
| 60 | do_install() { |
| 61 | # Add stubs for files OE-core expects |
| 62 | install -d ${S}/nscd/ |
| 63 | touch ${S}/nscd/nscd.init |
| 64 | touch ${S}/nscd/nscd.conf |
| 65 | touch ${S}/nscd/nscd.service |
| 66 | touch ${S}/../makedbs.sh |
| 67 | |
| 68 | install -d ${D}${base_libdir} |
| 69 | install -d ${D}${base_sbindir} |
| 70 | install -d ${D}${bindir} |
| 71 | install -d ${D}${sbindir} |
| 72 | install -d ${D}${libdir} |
| 73 | install -d ${D}${libexecdir} |
| 74 | install -d ${D}${datadir} |
| 75 | install -d ${D}${includedir} |
| 76 | install -d ${D}/include |
| 77 | install -d ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC} |
| 78 | install -d ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC} |
| 79 | |
| 80 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" |
| 81 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/${EAT_LIBDIR}/* ${D}${base_libdir} |
| 82 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/* ${D}${base_libdir} |
| 83 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/${EAT_LIBDIR}/* ${D}${libdir} |
| 84 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/share/* ${D}${datadir} |
| 85 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/include/* ${D}${includedir} |
| 86 | |
| 87 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/include/* ${D}${includedir} |
| 88 | if [ -d ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ]; then |
| 89 | mv ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ${D}${includedir}/c++/${EAT_VER_GCC}/${TARGET_SYS} |
| 90 | fi |
| 91 | ln -sf ../usr/include/c++ ${D}/include/c++ |
| 92 | |
| 93 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/bin/* ${D}${bindir} |
| 94 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/sbin/* ${D}${sbindir} |
| 95 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/sbin/* ${D}${base_sbindir} |
| 96 | rm -rf ${D}${bindir}/gdbserver |
| 97 | sed -i -e 's#/arm/tools/gnu/bash/4.2/rhe6-x86_64##' ${D}${bindir}/tzselect |
| 98 | sed -i -e 's#/arm/tools/gnu/bash/4.2/rhe6-x86_64##' ${D}${bindir}/ldd |
| 99 | sed -i -e 's#/usr/bin/bash#/bin/sh#' ${D}${bindir}/tzselect |
| 100 | sed -i -e 's#/usr/bin/bash#/bin/sh#' ${D}${bindir}/ldd |
| 101 | sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/tzselect |
| 102 | sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/ldd |
| 103 | |
| 104 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/crt*.o ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ |
| 105 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ |
| 106 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcov* ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ |
| 107 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ |
| 108 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/finclude ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ |
| 109 | |
| 110 | # fix up the copied symlinks (they are still pointing to the multiarch directory) |
| 111 | linker_name="${@bb.utils.contains("TUNE_FEATURES", "aarch64", "ld-linux-aarch64.so.1", bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "ld-linux-armhf.so.3", "ld-linux.so.3",d), d)}" |
| 112 | if [ -f ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/ld-${EAT_VER_LIBC}.so ]; then |
| 113 | ln -sf ld-${EAT_VER_LIBC}.so ${D}${base_libdir}/${linker_name} |
| 114 | else |
| 115 | cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/lib/${linker_name} ${D}${base_libdir}/ |
| 116 | fi |
| 117 | ln -sf ../../lib/librt.so.1 ${D}${libdir}/librt.so |
| 118 | ln -sf ../../lib/libcrypt.so.1 ${D}${libdir}/libcrypt.so |
| 119 | ln -sf ../../lib/libresolv.so.2 ${D}${libdir}/libresolv.so |
| 120 | ln -sf ../../lib/libnss_hesiod.so.2 ${D}${libdir}/libnss_hesiod.so |
| 121 | ln -sf ../../lib/libutil.so.1 ${D}${libdir}/libutil.so |
| 122 | ln -sf ../../lib/libBrokenLocale.so.1 ${D}${libdir}/libBrokenLocale.so |
| 123 | ln -sf ../../lib/libpthread.so.0 ${D}${libdir}/libpthread.so |
| 124 | ln -sf ../../lib/libthread_db.so.1 ${D}${libdir}/libthread_db.so |
| 125 | ln -sf ../../lib/libanl.so.1 ${D}${libdir}/libanl.so |
| 126 | ln -sf ../../lib/libdl.so.2 ${D}${libdir}/libdl.so |
| 127 | ln -sf ../../lib/libnss_db.so.2 ${D}${libdir}/libnss_db.so |
| 128 | ln -sf ../../lib/libnss_dns.so.2 ${D}${libdir}/libnss_dns.so |
| 129 | ln -sf ../../lib/libnss_files.so.2 ${D}${libdir}/libnss_files.so |
| 130 | ln -sf ../../lib/libnss_compat.so.2 ${D}${libdir}/libnss_compat.so |
| 131 | ln -sf ../../lib/libm.so.6 ${D}${libdir}/libm.so |
| 132 | ln -sf ../../lib/libc_malloc_debug.so.0 ${D}${libdir}/libc_malloc_debug.so |
| 133 | |
| 134 | # remove potential .so duplicates from base_libdir |
| 135 | # for all symlinks created above in libdir |
| 136 | rm -f ${D}${base_libdir}/librt.so |
| 137 | rm -f ${D}${base_libdir}/libcrypt.so |
| 138 | rm -f ${D}${base_libdir}/libresolv.so |
| 139 | rm -f ${D}${base_libdir}/libnss_hesiod.so |
| 140 | rm -f ${D}${base_libdir}/libutil.so |
| 141 | rm -f ${D}${base_libdir}/libBrokenLocale.so |
| 142 | rm -f ${D}${base_libdir}/libpthread.so |
| 143 | rm -f ${D}${base_libdir}/libthread_db.so |
| 144 | rm -f ${D}${base_libdir}/libanl.so |
| 145 | rm -f ${D}${base_libdir}/libdl.so |
| 146 | rm -f ${D}${base_libdir}/libnss_db.so |
| 147 | rm -f ${D}${base_libdir}/libnss_dns.so |
| 148 | rm -f ${D}${base_libdir}/libnss_files.so |
| 149 | rm -f ${D}${base_libdir}/libnss_compat.so |
| 150 | rm -f ${D}${base_libdir}/libm.so |
| 151 | |
| 152 | # Move these completely to ${libdir} and delete duplicates in ${base_libdir} |
| 153 | for lib in asan hwasan atomic gfortran gomp itm lsan sanitizer stdc++ tsan ubsan; do |
| 154 | if [ -e ${D}${base_libdir}/lib${lib}.spec ] ; then |
| 155 | mv ${D}${base_libdir}/lib${lib}.spec ${D}${libdir} |
| 156 | fi |
| 157 | if [ -e ${D}${base_libdir}/lib${lib}.a ] ; then |
| 158 | mv ${D}${base_libdir}/lib${lib}.a ${D}${libdir} |
| 159 | fi |
| 160 | rm -f ${D}${base_libdir}/lib${lib}* |
| 161 | done |
| 162 | |
| 163 | # Clean up duplicate libs that are both in base_libdir and libdir |
| 164 | rm -f ${D}${libdir}/libgcc* |
| 165 | |
| 166 | # Besides ld-${EAT_VER_LIBC}.so, other libs can have duplicates like lib*-${EAT_VER_LIBC}.so |
| 167 | # Only remove them if both are regular files and are identical |
| 168 | for i in ${D}${base_libdir}/lib*-${EAT_VER_LIBC}.so; do |
| 169 | if [ ! -e $i ] ; then |
| 170 | continue |
| 171 | fi |
| 172 | |
| 173 | f=$(echo $i | sed 's/-${EAT_VER_LIBC}//') |
| 174 | l=$(ls $f.*) |
| 175 | if [ $(readlink -f $i ) = $l ]; then |
| 176 | echo "$i is a symlink of $l, keep it" |
| 177 | elif [ $(readlink -f $l ) = $i ]; then |
| 178 | echo "$l is a symlink of $i, keep it" |
| 179 | else |
| 180 | cmp -s $i $l |
| 181 | if [ $? -eq 0 ]; then |
| 182 | echo "$i is a duplicate of $l, remove it" |
| 183 | rm $i |
| 184 | else |
| 185 | echo "$i and $l are different files, keep them both" |
| 186 | fi |
| 187 | fi |
| 188 | done |
| 189 | |
| 190 | if [ -d ${D}${base_libdir}/arm-linux-gnueabi ]; then |
| 191 | rm -rf ${D}${base_libdir}/arm-linux-gnueabi |
| 192 | fi |
| 193 | |
| 194 | if [ -d ${D}${base_libdir}/ldscripts ]; then |
| 195 | rm -rf ${D}${base_libdir}/ldscripts |
| 196 | fi |
| 197 | |
| 198 | # Provided by libnsl2 |
| 199 | rm -rf ${D}${includedir}/rpcsvc/yppasswd.* |
| 200 | # Provided by quota |
| 201 | rm -rf ${D}${includedir}/rpcsvc/rquota.* |
| 202 | |
| 203 | if [ -f ${D}${libdir}/libc.so ];then |
| 204 | sed -i -e "s# /${EAT_LIBDIR}/${EAT_TARGET_SYS}# ../../${EAT_LIBDIR}#g" -e "s# /usr/${EAT_LIBDIR}/# /usr/lib/#g" -e "s# /usr/${EAT_LIBDIR}/${EAT_TARGET_SYS}# .#g" -e "s# /${EAT_LIBDIR}/ld-linux# ../../${EAT_LIBDIR}/ld-linux#g" ${D}${libdir}/libc.so |
| 205 | sed -i -e "s# /${EAT_LIBDIR}/libc.so.6# /lib/libc.so.6#g" ${D}${libdir}/libc.so |
| 206 | sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libc.so |
| 207 | fi |
| 208 | |
| 209 | if [ -f ${D}${base_libdir}/libc.so ];then |
| 210 | sed -i -e "s# /${EAT_LIBDIR}/${EAT_TARGET_SYS}# ../../lib#g" -e "s# /usr/${EAT_LIBDIR}/${EAT_TARGET_SYS}# .#g" -e "s# /${EAT_LIBDIR}/# /lib/#g" ${D}${base_libdir}/libc.so |
| 211 | if [ -f ${D}${base_libdir}/libc.so.6 ]; then |
| 212 | sed -i -e "s# /usr/${EAT_LIBDIR}/libc.so.6# /lib/libc.so.6#g" -e "s# /${EAT_LIBDIR}/libc.so.6# /lib/libc.so.6#g" ${D}${base_libdir}/libc.so.6 |
| 213 | fi |
| 214 | fi |
| 215 | |
| 216 | # Remove if empty |
| 217 | rmdir ${D}${bindir} || true |
| 218 | rmdir ${D}${sbindir} || true |
| 219 | rmdir ${D}${base_sbindir} || true |
| 220 | rmdir ${D}${libexecdir} || true |
| 221 | |
| 222 | # Remove unused /usr/share/info/dir |
| 223 | rm -f ${D}${infodir}/dir |
| 224 | } |
| 225 | |
| 226 | # External toolchain doesn't provide multilib support so make corresponding |
| 227 | # install API as an empty API to avoid an unnecessary errors. |
| 228 | oe_multilib_header () { |
| 229 | return |
| 230 | } |
| 231 | |
| 232 | PACKAGES_DYNAMIC = "^locale-base-.* \ |
| 233 | ^glibc-gconv-.* ^glibc-charmap-.* ^glibc-localedata-.* ^glibc-binary-localedata-.* \ |
| 234 | ^${MLPREFIX}glibc-gconv$" |
| 235 | |
| 236 | # PACKAGES is split up according to the 'source' recipes/includes in OE-core |
| 237 | # Stylistic differences are kept to make copy/pasting easier. |
| 238 | |
| 239 | # From gcc-runtime.inc |
| 240 | |
| 241 | PACKAGES += "\ |
| 242 | gcc-runtime-dbg \ |
| 243 | libstdc++ \ |
| 244 | libstdc++-precompile-dev \ |
| 245 | libstdc++-dev \ |
| 246 | libstdc++-staticdev \ |
| 247 | libg2c \ |
| 248 | libg2c-dev \ |
| 249 | libssp \ |
| 250 | libssp-dev \ |
| 251 | libssp-staticdev \ |
| 252 | libmudflap \ |
| 253 | libmudflap-dev \ |
| 254 | libmudflap-staticdev \ |
| 255 | libquadmath \ |
| 256 | libquadmath-dev \ |
| 257 | libquadmath-staticdev \ |
| 258 | libgomp \ |
| 259 | libgomp-dev \ |
| 260 | libgomp-staticdev \ |
| 261 | libatomic \ |
| 262 | libatomic-dev \ |
| 263 | libatomic-staticdev \ |
| 264 | libitm \ |
| 265 | libitm-dev \ |
| 266 | libitm-staticdev \ |
| 267 | " |
| 268 | |
| 269 | # From gcc-sanitizers.inc |
| 270 | |
| 271 | PACKAGES += "gcc-sanitizers gcc-sanitizers-dbg" |
| 272 | PACKAGES += "libasan libubsan liblsan libtsan" |
| 273 | PACKAGES += "libasan-dev libubsan-dev liblsan-dev libtsan-dev" |
| 274 | PACKAGES += "libasan-staticdev libubsan-staticdev liblsan-staticdev libtsan-staticdev" |
| 275 | |
| 276 | # From libgfortran.inc: |
| 277 | |
| 278 | PACKAGES += "\ |
| 279 | libgfortran-dbg \ |
| 280 | libgfortran \ |
| 281 | libgfortran-dev \ |
| 282 | libgfortran-staticdev \ |
| 283 | " |
| 284 | |
| 285 | # libgcc.inc uses ${PN}, so replace that |
| 286 | |
| 287 | PACKAGES += "\ |
| 288 | libgcc \ |
| 289 | libgcc-dev \ |
| 290 | libgcc-dbg \ |
| 291 | " |
| 292 | |
| 293 | # ... and the leftovers |
| 294 | |
| 295 | PACKAGES =+ "\ |
| 296 | ${PN}-mtrace \ |
| 297 | libgcov-staticdev \ |
| 298 | linux-libc-headers \ |
| 299 | linux-libc-headers-dev \ |
| 300 | " |
| 301 | |
| 302 | # Re-order PACKAGES list in order to shift ${PN}-dev towards the end as |
| 303 | # it is meant to pick up remaining dev libraries and headers that aren't |
| 304 | # picked up by other packages. And since some static libraries needs to |
| 305 | # be packaged in ${PN}-dev, so we need to keep ${PN}-staticdev later in |
| 306 | # order. |
| 307 | |
| 308 | PACKAGES := "${@oe.utils.str_filter_out('${PN}-dev', '${PACKAGES}', d)}" |
| 309 | PACKAGES := "${@oe.utils.str_filter_out('${PN}-staticdev', '${PACKAGES}', d)}" |
| 310 | PACKAGES += "\ |
| 311 | ${PN}-dev \ |
| 312 | ${PN}-staticdev \ |
| 313 | " |
| 314 | |
| 315 | INSANE_SKIP:${PN}-dbg = "staticdev" |
| 316 | INSANE_SKIP:${PN}-utils += "ldflags" |
| 317 | INSANE_SKIP:libstdc++ += "ldflags" |
| 318 | INSANE_SKIP:libgfortran += "ldflags" |
| 319 | INSANE_SKIP:libgcc += "ldflags dev-deps" |
| 320 | INSANE_SKIP:libgcc-dev += "staticdev" |
| 321 | INSANE_SKIP:libgfortran += "ldflags dev-deps" |
| 322 | INSANE_SKIP:libstdc++ += "ldflags dev-deps" |
| 323 | INSANE_SKIP:libatomic += "ldflags" |
| 324 | INSANE_SKIP:libasan += "ldflags" |
| 325 | INSANE_SKIP:libubsan += "ldflags" |
| 326 | INSANE_SKIP:libssp += "ldflags" |
| 327 | INSANE_SKIP:libgomp += "ldflags" |
| 328 | INSANE_SKIP:libitm += "ldflags" |
| 329 | INSANE_SKIP:gdbserver += "ldflags" |
| 330 | |
| 331 | # OE-core has literally listed 'glibc' in LIBC_DEPENDENCIES :/ |
| 332 | RPROVIDES:${PN} = "glibc rtld(GNU_HASH)" |
| 333 | # Add runtime provides for the other libc* packages as well |
| 334 | RPROVIDES:${PN}-dev = "glibc-dev" |
| 335 | RPROVIDES:${PN}-doc = "glibc-doc" |
| 336 | RPROVIDES:${PN}-dbg = "glibc-dbg" |
| 337 | RPROVIDES:${PN}-pic = "glibc-pic" |
| 338 | RPROVIDES:${PN}-utils = "glibc-utils" |
| 339 | RPROVIDES:${PN}-mtrace = "glibc-mtrace libc-mtrace" |
| 340 | |
| 341 | PKG:${PN} = "glibc" |
| 342 | PKG:${PN}-dev = "glibc-dev" |
| 343 | PKG:${PN}-doc = "glibc-doc" |
| 344 | PKG:${PN}-dbg = "glibc-dbg" |
| 345 | PKG:${PN}-pic = "glibc-pic" |
| 346 | PKG:${PN}-utils = "glibc-utils" |
| 347 | PKG:${PN}-mtrace = "glibc-mtrace" |
| 348 | PKG:${PN}-gconv = "glibc-gconv" |
| 349 | PKG:${PN}-extra-nss = "glibc-extra-nss" |
| 350 | PKG:${PN}-thread-db = "glibc-thread-db" |
| 351 | PKG:${PN}-pcprofile = "glibc-pcprofile" |
| 352 | PKG:${PN}-staticdev = "glibc-staticdev" |
| 353 | |
| 354 | PKGV = "${EAT_VER_LIBC}" |
| 355 | PKGV:${PN} = "${EAT_VER_LIBC}" |
| 356 | PKGV:${PN}-dev = "${EAT_VER_LIBC}" |
| 357 | PKGV:${PN}-doc = "${EAT_VER_LIBC}" |
| 358 | PKGV:${PN}-dbg = "${EAT_VER_LIBC}" |
| 359 | PKGV:${PN}-pic = "${EAT_VER_LIBC}" |
| 360 | PKGV:${PN}-utils = "${EAT_VER_LIBC}" |
| 361 | PKGV:${PN}-mtrace = "${EAT_VER_LIBC}" |
| 362 | PKGV:${PN}-gconv = "${EAT_VER_LIBC}" |
| 363 | PKGV:${PN}-extra-nss = "${EAT_VER_LIBC}" |
| 364 | PKGV:${PN}-thread-db = "${EAT_VER_LIBC}" |
| 365 | PKGV:${PN}-pcprofile = "${EAT_VER_LIBC}" |
| 366 | PKGV:${PN}-staticdev = "${EAT_VER_LIBC}" |
| 367 | PKGV:catchsegv = "${EAT_VER_LIBC}" |
| 368 | PKGV:glibc-extra-nss = "${EAT_VER_LIBC}" |
| 369 | PKGV:glibc-thread-db = "${EAT_VER_LIBC}" |
| 370 | |
| 371 | PKGV:libmemusage = "${EAT_VER_LIBC}" |
| 372 | PKGV:libsegfault = "${EAT_VER_LIBC}" |
| 373 | PKGV:libsotruss = "${EAT_VER_LIBC}" |
| 374 | PKGV:sln = "${EAT_VER_LIBC}" |
| 375 | PKGV:nscd = "${EAT_VER_LIBC}" |
| 376 | PKGV:ldd = "${EAT_VER_LIBC}" |
| 377 | |
| 378 | PKGV:libasan-dev = "${EAT_VER_GCC}" |
| 379 | PKGV:libasan = "${EAT_VER_GCC}" |
| 380 | PKGV:libasan-staticdev = "${EAT_VER_GCC}" |
| 381 | PKGV:libatomic-dev = "${EAT_VER_GCC}" |
| 382 | PKGV:libatomic = "${EAT_VER_GCC}" |
| 383 | PKGV:libatomic-staticdev = "${EAT_VER_GCC}" |
| 384 | PKGV:libg2c-dev = "${EAT_VER_GCC}" |
| 385 | PKGV:libg2c = "${EAT_VER_GCC}" |
| 386 | PKGV:libgcc-dev = "${EAT_VER_GCC}" |
| 387 | PKGV:libgcc = "${EAT_VER_GCC}" |
| 388 | PKGV:libgfortran-dbg = "${EAT_VER_GCC}" |
| 389 | PKGV:libgfortran-dev = "${EAT_VER_GCC}" |
| 390 | PKGV:libgfortran = "${EAT_VER_GCC}" |
| 391 | PKGV:libgfortran-staticdev = "${EAT_VER_GCC}" |
| 392 | PKGV:libgomp-dev = "${EAT_VER_GCC}" |
| 393 | PKGV:libgomp = "${EAT_VER_GCC}" |
| 394 | PKGV:libgomp-staticdev = "${EAT_VER_GCC}" |
| 395 | PKGV:libitm-dev = "${EAT_VER_GCC}" |
| 396 | PKGV:libitm = "${EAT_VER_GCC}" |
| 397 | PKGV:libitm-staticdev = "${EAT_VER_GCC}" |
| 398 | PKGV:liblsan-dev = "${EAT_VER_GCC}" |
| 399 | PKGV:liblsan = "${EAT_VER_GCC}" |
| 400 | PKGV:liblsan-staticdev = "${EAT_VER_GCC}" |
| 401 | PKGV:libmudflap-dev = "${EAT_VER_GCC}" |
| 402 | PKGV:libmudflap = "${EAT_VER_GCC}" |
| 403 | PKGV:libmudflap-staticdev = "${EAT_VER_GCC}" |
| 404 | PKGV:libquadmath-dev = "${EAT_VER_GCC}" |
| 405 | PKGV:libquadmath = "${EAT_VER_GCC}" |
| 406 | PKGV:libquadmath-staticdev = "${EAT_VER_GCC}" |
| 407 | PKGV:libssp-dev = "${EAT_VER_GCC}" |
| 408 | PKGV:libssp = "${EAT_VER_GCC}" |
| 409 | PKGV:libssp-staticdev = "${EAT_VER_GCC}" |
| 410 | PKGV:libstdc++-dbg = "${EAT_VER_GCC}" |
| 411 | PKGV:libstdc++-dev = "${EAT_VER_GCC}" |
| 412 | PKGV:libstdc++ = "${EAT_VER_GCC}" |
| 413 | PKGV:libstdc++-precompile-dev = "${EAT_VER_GCC}" |
| 414 | PKGV:libstdc++-staticdev = "${EAT_VER_GCC}" |
| 415 | PKGV:libtsan-dev = "${EAT_VER_GCC}" |
| 416 | PKGV:libtsan = "${EAT_VER_GCC}" |
| 417 | PKGV:libtsan-staticdev = "${EAT_VER_GCC}" |
| 418 | PKGV:libubsan-dev = "${EAT_VER_GCC}" |
| 419 | PKGV:libubsan = "${EAT_VER_GCC}" |
| 420 | PKGV:libubsan-staticdev = "${EAT_VER_GCC}" |
| 421 | |
| 422 | PKGV:linux-libc-headers-dev = "${EAT_VER_KERNEL}" |
| 423 | PKGV:linux-libc-headers = "${EAT_VER_KERNEL}" |
| 424 | |
| 425 | PKGV:gdbserver = "${EAT_VER_GDBSERVER}" |
| 426 | |
| 427 | ALLOW_EMPTY:${PN}-mtrace = "1" |
| 428 | FILES:${PN}-mtrace = "${bindir}/mtrace" |
| 429 | |
| 430 | FILES:libgcov-staticdev = "${libdir}/gcc/${TARGET_SYS}/${BINV}/libgcov.a" |
| 431 | |
| 432 | FILES:libsegfault = "${base_libdir}/libSegFault*" |
| 433 | |
| 434 | FILES:catchsegv = "${bindir}/catchsegv" |
| 435 | RDEPENDS:catchsegv = "libsegfault" |
| 436 | |
| 437 | # From libgfortran.inc: |
| 438 | |
| 439 | FILES:libgfortran = "${libdir}/libgfortran.so.*" |
| 440 | FILES:libgfortran-dev = "\ |
| 441 | ${libdir}/libgfortran*.so \ |
| 442 | ${libdir}/libgfortran.spec \ |
| 443 | ${libdir}/libgfortran.la \ |
| 444 | ${libdir}/gcc/${TARGET_SYS}/${BINV}/libgfortranbegin.* \ |
| 445 | ${libdir}/gcc/${TARGET_SYS}/${BINV}/libcaf_single* \ |
| 446 | ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude/ \ |
| 447 | " |
| 448 | FILES:libgfortran-staticdev = "${libdir}/libgfortran.a" |
| 449 | |
| 450 | |
| 451 | # From gcc-sanitizers.inc: |
| 452 | |
| 453 | FILES:libasan += "${libdir}/libasan.so.* ${libdir}/libhwasan.so.*" |
| 454 | FILES:libasan-dev += "\ |
| 455 | ${libdir}/libasan_preinit.o \ |
| 456 | ${libdir}/libasan.so \ |
| 457 | ${libdir}/libhwasan.so \ |
| 458 | ${libdir}/libasan.la \ |
| 459 | " |
| 460 | FILES:libasan-staticdev += "${libdir}/libasan.a \ |
| 461 | ${libdir}/libhwasan.a \ |
| 462 | " |
| 463 | |
| 464 | FILES:libubsan += "${libdir}/libubsan.so.*" |
| 465 | FILES:libubsan-dev += "\ |
| 466 | ${libdir}/libubsan.so \ |
| 467 | ${libdir}/libubsan.la \ |
| 468 | " |
| 469 | FILES:libubsan-staticdev += "${libdir}/libubsan.a" |
| 470 | |
| 471 | FILES:liblsan += "${libdir}/liblsan.so.*" |
| 472 | FILES:liblsan-dev += "\ |
| 473 | ${libdir}/liblsan.so \ |
| 474 | ${libdir}/liblsan.la \ |
| 475 | ${libdir}/liblsan_preinit.o \ |
| 476 | " |
| 477 | FILES:liblsan-staticdev += "${libdir}/liblsan.a" |
| 478 | |
| 479 | FILES:libtsan += "${libdir}/libtsan.so.*" |
| 480 | FILES:libtsan-dev += "\ |
| 481 | ${libdir}/libtsan.so \ |
| 482 | ${libdir}/libtsan.la \ |
| 483 | ${libdir}/libtsan_*.o \ |
| 484 | " |
| 485 | FILES:libtsan-staticdev += "${libdir}/libtsan.a" |
| 486 | |
| 487 | FILES:gcc-sanitizers = "${libdir}/*.spec ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/sanitizer/*.h" |
| 488 | |
| 489 | # From libgcc.inc: |
| 490 | |
| 491 | FILES:libgcc = "${base_libdir}/libgcc_s.so.1" |
| 492 | |
| 493 | FILES:libgcc-dev = "\ |
| 494 | ${base_libdir}/libgcc*.so \ |
| 495 | ${@oe.utils.conditional('BASETARGET_SYS', '${TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \ |
| 496 | ${libdir}/${TARGET_SYS}/${BINV}* \ |
| 497 | ${libdir}/${TARGET_ARCH}${TARGET_VENDOR}* \ |
| 498 | ${libdir}/gcc/${TARGET_SYS}/${BINV}/include \ |
| 499 | " |
| 500 | |
| 501 | FILES:linux-libc-headers = "" |
| 502 | FILES:linux-libc-headers-dev = "\ |
| 503 | ${includedir}/asm* \ |
| 504 | ${includedir}/linux \ |
| 505 | ${includedir}/mtd \ |
| 506 | ${includedir}/rdma \ |
| 507 | ${includedir}/scsi \ |
| 508 | ${includedir}/sound \ |
| 509 | ${includedir}/video \ |
| 510 | " |
| 511 | FILES:${PN} += "\ |
| 512 | ${libdir}/bin \ |
| 513 | ${libdir}/locale \ |
| 514 | ${libdir}/gconv/gconv-modules \ |
| 515 | ${datadir}/zoneinfo \ |
| 516 | ${base_libdir}/libcrypt*.so.* \ |
| 517 | ${base_libdir}/libcrypt-*.so \ |
| 518 | ${base_libdir}/libc.so.* \ |
| 519 | ${base_libdir}/libc-*.so \ |
| 520 | ${base_libdir}/libm.so.* \ |
| 521 | ${base_libdir}/libmemusage.so \ |
| 522 | ${base_libdir}/libm-*.so \ |
| 523 | ${base_libdir}/ld*.so.* \ |
| 524 | ${base_libdir}/ld-*.so \ |
| 525 | ${base_libdir}/libpthread*.so.* \ |
| 526 | ${base_libdir}/libpthread*.so \ |
| 527 | ${base_libdir}/libpthread-*.so \ |
| 528 | ${base_libdir}/libresolv*.so.* \ |
| 529 | ${base_libdir}/libresolv-*.so \ |
| 530 | ${base_libdir}/librt*.so.* \ |
| 531 | ${base_libdir}/librt-*.so \ |
| 532 | ${base_libdir}/libutil*.so.* \ |
| 533 | ${base_libdir}/libutil-*.so \ |
| 534 | ${base_libdir}/libnss_files*.so.* \ |
| 535 | ${base_libdir}/libnss_files-*.so \ |
| 536 | ${base_libdir}/libnss_compat*.so.* \ |
| 537 | ${base_libdir}/libnss_compat-*.so \ |
| 538 | ${base_libdir}/libnss_dns*.so.* \ |
| 539 | ${base_libdir}/libnss_dns-*.so \ |
| 540 | ${base_libdir}/libnss_nis*.so.* \ |
| 541 | ${base_libdir}/libnss_nisplus-*.so \ |
| 542 | ${base_libdir}/libnss_nisplus*.so.* \ |
| 543 | ${base_libdir}/libnss_nis-*.so \ |
| 544 | ${base_libdir}/libnss_hesiod*.so.* \ |
| 545 | ${base_libdir}/libnss_hesiod-*.so \ |
| 546 | ${base_libdir}/libdl*.so.* \ |
| 547 | ${base_libdir}/libdl-*.so \ |
| 548 | ${base_libdir}/libanl*.so.* \ |
| 549 | ${base_libdir}/libanl-*.so \ |
| 550 | ${base_libdir}/libBrokenLocale*.so.* \ |
| 551 | ${base_libdir}/libBrokenLocale-*.so \ |
| 552 | ${base_libdir}/libthread_db*.so.* \ |
| 553 | ${base_libdir}/libthread_db-*.so \ |
| 554 | ${base_libdir}/libmemusage.so \ |
| 555 | ${base_libdir}/libSegFault.so \ |
| 556 | ${base_libdir}/libpcprofile.so \ |
| 557 | " |
| 558 | |
| 559 | FILES:${PN}-dbg += "${base_libdir}/debug" |
| 560 | |
| 561 | # From gcc-runtime.inc |
| 562 | |
| 563 | # include python debugging scripts |
| 564 | FILES:gcc-runtime-dbg += "\ |
| 565 | ${libdir}/libstdc++.so.*-gdb.py \ |
| 566 | ${datadir}/gcc-${BINV}/python/libstdcxx \ |
| 567 | " |
| 568 | |
| 569 | FILES:libg2c = "${target_libdir}/libg2c.so.*" |
| 570 | SUMMARY:libg2c = "Companion runtime library for g77" |
| 571 | FILES:libg2c-dev = "\ |
| 572 | ${libdir}/libg2c.so \ |
| 573 | ${libdir}/libg2c.a \ |
| 574 | ${libdir}/libfrtbegin.a \ |
| 575 | " |
| 576 | SUMMARY:libg2c-dev = "Companion runtime library for g77 - development files" |
| 577 | |
| 578 | FILES:libstdc++ = "${libdir}/libstdc++.so.*" |
| 579 | SUMMARY:libstdc++ = "GNU standard C++ library" |
| 580 | FILES:libstdc++-dev = "\ |
| 581 | /include/c++ \ |
| 582 | ${includedir}/c++/ \ |
| 583 | ${libdir}/libstdc++.so \ |
| 584 | ${libdir}/libstdc++*.la \ |
| 585 | ${libdir}/libsupc++.la \ |
| 586 | " |
| 587 | SUMMARY:libstdc++-dev = "GNU standard C++ library - development files" |
| 588 | |
| 589 | FILES:libstdc++-staticdev = "\ |
| 590 | ${libdir}/libstdc++*.a \ |
| 591 | ${libdir}/libsupc++.a \ |
| 592 | " |
| 593 | SUMMARY:libstdc++-staticdev = "GNU standard C++ library - static development files" |
| 594 | |
| 595 | FILES:libstdc++-precompile-dev = "${includedir}/c++/${TARGET_SYS}/bits/*.gch" |
| 596 | SUMMARY:libstdc++-precompile-dev = "GNU standard C++ library - precompiled header files" |
| 597 | |
| 598 | FILES:libssp = "${libdir}/libssp.so.*" |
| 599 | SUMMARY:libssp = "GNU stack smashing protection library" |
| 600 | FILES:libssp-dev = "\ |
| 601 | ${libdir}/libssp*.so \ |
| 602 | ${libdir}/libssp*_nonshared.a \ |
| 603 | ${libdir}/libssp*.la \ |
| 604 | ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/ssp \ |
| 605 | " |
| 606 | SUMMARY:libssp-dev = "GNU stack smashing protection library - development files" |
| 607 | FILES:libssp-staticdev = "${libdir}/libssp*.a" |
| 608 | SUMMARY:libssp-staticdev = "GNU stack smashing protection library - static development files" |
| 609 | |
| 610 | FILES:libquadmath = "${libdir}/libquadmath*.so.*" |
| 611 | SUMMARY:libquadmath = "GNU quad-precision math library" |
| 612 | FILES:libquadmath-dev = "\ |
| 613 | ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/quadmath* \ |
| 614 | ${libdir}/libquadmath*.so \ |
| 615 | ${libdir}/libquadmath.la \ |
| 616 | " |
| 617 | SUMMARY:libquadmath-dev = "GNU quad-precision math library - development files" |
| 618 | FILES:libquadmath-staticdev = "${libdir}/libquadmath.a" |
| 619 | SUMMARY:libquadmath-staticdev = "GNU quad-precision math library - static development files" |
| 620 | |
| 621 | # NOTE: mudflap has been removed as of gcc 4.9 and has been superseded by the address sanitiser |
| 622 | FILES:libmudflap = "${libdir}/libmudflap*.so.*" |
| 623 | SUMMARY:libmudflap = "Pointer debugging library for gcc" |
| 624 | FILES:libmudflap-dev = "\ |
| 625 | ${libdir}/libmudflap*.so \ |
| 626 | ${libdir}/libmudflap.la \ |
| 627 | " |
| 628 | SUMMARY:libmudflap-dev = "Pointer debugging library for gcc - development files" |
| 629 | FILES:libmudflap-staticdev = "${libdir}/libmudflap.a" |
| 630 | SUMMARY:libmudflap-staticdev = "Pointer debugging library for gcc - static development files" |
| 631 | |
| 632 | FILES:libgomp = "${libdir}/libgomp*${SOLIBS}" |
| 633 | SUMMARY:libgomp = "GNU OpenMP parallel programming library" |
| 634 | FILES:libgomp-dev = "\ |
| 635 | ${libdir}/libgomp*${SOLIBSDEV} \ |
| 636 | ${libdir}/libgomp*.la \ |
| 637 | ${libdir}/libgomp.spec \ |
| 638 | ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/omp.h \ |
| 639 | ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/openacc.h \ |
| 640 | " |
| 641 | SUMMARY:libgomp-dev = "GNU OpenMP parallel programming library - development files" |
| 642 | FILES:libgomp-staticdev = "${libdir}/libgomp*.a" |
| 643 | SUMMARY:libgomp-staticdev = "GNU OpenMP parallel programming library - static development files" |
| 644 | |
| 645 | FILES:libatomic = "${libdir}/libatomic.so.*" |
| 646 | SUMMARY:libatomic = "GNU C++11 atomics support library" |
| 647 | FILES:libatomic-dev = "\ |
| 648 | ${libdir}/libatomic.so \ |
| 649 | ${libdir}/libatomic.la \ |
| 650 | " |
| 651 | SUMMARY:libatomic-dev = "GNU C++11 atomics support library - development files" |
| 652 | FILES:libatomic-staticdev = "${libdir}/libatomic.a" |
| 653 | SUMMARY:libatomic-staticdev = "GNU C++11 atomics support library - static development files" |
| 654 | |
| 655 | FILES:libitm = "${libdir}/libitm.so.*" |
| 656 | SUMMARY:libitm = "GNU transactional memory support library" |
| 657 | FILES:libitm-dev = "\ |
| 658 | ${libdir}/libitm.so \ |
| 659 | ${libdir}/libitm.la \ |
| 660 | ${libdir}/libitm.spec \ |
| 661 | " |
| 662 | SUMMARY:libitm-dev = "GNU transactional memory support library - development files" |
| 663 | FILES:libitm-staticdev = "${libdir}/libitm.a" |
| 664 | SUMMARY:libitm-staticdev = "GNU transactional memory support library - static development files" |
| 665 | |
| 666 | EAT_VER_MAIN ??= "" |
| 667 | |
| 668 | python () { |
| 669 | if not d.getVar("EAT_VER_MAIN", False): |
| 670 | raise bb.parse.SkipPackage("External ARM toolchain not configured (EAT_VER_MAIN not set).") |
| 671 | if d.getVar('TCLIBC', True) != "glibc": |
| 672 | raise bb.parse.SkipPackage("incompatible with %s" % d.getVar('TCLIBC', True)) |
| 673 | } |