summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/recipes-devtools/gcc
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-11.1.inc2
-rw-r--r--meta/recipes-devtools/gcc/gcc-common.inc4
-rw-r--r--meta/recipes-devtools/gcc/gcc-configure-common.inc24
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-canadian.inc16
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross.inc10
-rw-r--r--meta/recipes-devtools/gcc/gcc-multilib-config.inc2
-rw-r--r--meta/recipes-devtools/gcc/gcc-runtime.inc128
-rw-r--r--meta/recipes-devtools/gcc/gcc-sanitizers.inc58
-rw-r--r--meta/recipes-devtools/gcc/gcc-sanitizers_11.1.bb4
-rw-r--r--meta/recipes-devtools/gcc/gcc-target.inc58
-rw-r--r--meta/recipes-devtools/gcc/gcc_11.1.bb10
-rw-r--r--meta/recipes-devtools/gcc/libgcc-common.inc12
-rw-r--r--meta/recipes-devtools/gcc/libgcc-initial.inc6
-rw-r--r--meta/recipes-devtools/gcc/libgcc-initial_11.1.bb2
-rw-r--r--meta/recipes-devtools/gcc/libgcc.inc12
-rw-r--r--meta/recipes-devtools/gcc/libgcc_11.1.bb2
-rw-r--r--meta/recipes-devtools/gcc/libgfortran.inc14
17 files changed, 182 insertions, 182 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-11.1.inc b/meta/recipes-devtools/gcc/gcc-11.1.inc
index c21242af58..f1dec85a06 100644
--- a/meta/recipes-devtools/gcc/gcc-11.1.inc
+++ b/meta/recipes-devtools/gcc/gcc-11.1.inc
@@ -87,7 +87,7 @@ FORTRAN = ""
87JAVA = "" 87JAVA = ""
88 88
89SSP ?= "--disable-libssp" 89SSP ?= "--disable-libssp"
90SSP_mingw32 = "--enable-libssp" 90SSP:mingw32 = "--enable-libssp"
91 91
92EXTRA_OECONF_BASE = "\ 92EXTRA_OECONF_BASE = "\
93 ${SSP} \ 93 ${SSP} \
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index 629fa26dfe..74190644e6 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -12,7 +12,7 @@ inherit autotools gettext texinfo
12 12
13BPN = "gcc" 13BPN = "gcc"
14COMPILERDEP = "virtual/${MLPREFIX}${TARGET_PREFIX}gcc:do_gcc_stash_builddir" 14COMPILERDEP = "virtual/${MLPREFIX}${TARGET_PREFIX}gcc:do_gcc_stash_builddir"
15COMPILERDEP_class-nativesdk = "virtual/${TARGET_PREFIX}gcc-crosssdk:do_gcc_stash_builddir" 15COMPILERDEP:class-nativesdk = "virtual/${TARGET_PREFIX}gcc-crosssdk:do_gcc_stash_builddir"
16 16
17python extract_stashed_builddir () { 17python extract_stashed_builddir () {
18 src = d.expand("${COMPONENTS_DIR}/${BUILD_ARCH}/gcc-stashed-builddir-${TARGET_SYS}") 18 src = d.expand("${COMPONENTS_DIR}/${BUILD_ARCH}/gcc-stashed-builddir-${TARGET_SYS}")
@@ -83,7 +83,7 @@ def get_tune_parameters(tune, d):
83 83
84get_tune_parameters[vardepsexclude] = "AVAILTUNES TUNE_CCARGS OVERRIDES TUNE_FEATURES BASE_LIB BASELIB TUNE_ARCH ABIEXTENSION TARGET_FPU TUNE_PKGARCH PACKAGE_EXTRA_ARCHS" 84get_tune_parameters[vardepsexclude] = "AVAILTUNES TUNE_CCARGS OVERRIDES TUNE_FEATURES BASE_LIB BASELIB TUNE_ARCH ABIEXTENSION TARGET_FPU TUNE_PKGARCH PACKAGE_EXTRA_ARCHS"
85 85
86DEBIANNAME_${MLPREFIX}libgcc = "libgcc1" 86DEBIANNAME:${MLPREFIX}libgcc = "libgcc1"
87 87
88MIRRORS =+ "\ 88MIRRORS =+ "\
89${GNU_MIRROR}/gcc ftp://gcc.gnu.org/pub/gcc/releases/ \n \ 89${GNU_MIRROR}/gcc ftp://gcc.gnu.org/pub/gcc/releases/ \n \
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index dc7f458b25..e9bc8e466c 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -45,27 +45,27 @@ EXTRA_OECONF = "\
45 45
46# glibc version is a minimum controlling whether features are enabled. 46# glibc version is a minimum controlling whether features are enabled.
47# Doesn't need to track glibc exactly 47# Doesn't need to track glibc exactly
48EXTRA_OECONF_append_libc-glibc = " --with-glibc-version=2.28 " 48EXTRA_OECONF:append:libc-glibc = " --with-glibc-version=2.28 "
49 49
50# Set this here since GCC configure won't auto-detect and enable 50# Set this here since GCC configure won't auto-detect and enable
51# initfini-arry when cross compiling. 51# initfini-arry when cross compiling.
52EXTRA_OECONF_append = " --enable-initfini-array" 52EXTRA_OECONF:append = " --enable-initfini-array"
53 53
54export gcc_cv_collect2_libs = 'none required' 54export gcc_cv_collect2_libs = 'none required'
55# We need to set gcc_cv_collect2_libs else there is cross-compilation badness 55# We need to set gcc_cv_collect2_libs else there is cross-compilation badness
56# in the config.log files (which might not get generated until do_compile 56# in the config.log files (which might not get generated until do_compile
57# hence being missed by the insane do_configure check). 57# hence being missed by the insane do_configure check).
58 58
59EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" 59EXTRA_OECONF:append_linux = " --enable-__cxa_atexit"
60 60
61EXTRA_OECONF_append_mips64 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" 61EXTRA_OECONF:append:mips64 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64"
62EXTRA_OECONF_append_mips64el = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" 62EXTRA_OECONF:append:mips64el = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64"
63EXTRA_OECONF_append_mips64n32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" 63EXTRA_OECONF:append:mips64n32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64"
64EXTRA_OECONF_append_mips64eln32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" 64EXTRA_OECONF:append:mips64eln32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64"
65EXTRA_OECONF_append_mipsisa32r6el = " --with-abi=32 --with-arch=mips32r6" 65EXTRA_OECONF:append:mipsisa32r6el = " --with-abi=32 --with-arch=mips32r6"
66EXTRA_OECONF_append_mipsisa32r6 = " --with-abi=32 --with-arch=mips32r6" 66EXTRA_OECONF:append:mipsisa32r6 = " --with-abi=32 --with-arch=mips32r6"
67EXTRA_OECONF_append_mipsisa64r6el = " --with-abi=64 --with-arch-64=mips64r6" 67EXTRA_OECONF:append:mipsisa64r6el = " --with-abi=64 --with-arch-64=mips64r6"
68EXTRA_OECONF_append_mipsisa64r6 = " --with-abi=64 --with-arch-64=mips64r6" 68EXTRA_OECONF:append:mipsisa64r6 = " --with-abi=64 --with-arch-64=mips64r6"
69 69
70EXTRA_OECONF_GCC_FLOAT ??= "" 70EXTRA_OECONF_GCC_FLOAT ??= ""
71CPPFLAGS = "" 71CPPFLAGS = ""
@@ -74,7 +74,7 @@ SYSTEMHEADERS = "${target_includedir}"
74SYSTEMLIBS = "${target_base_libdir}/" 74SYSTEMLIBS = "${target_base_libdir}/"
75SYSTEMLIBS1 = "${target_libdir}/" 75SYSTEMLIBS1 = "${target_libdir}/"
76 76
77do_configure_prepend () { 77do_configure:prepend () {
78 # teach gcc to find correct target includedir when checking libc ssp support 78 # teach gcc to find correct target includedir when checking libc ssp support
79 mkdir -p ${B}/gcc 79 mkdir -p ${B}/gcc
80 echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe 80 echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
index 1872faee1b..92fb1f38ba 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
@@ -65,7 +65,7 @@ do_compile () {
65 65
66PACKAGES = "${PN}-dbg ${PN} ${PN}-doc" 66PACKAGES = "${PN}-dbg ${PN} ${PN}-doc"
67 67
68FILES_${PN} = "\ 68FILES:${PN} = "\
69 ${exec_prefix}/bin/* \ 69 ${exec_prefix}/bin/* \
70 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/* \ 70 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/* \
71 ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \ 71 ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \
@@ -81,9 +81,9 @@ FILES_${PN} = "\
81 ${prefix}/${TARGET_SYS}/lib/* \ 81 ${prefix}/${TARGET_SYS}/lib/* \
82 ${prefix}/${TARGET_SYS}${target_includedir}/* \ 82 ${prefix}/${TARGET_SYS}${target_includedir}/* \
83" 83"
84INSANE_SKIP_${PN} += "dev-so" 84INSANE_SKIP:${PN} += "dev-so"
85 85
86FILES_${PN}-doc = "\ 86FILES:${PN}-doc = "\
87 ${infodir} \ 87 ${infodir} \
88 ${mandir} \ 88 ${mandir} \
89 ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \ 89 ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \
@@ -173,16 +173,16 @@ do_install () {
173 173
174ELFUTILS = "nativesdk-elfutils" 174ELFUTILS = "nativesdk-elfutils"
175DEPENDS += "nativesdk-gmp nativesdk-mpfr nativesdk-libmpc ${ELFUTILS} nativesdk-zlib" 175DEPENDS += "nativesdk-gmp nativesdk-mpfr nativesdk-libmpc ${ELFUTILS} nativesdk-zlib"
176RDEPENDS_${PN} += "nativesdk-mpfr nativesdk-libmpc ${ELFUTILS}" 176RDEPENDS:${PN} += "nativesdk-mpfr nativesdk-libmpc ${ELFUTILS}"
177 177
178SYSTEMHEADERS = "${target_includedir}/" 178SYSTEMHEADERS = "${target_includedir}/"
179SYSTEMLIBS = "${target_base_libdir}/" 179SYSTEMLIBS = "${target_base_libdir}/"
180SYSTEMLIBS1 = "${target_libdir}/" 180SYSTEMLIBS1 = "${target_libdir}/"
181 181
182EXTRA_OECONF += "--enable-poison-system-directories" 182EXTRA_OECONF += "--enable-poison-system-directories"
183EXTRA_OECONF_remove_elf = "--with-sysroot=/not/exist" 183EXTRA_OECONF:remove_elf = "--with-sysroot=/not/exist"
184EXTRA_OECONF_remove_eabi = "--with-sysroot=/not/exist" 184EXTRA_OECONF:remove_eabi = "--with-sysroot=/not/exist"
185EXTRA_OECONF_append_elf = " --without-headers --with-newlib" 185EXTRA_OECONF:append_elf = " --without-headers --with-newlib"
186EXTRA_OECONF_append_eabi = " --without-headers --with-newlib" 186EXTRA_OECONF:append_eabi = " --without-headers --with-newlib"
187# gcc 4.7 needs -isystem 187# gcc 4.7 needs -isystem
188export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}" 188export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}"
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index dca4036ab5..3ffa1f0c46 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -22,7 +22,7 @@ require gcc-configure-common.inc
22LINKER_HASH_STYLE ?= "sysv" 22LINKER_HASH_STYLE ?= "sysv"
23 23
24EXTRA_OECONF += "--enable-poison-system-directories=error" 24EXTRA_OECONF += "--enable-poison-system-directories=error"
25EXTRA_OECONF_append_sh4 = " \ 25EXTRA_OECONF:append:sh4 = " \
26 --with-multilib-list= \ 26 --with-multilib-list= \
27 --enable-incomplete-targets \ 27 --enable-incomplete-targets \
28" 28"
@@ -31,9 +31,9 @@ EXTRA_OECONF += "\
31 --with-system-zlib \ 31 --with-system-zlib \
32" 32"
33 33
34EXTRA_OECONF_append_libc-baremetal = " --without-headers" 34EXTRA_OECONF:append:libc-baremetal = " --without-headers"
35EXTRA_OECONF_remove_libc-baremetal = "--enable-threads=posix" 35EXTRA_OECONF:remove:libc-baremetal = "--enable-threads=posix"
36EXTRA_OECONF_remove_libc-newlib = "--enable-threads=posix" 36EXTRA_OECONF:remove:libc-newlib = "--enable-threads=posix"
37 37
38EXTRA_OECONF_PATHS = "\ 38EXTRA_OECONF_PATHS = "\
39 --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \ 39 --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
@@ -44,7 +44,7 @@ EXTRA_OECONF_PATHS = "\
44ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_TARGET}${target_includedir}" 44ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_TARGET}${target_includedir}"
45 45
46 46
47do_configure_prepend () { 47do_configure:prepend () {
48 install -d ${RECIPE_SYSROOT}${target_includedir} 48 install -d ${RECIPE_SYSROOT}${target_includedir}
49 touch ${RECIPE_SYSROOT}${target_includedir}/limits.h 49 touch ${RECIPE_SYSROOT}${target_includedir}/limits.h
50} 50}
diff --git a/meta/recipes-devtools/gcc/gcc-multilib-config.inc b/meta/recipes-devtools/gcc/gcc-multilib-config.inc
index 31b8619be3..e90580d1cd 100644
--- a/meta/recipes-devtools/gcc/gcc-multilib-config.inc
+++ b/meta/recipes-devtools/gcc/gcc-multilib-config.inc
@@ -170,7 +170,7 @@ python gcc_multilib_setup() {
170 header_config_files = gcc_header_config_files[target_arch] 170 header_config_files = gcc_header_config_files[target_arch]
171 171
172 ml_list = ['DEFAULTTUNE_MULTILIB_ORIGINAL' if mlprefix else 'DEFAULTTUNE'] 172 ml_list = ['DEFAULTTUNE_MULTILIB_ORIGINAL' if mlprefix else 'DEFAULTTUNE']
173 mltunes = [('DEFAULTTUNE_virtclass-multilib-%s' % ml) for ml in multilibs] 173 mltunes = [('DEFAULTTUNE:virtclass-multilib-%s' % ml) for ml in multilibs]
174 if mlprefix: 174 if mlprefix:
175 mlindex = 0 175 mlindex = 0
176 for ml in multilibs: 176 for ml in multilibs:
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index 59d9a24686..9e39d49d14 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -6,7 +6,7 @@ SUMMARY = "Runtime libraries from GCC"
6# All gcc-runtime packages are now covered by the runtime exception. 6# All gcc-runtime packages are now covered by the runtime exception.
7LICENSE = "GPL-3.0-with-GCC-exception" 7LICENSE = "GPL-3.0-with-GCC-exception"
8 8
9CXXFLAGS_remove = "-fvisibility-inlines-hidden" 9CXXFLAGS:remove = "-fvisibility-inlines-hidden"
10 10
11EXTRA_OECONF_PATHS = "\ 11EXTRA_OECONF_PATHS = "\
12 --with-gxx-include-dir=${includedir}/c++/${BINV} \ 12 --with-gxx-include-dir=${includedir}/c++/${BINV} \
@@ -14,37 +14,37 @@ EXTRA_OECONF_PATHS = "\
14 --with-build-sysroot=${STAGING_DIR_TARGET} \ 14 --with-build-sysroot=${STAGING_DIR_TARGET} \
15" 15"
16 16
17EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" 17EXTRA_OECONF:append:linuxstdbase = " --enable-clocale=gnu"
18EXTRA_OECONF_append = " --cache-file=${B}/config.cache" 18EXTRA_OECONF:append = " --cache-file=${B}/config.cache"
19EXTRA_OECONF_append_libc-newlib = " --with-newlib" 19EXTRA_OECONF:append:libc-newlib = " --with-newlib"
20 20
21# Disable ifuncs for libatomic on arm conflicts -march/-mcpu 21# Disable ifuncs for libatomic on arm conflicts -march/-mcpu
22EXTRA_OECONF_append_arm = " libat_cv_have_ifunc=no " 22EXTRA_OECONF:append:arm = " libat_cv_have_ifunc=no "
23EXTRA_OECONF_append_armeb = " libat_cv_have_ifunc=no " 23EXTRA_OECONF:append:armeb = " libat_cv_have_ifunc=no "
24 24
25DISABLE_STATIC_class-nativesdk ?= "" 25DISABLE_STATIC:class-nativesdk ?= ""
26 26
27# Newlib does not support symbol versioning on libsdtcc++ 27# Newlib does not support symbol versioning on libsdtcc++
28SYMVERS_CONF_libc-newlib = "" 28SYMVERS_CONF:libc-newlib = ""
29 29
30# Building with thumb enabled on armv6t fails 30# Building with thumb enabled on armv6t fails
31ARM_INSTRUCTION_SET_armv6 = "arm" 31ARM_INSTRUCTION_SET:armv6 = "arm"
32 32
33RUNTIMELIBITM = "libitm" 33RUNTIMELIBITM = "libitm"
34RUNTIMELIBITM_arc = "" 34RUNTIMELIBITM:arc = ""
35RUNTIMELIBITM_mipsarch = "" 35RUNTIMELIBITM:mipsarch = ""
36RUNTIMELIBITM_nios2 = "" 36RUNTIMELIBITM:nios2 = ""
37RUNTIMELIBITM_microblaze = "" 37RUNTIMELIBITM:microblaze = ""
38RUNTIMELIBITM_riscv32 = "" 38RUNTIMELIBITM:riscv32 = ""
39RUNTIMELIBITM_riscv64 = "" 39RUNTIMELIBITM:riscv64 = ""
40RUNTIMELIBSSP ?= "" 40RUNTIMELIBSSP ?= ""
41RUNTIMELIBSSP_mingw32 ?= "libssp" 41RUNTIMELIBSSP:mingw32 ?= "libssp"
42 42
43RUNTIMETARGET = "${RUNTIMELIBSSP} libstdc++-v3 libgomp libatomic ${RUNTIMELIBITM} \ 43RUNTIMETARGET = "${RUNTIMELIBSSP} libstdc++-v3 libgomp libatomic ${RUNTIMELIBITM} \
44 ${@bb.utils.contains_any('FORTRAN', [',fortran',',f77'], 'libquadmath', '', d)} \ 44 ${@bb.utils.contains_any('FORTRAN', [',fortran',',f77'], 'libquadmath', '', d)} \
45" 45"
46# Only build libstdc++ for newlib 46# Only build libstdc++ for newlib
47RUNTIMETARGET_libc-newlib = "libstdc++-v3" 47RUNTIMETARGET:libc-newlib = "libstdc++-v3"
48 48
49# libiberty 49# libiberty
50# libgfortran needs separate recipe due to libquadmath dependency 50# libgfortran needs separate recipe due to libquadmath dependency
@@ -52,7 +52,7 @@ RUNTIMETARGET_libc-newlib = "libstdc++-v3"
52# Relative path to be repaced into debug info 52# Relative path to be repaced into debug info
53REL_S = "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" 53REL_S = "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}"
54 54
55DEBUG_PREFIX_MAP_class-target = " \ 55DEBUG_PREFIX_MAP:class-target = " \
56 -fdebug-prefix-map=${WORKDIR}/recipe-sysroot= \ 56 -fdebug-prefix-map=${WORKDIR}/recipe-sysroot= \
57 -fdebug-prefix-map=${WORKDIR}/recipe-sysroot-native= \ 57 -fdebug-prefix-map=${WORKDIR}/recipe-sysroot-native= \
58 -fdebug-prefix-map=${S}=${REL_S} \ 58 -fdebug-prefix-map=${S}=${REL_S} \
@@ -109,7 +109,7 @@ do_install () {
109 fi 109 fi
110} 110}
111 111
112do_install_append_class-target () { 112do_install:append:class-target () {
113 if [ "${TARGET_OS}" = "linux-gnuspe" ]; then 113 if [ "${TARGET_OS}" = "linux-gnuspe" ]; then
114 ln -s ${TARGET_SYS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR}-linux 114 ln -s ${TARGET_SYS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR}-linux
115 fi 115 fi
@@ -186,67 +186,67 @@ PACKAGES = "\
186 libitm-staticdev \ 186 libitm-staticdev \
187" 187"
188# The base package doesn't exist, so we clear the recommends. 188# The base package doesn't exist, so we clear the recommends.
189RRECOMMENDS_${PN}-dbg = "" 189RRECOMMENDS:${PN}-dbg = ""
190 190
191# include python debugging scripts 191# include python debugging scripts
192FILES_${PN}-dbg += "\ 192FILES:${PN}-dbg += "\
193 ${libdir}/libstdc++.*-gdb.py \ 193 ${libdir}/libstdc++.*-gdb.py \
194 ${datadir}/gcc-${BINV}/python/libstdcxx \ 194 ${datadir}/gcc-${BINV}/python/libstdcxx \
195" 195"
196 196
197FILES_libg2c = "${target_libdir}/libg2c.so.*" 197FILES:libg2c = "${target_libdir}/libg2c.so.*"
198SUMMARY_libg2c = "Companion runtime library for g77" 198SUMMARY:libg2c = "Companion runtime library for g77"
199FILES_libg2c-dev = "\ 199FILES:libg2c-dev = "\
200 ${libdir}/libg2c.so \ 200 ${libdir}/libg2c.so \
201 ${libdir}/libg2c.a \ 201 ${libdir}/libg2c.a \
202 ${libdir}/libfrtbegin.a \ 202 ${libdir}/libfrtbegin.a \
203" 203"
204SUMMARY_libg2c-dev = "Companion runtime library for g77 - development files" 204SUMMARY:libg2c-dev = "Companion runtime library for g77 - development files"
205 205
206FILES_libstdc++ = "${libdir}/libstdc++.so.*" 206FILES:libstdc++ = "${libdir}/libstdc++.so.*"
207SUMMARY_libstdc++ = "GNU standard C++ library" 207SUMMARY:libstdc++ = "GNU standard C++ library"
208FILES_libstdc++-dev = "\ 208FILES:libstdc++-dev = "\
209 ${includedir}/c++/ \ 209 ${includedir}/c++/ \
210 ${libdir}/libstdc++.so \ 210 ${libdir}/libstdc++.so \
211 ${libdir}/libstdc++*.la \ 211 ${libdir}/libstdc++*.la \
212 ${libdir}/libsupc++.la \ 212 ${libdir}/libsupc++.la \
213" 213"
214SUMMARY_libstdc++-dev = "GNU standard C++ library - development files" 214SUMMARY:libstdc++-dev = "GNU standard C++ library - development files"
215FILES_libstdc++-staticdev = "\ 215FILES:libstdc++-staticdev = "\
216 ${libdir}/libstdc++*.a \ 216 ${libdir}/libstdc++*.a \
217 ${libdir}/libsupc++.a \ 217 ${libdir}/libsupc++.a \
218" 218"
219SUMMARY_libstdc++-staticdev = "GNU standard C++ library - static development files" 219SUMMARY:libstdc++-staticdev = "GNU standard C++ library - static development files"
220 220
221FILES_libstdc++-precompile-dev = "${includedir}/c++/${TARGET_SYS}/bits/*.gch" 221FILES:libstdc++-precompile-dev = "${includedir}/c++/${TARGET_SYS}/bits/*.gch"
222SUMMARY_libstdc++-precompile-dev = "GNU standard C++ library - precompiled header files" 222SUMMARY:libstdc++-precompile-dev = "GNU standard C++ library - precompiled header files"
223 223
224FILES_libssp = "${libdir}/libssp.so.*" 224FILES:libssp = "${libdir}/libssp.so.*"
225SUMMARY_libssp = "GNU stack smashing protection library" 225SUMMARY:libssp = "GNU stack smashing protection library"
226FILES_libssp-dev = "\ 226FILES:libssp-dev = "\
227 ${libdir}/libssp*.so \ 227 ${libdir}/libssp*.so \
228 ${libdir}/libssp*_nonshared.a \ 228 ${libdir}/libssp*_nonshared.a \
229 ${libdir}/libssp*.la \ 229 ${libdir}/libssp*.la \
230 ${libdir}/${TARGET_SYS}/${BINV}/include/ssp \ 230 ${libdir}/${TARGET_SYS}/${BINV}/include/ssp \
231" 231"
232SUMMARY_libssp-dev = "GNU stack smashing protection library - development files" 232SUMMARY:libssp-dev = "GNU stack smashing protection library - development files"
233FILES_libssp-staticdev = "${libdir}/libssp*.a" 233FILES:libssp-staticdev = "${libdir}/libssp*.a"
234SUMMARY_libssp-staticdev = "GNU stack smashing protection library - static development files" 234SUMMARY:libssp-staticdev = "GNU stack smashing protection library - static development files"
235 235
236FILES_libquadmath = "${libdir}/libquadmath*.so.*" 236FILES:libquadmath = "${libdir}/libquadmath*.so.*"
237SUMMARY_libquadmath = "GNU quad-precision math library" 237SUMMARY:libquadmath = "GNU quad-precision math library"
238FILES_libquadmath-dev = "\ 238FILES:libquadmath-dev = "\
239 ${libdir}/${TARGET_SYS}/${BINV}/include/quadmath* \ 239 ${libdir}/${TARGET_SYS}/${BINV}/include/quadmath* \
240 ${libdir}/libquadmath*.so \ 240 ${libdir}/libquadmath*.so \
241 ${libdir}/libquadmath.la \ 241 ${libdir}/libquadmath.la \
242" 242"
243SUMMARY_libquadmath-dev = "GNU quad-precision math library - development files" 243SUMMARY:libquadmath-dev = "GNU quad-precision math library - development files"
244FILES_libquadmath-staticdev = "${libdir}/libquadmath.a" 244FILES:libquadmath-staticdev = "${libdir}/libquadmath.a"
245SUMMARY_libquadmath-staticdev = "GNU quad-precision math library - static development files" 245SUMMARY:libquadmath-staticdev = "GNU quad-precision math library - static development files"
246 246
247FILES_libgomp = "${libdir}/libgomp*${SOLIBS}" 247FILES:libgomp = "${libdir}/libgomp*${SOLIBS}"
248SUMMARY_libgomp = "GNU OpenMP parallel programming library" 248SUMMARY:libgomp = "GNU OpenMP parallel programming library"
249FILES_libgomp-dev = "\ 249FILES:libgomp-dev = "\
250 ${libdir}/libgomp*${SOLIBSDEV} \ 250 ${libdir}/libgomp*${SOLIBSDEV} \
251 ${libdir}/libgomp*.la \ 251 ${libdir}/libgomp*.la \
252 ${libdir}/libgomp.spec \ 252 ${libdir}/libgomp.spec \
@@ -254,34 +254,34 @@ FILES_libgomp-dev = "\
254 ${libdir}/${TARGET_SYS}/${BINV}/include/omp.h \ 254 ${libdir}/${TARGET_SYS}/${BINV}/include/omp.h \
255 ${libdir}/${TARGET_SYS}/${BINV}/include/openacc.h \ 255 ${libdir}/${TARGET_SYS}/${BINV}/include/openacc.h \
256" 256"
257SUMMARY_libgomp-dev = "GNU OpenMP parallel programming library - development files" 257SUMMARY:libgomp-dev = "GNU OpenMP parallel programming library - development files"
258FILES_libgomp-staticdev = "${libdir}/libgomp*.a" 258FILES:libgomp-staticdev = "${libdir}/libgomp*.a"
259SUMMARY_libgomp-staticdev = "GNU OpenMP parallel programming library - static development files" 259SUMMARY:libgomp-staticdev = "GNU OpenMP parallel programming library - static development files"
260 260
261FILES_libatomic = "${libdir}/libatomic.so.*" 261FILES:libatomic = "${libdir}/libatomic.so.*"
262SUMMARY_libatomic = "GNU C++11 atomics support library" 262SUMMARY:libatomic = "GNU C++11 atomics support library"
263FILES_libatomic-dev = "\ 263FILES:libatomic-dev = "\
264 ${libdir}/libatomic.so \ 264 ${libdir}/libatomic.so \
265 ${libdir}/libatomic.la \ 265 ${libdir}/libatomic.la \
266" 266"
267SUMMARY_libatomic-dev = "GNU C++11 atomics support library - development files" 267SUMMARY:libatomic-dev = "GNU C++11 atomics support library - development files"
268FILES_libatomic-staticdev = "${libdir}/libatomic.a" 268FILES:libatomic-staticdev = "${libdir}/libatomic.a"
269SUMMARY_libatomic-staticdev = "GNU C++11 atomics support library - static development files" 269SUMMARY:libatomic-staticdev = "GNU C++11 atomics support library - static development files"
270 270
271FILES_libitm = "${libdir}/libitm.so.*" 271FILES:libitm = "${libdir}/libitm.so.*"
272SUMMARY_libitm = "GNU transactional memory support library" 272SUMMARY:libitm = "GNU transactional memory support library"
273FILES_libitm-dev = "\ 273FILES:libitm-dev = "\
274 ${libdir}/libitm.so \ 274 ${libdir}/libitm.so \
275 ${libdir}/libitm.la \ 275 ${libdir}/libitm.la \
276 ${libdir}/libitm.spec \ 276 ${libdir}/libitm.spec \
277" 277"
278SUMMARY_libitm-dev = "GNU transactional memory support library - development files" 278SUMMARY:libitm-dev = "GNU transactional memory support library - development files"
279FILES_libitm-staticdev = "${libdir}/libitm.a" 279FILES:libitm-staticdev = "${libdir}/libitm.a"
280SUMMARY_libitm-staticdev = "GNU transactional memory support library - static development files" 280SUMMARY:libitm-staticdev = "GNU transactional memory support library - static development files"
281 281
282require gcc-testsuite.inc 282require gcc-testsuite.inc
283 283
284EXTRA_OEMAKE_prepend_task-check = "${PARALLEL_MAKE} " 284EXTRA_OEMAKE:prepend_task-check = "${PARALLEL_MAKE} "
285 285
286MAKE_CHECK_TARGETS ??= "check-gcc ${@" ".join("check-target-" + i for i in d.getVar("RUNTIMETARGET").split())}" 286MAKE_CHECK_TARGETS ??= "check-gcc ${@" ".join("check-target-" + i for i in d.getVar("RUNTIMETARGET").split())}"
287# prettyprinters and xmethods require gdb tooling 287# prettyprinters and xmethods require gdb tooling
diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers.inc b/meta/recipes-devtools/gcc/gcc-sanitizers.inc
index 59e91daaea..9881afa837 100644
--- a/meta/recipes-devtools/gcc/gcc-sanitizers.inc
+++ b/meta/recipes-devtools/gcc/gcc-sanitizers.inc
@@ -47,11 +47,11 @@ do_install () {
47} 47}
48 48
49INHIBIT_DEFAULT_DEPS = "1" 49INHIBIT_DEFAULT_DEPS = "1"
50ALLOW_EMPTY_${PN} = "1" 50ALLOW_EMPTY:${PN} = "1"
51DEPENDS = "virtual/crypt gcc-runtime virtual/${TARGET_PREFIX}gcc" 51DEPENDS = "virtual/crypt gcc-runtime virtual/${TARGET_PREFIX}gcc"
52 52
53# used to fix ../../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21: error: 'st.st_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized] 53# used to fix ../../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21: error: 'st.st_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized]
54DEBUG_OPTIMIZATION_append = " -Wno-error" 54DEBUG_OPTIMIZATION:append = " -Wno-error"
55 55
56BBCLASSEXTEND = "nativesdk" 56BBCLASSEXTEND = "nativesdk"
57 57
@@ -60,19 +60,19 @@ PACKAGES += "libasan libubsan liblsan libtsan"
60PACKAGES += "libasan-dev libubsan-dev liblsan-dev libtsan-dev" 60PACKAGES += "libasan-dev libubsan-dev liblsan-dev libtsan-dev"
61PACKAGES += "libasan-staticdev libubsan-staticdev liblsan-staticdev libtsan-staticdev" 61PACKAGES += "libasan-staticdev libubsan-staticdev liblsan-staticdev libtsan-staticdev"
62 62
63RDEPENDS_libasan += "libstdc++" 63RDEPENDS:libasan += "libstdc++"
64RDEPENDS_libubsan += "libstdc++" 64RDEPENDS:libubsan += "libstdc++"
65RDEPENDS_liblsan += "libstdc++" 65RDEPENDS:liblsan += "libstdc++"
66RDEPENDS_libtsan += "libstdc++" 66RDEPENDS:libtsan += "libstdc++"
67RDEPENDS_libasan-dev += "${PN}" 67RDEPENDS:libasan-dev += "${PN}"
68RDEPENDS_libubsan-dev += "${PN}" 68RDEPENDS:libubsan-dev += "${PN}"
69RDEPENDS_liblsan-dev += "${PN}" 69RDEPENDS:liblsan-dev += "${PN}"
70RDEPENDS_libtsan-dev += "${PN}" 70RDEPENDS:libtsan-dev += "${PN}"
71RRECOMMENDS_${PN} += "libasan libubsan" 71RRECOMMENDS:${PN} += "libasan libubsan"
72RRECOMMENDS_${PN}_append_x86 = " liblsan" 72RRECOMMENDS:${PN}:append:x86 = " liblsan"
73RRECOMMENDS_${PN}_append_x86-64 = " liblsan libtsan" 73RRECOMMENDS:${PN}:append:x86-64 = " liblsan libtsan"
74RRECOMMENDS_${PN}_append_powerpc64 = " liblsan libtsan" 74RRECOMMENDS:${PN}:append:powerpc64 = " liblsan libtsan"
75RRECOMMENDS_${PN}_append_aarch64 = " liblsan libtsan" 75RRECOMMENDS:${PN}:append:aarch64 = " liblsan libtsan"
76 76
77do_package_write_ipk[depends] += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs:do_packagedata" 77do_package_write_ipk[depends] += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs:do_packagedata"
78do_package_write_deb[depends] += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs:do_packagedata" 78do_package_write_deb[depends] += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs:do_packagedata"
@@ -81,40 +81,40 @@ do_package_write_rpm[depends] += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlib
81# Only x86, powerpc, sparc, s390, arm, and aarch64 are supported 81# Only x86, powerpc, sparc, s390, arm, and aarch64 are supported
82COMPATIBLE_HOST = '(x86_64|i.86|powerpc|sparc|s390|arm|aarch64).*-linux' 82COMPATIBLE_HOST = '(x86_64|i.86|powerpc|sparc|s390|arm|aarch64).*-linux'
83# musl is currently broken entirely 83# musl is currently broken entirely
84COMPATIBLE_HOST_libc-musl = 'null' 84COMPATIBLE_HOST:libc-musl = 'null'
85 85
86FILES_libasan += "${libdir}/libasan.so.* ${libdir}/libhwasan.so.*" 86FILES:libasan += "${libdir}/libasan.so.* ${libdir}/libhwasan.so.*"
87FILES_libasan-dev += "\ 87FILES:libasan-dev += "\
88 ${libdir}/libasan_preinit.o \ 88 ${libdir}/libasan_preinit.o \
89 ${libdir}/libasan.so \ 89 ${libdir}/libasan.so \
90 ${libdir}/libhwasan.so \ 90 ${libdir}/libhwasan.so \
91 ${libdir}/libasan.la \ 91 ${libdir}/libasan.la \
92" 92"
93FILES_libasan-staticdev += "${libdir}/libasan.a \ 93FILES:libasan-staticdev += "${libdir}/libasan.a \
94 ${libdir}/libhwasan.a \ 94 ${libdir}/libhwasan.a \
95" 95"
96 96
97FILES_libubsan += "${libdir}/libubsan.so.*" 97FILES:libubsan += "${libdir}/libubsan.so.*"
98FILES_libubsan-dev += "\ 98FILES:libubsan-dev += "\
99 ${libdir}/libubsan.so \ 99 ${libdir}/libubsan.so \
100 ${libdir}/libubsan.la \ 100 ${libdir}/libubsan.la \
101" 101"
102FILES_libubsan-staticdev += "${libdir}/libubsan.a" 102FILES:libubsan-staticdev += "${libdir}/libubsan.a"
103 103
104FILES_liblsan += "${libdir}/liblsan.so.*" 104FILES:liblsan += "${libdir}/liblsan.so.*"
105FILES_liblsan-dev += "\ 105FILES:liblsan-dev += "\
106 ${libdir}/liblsan.so \ 106 ${libdir}/liblsan.so \
107 ${libdir}/liblsan.la \ 107 ${libdir}/liblsan.la \
108 ${libdir}/liblsan_preinit.o \ 108 ${libdir}/liblsan_preinit.o \
109" 109"
110FILES_liblsan-staticdev += "${libdir}/liblsan.a" 110FILES:liblsan-staticdev += "${libdir}/liblsan.a"
111 111
112FILES_libtsan += "${libdir}/libtsan.so.*" 112FILES:libtsan += "${libdir}/libtsan.so.*"
113FILES_libtsan-dev += "\ 113FILES:libtsan-dev += "\
114 ${libdir}/libtsan.so \ 114 ${libdir}/libtsan.so \
115 ${libdir}/libtsan.la \ 115 ${libdir}/libtsan.la \
116 ${libdir}/libtsan_*.o \ 116 ${libdir}/libtsan_*.o \
117" 117"
118FILES_libtsan-staticdev += "${libdir}/libtsan.a" 118FILES:libtsan-staticdev += "${libdir}/libtsan.a"
119 119
120FILES_${PN} = "${libdir}/*.spec ${libdir}/${TARGET_SYS}/${BINV}/include/sanitizer/*.h" 120FILES:${PN} = "${libdir}/*.spec ${libdir}/${TARGET_SYS}/${BINV}/include/sanitizer/*.h"
diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers_11.1.bb b/meta/recipes-devtools/gcc/gcc-sanitizers_11.1.bb
index f3c7058114..8bda2ccad6 100644
--- a/meta/recipes-devtools/gcc/gcc-sanitizers_11.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-sanitizers_11.1.bb
@@ -3,5 +3,5 @@ require gcc-sanitizers.inc
3 3
4# Building with thumb enabled on armv4t armv5t fails with 4# Building with thumb enabled on armv4t armv5t fails with
5# sanitizer_linux.s:5749: Error: lo register required -- `ldr ip,[sp],#8' 5# sanitizer_linux.s:5749: Error: lo register required -- `ldr ip,[sp],#8'
6ARM_INSTRUCTION_SET_armv4 = "arm" 6ARM_INSTRUCTION_SET:armv4 = "arm"
7ARM_INSTRUCTION_SET_armv5 = "arm" 7ARM_INSTRUCTION_SET:armv5 = "arm"
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
index 0ee3e83d42..bf55e692e6 100644
--- a/meta/recipes-devtools/gcc/gcc-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-target.inc
@@ -5,7 +5,7 @@ EXTRA_OECONF_PATHS = "\
5 --with-build-sysroot=${STAGING_DIR_TARGET} \ 5 --with-build-sysroot=${STAGING_DIR_TARGET} \
6" 6"
7 7
8EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" 8EXTRA_OECONF:append:linuxstdbase = " --enable-clocale=gnu"
9 9
10# Configure gcc running on the target to default to an architecture which will 10# Configure gcc running on the target to default to an architecture which will
11# be compatible with that of gcc-runtime (which is cross compiled to be target 11# be compatible with that of gcc-runtime (which is cross compiled to be target
@@ -15,11 +15,11 @@ EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu"
15 15
16ARMFPARCHEXT ?= "" 16ARMFPARCHEXT ?= ""
17 17
18EXTRA_OECONF_append_armv6_class-target = " --with-arch=armv6${ARMFPARCHEXT}" 18EXTRA_OECONF:append:armv6:class-target = " --with-arch=armv6${ARMFPARCHEXT}"
19EXTRA_OECONF_append_armv7a_class-target = " --with-arch=armv7-a${ARMFPARCHEXT}" 19EXTRA_OECONF:append:armv7a:class-target = " --with-arch=armv7-a${ARMFPARCHEXT}"
20EXTRA_OECONF_append_armv7ve_class-target = " --with-arch=armv7ve${ARMFPARCHEXT}" 20EXTRA_OECONF:append:armv7ve:class-target = " --with-arch=armv7ve${ARMFPARCHEXT}"
21EXTRA_OECONF_append_arc_class-target = " --with-cpu=${TUNE_PKGARCH}" 21EXTRA_OECONF:append:arc:class-target = " --with-cpu=${TUNE_PKGARCH}"
22EXTRA_OECONF_append_x86-64_class-target = " --with-arch=native" 22EXTRA_OECONF:append:x86-64:class-target = " --with-arch=native"
23 23
24# libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is 24# libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is
25# set in subdir gcc, so subdir libcc1 can't use it, export it here to 25# set in subdir gcc, so subdir libcc1 can't use it, export it here to
@@ -40,7 +40,7 @@ PACKAGES = "\
40 ${PN}-dbg \ 40 ${PN}-dbg \
41" 41"
42 42
43FILES_${PN} = "\ 43FILES:${PN} = "\
44 ${bindir}/${TARGET_PREFIX}gcc* \ 44 ${bindir}/${TARGET_PREFIX}gcc* \
45 ${bindir}/${TARGET_PREFIX}lto* \ 45 ${bindir}/${TARGET_PREFIX}lto* \
46 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/collect2* \ 46 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/collect2* \
@@ -56,85 +56,85 @@ FILES_${PN} = "\
56 ${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \ 56 ${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \
57 ${libdir}/bfd-plugins/*.so \ 57 ${libdir}/bfd-plugins/*.so \
58" 58"
59INSANE_SKIP_${PN} += "dev-so" 59INSANE_SKIP:${PN} += "dev-so"
60RRECOMMENDS_${PN} += "\ 60RRECOMMENDS:${PN} += "\
61 libssp \ 61 libssp \
62 libssp-dev \ 62 libssp-dev \
63" 63"
64RDEPENDS_${PN} += "cpp" 64RDEPENDS:${PN} += "cpp"
65 65
66FILES_${PN}-dev = "\ 66FILES:${PN}-dev = "\
67 ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \ 67 ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \
68 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \ 68 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \
69 ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/include/ \ 69 ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/include/ \
70 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/plugin/gengtype \ 70 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/plugin/gengtype \
71 ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/gtype.state \ 71 ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/gtype.state \
72" 72"
73FILES_${PN}-symlinks = "\ 73FILES:${PN}-symlinks = "\
74 ${bindir}/cc \ 74 ${bindir}/cc \
75 ${bindir}/gcc \ 75 ${bindir}/gcc \
76 ${bindir}/gccbug \ 76 ${bindir}/gccbug \
77" 77"
78 78
79FILES_${PN}-plugins = "\ 79FILES:${PN}-plugins = "\
80 ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin \ 80 ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin \
81" 81"
82ALLOW_EMPTY_${PN}-plugins = "1" 82ALLOW_EMPTY:${PN}-plugins = "1"
83 83
84FILES_g77 = "\ 84FILES:g77 = "\
85 ${bindir}/${TARGET_PREFIX}g77 \ 85 ${bindir}/${TARGET_PREFIX}g77 \
86 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f771 \ 86 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f771 \
87" 87"
88FILES_g77-symlinks = "\ 88FILES:g77-symlinks = "\
89 ${bindir}/g77 \ 89 ${bindir}/g77 \
90 ${bindir}/f77 \ 90 ${bindir}/f77 \
91" 91"
92RRECOMMENDS_g77 = "\ 92RRECOMMENDS:g77 = "\
93 libg2c \ 93 libg2c \
94 libg2c-dev \ 94 libg2c-dev \
95" 95"
96 96
97FILES_gfortran = "\ 97FILES:gfortran = "\
98 ${bindir}/${TARGET_PREFIX}gfortran \ 98 ${bindir}/${TARGET_PREFIX}gfortran \
99 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f951 \ 99 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f951 \
100" 100"
101RRECOMMENDS_gfortran = "\ 101RRECOMMENDS:gfortran = "\
102 libquadmath \ 102 libquadmath \
103 libquadmath-dev \ 103 libquadmath-dev \
104" 104"
105FILES_gfortran-symlinks = "\ 105FILES:gfortran-symlinks = "\
106 ${bindir}/gfortran \ 106 ${bindir}/gfortran \
107 ${bindir}/f95" 107 ${bindir}/f95"
108 108
109FILES_cpp = "\ 109FILES:cpp = "\
110 ${bindir}/${TARGET_PREFIX}cpp* \ 110 ${bindir}/${TARGET_PREFIX}cpp* \
111 ${base_libdir}/cpp \ 111 ${base_libdir}/cpp \
112 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1" 112 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1"
113FILES_cpp-symlinks = "${bindir}/cpp" 113FILES:cpp-symlinks = "${bindir}/cpp"
114 114
115FILES_gcov = "${bindir}/${TARGET_PREFIX}gcov* \ 115FILES:gcov = "${bindir}/${TARGET_PREFIX}gcov* \
116 ${bindir}/${TARGET_PREFIX}gcov-tool* \ 116 ${bindir}/${TARGET_PREFIX}gcov-tool* \
117" 117"
118FILES_gcov-symlinks = "${bindir}/gcov \ 118FILES:gcov-symlinks = "${bindir}/gcov \
119 ${bindir}/gcov-tool \ 119 ${bindir}/gcov-tool \
120" 120"
121 121
122FILES_g++ = "\ 122FILES:g++ = "\
123 ${bindir}/${TARGET_PREFIX}g++* \ 123 ${bindir}/${TARGET_PREFIX}g++* \
124 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \ 124 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \
125" 125"
126FILES_g++-symlinks = "\ 126FILES:g++-symlinks = "\
127 ${bindir}/c++ \ 127 ${bindir}/c++ \
128 ${bindir}/g++ \ 128 ${bindir}/g++ \
129" 129"
130RRECOMMENDS_g++ = "\ 130RRECOMMENDS:g++ = "\
131 libstdc++ \ 131 libstdc++ \
132 libstdc++-dev \ 132 libstdc++-dev \
133 libatomic \ 133 libatomic \
134 libatomic-dev \ 134 libatomic-dev \
135" 135"
136 136
137FILES_${PN}-doc = "\ 137FILES:${PN}-doc = "\
138 ${infodir} \ 138 ${infodir} \
139 ${mandir} \ 139 ${mandir} \
140 ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \ 140 ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \
@@ -221,7 +221,7 @@ do_install () {
221 chown -R root:root ${D} 221 chown -R root:root ${D}
222} 222}
223 223
224do_install_append () { 224do_install:append () {
225 # 225 #
226 # Thefixinc.sh script, run on the gcc's compile phase, looks into sysroot header 226 # Thefixinc.sh script, run on the gcc's compile phase, looks into sysroot header
227 # files and places the modified files into 227 # files and places the modified files into
diff --git a/meta/recipes-devtools/gcc/gcc_11.1.bb b/meta/recipes-devtools/gcc/gcc_11.1.bb
index 7d93590588..255fe552bd 100644
--- a/meta/recipes-devtools/gcc/gcc_11.1.bb
+++ b/meta/recipes-devtools/gcc/gcc_11.1.bb
@@ -4,11 +4,11 @@ require gcc-target.inc
4# Building with thumb enabled on armv4t armv5t fails with 4# Building with thumb enabled on armv4t armv5t fails with
5# | gcc-4.8.1-r0/gcc-4.8.1/gcc/cp/decl.c:7438:(.text.unlikely+0x2fa): relocation truncated to fit: R_ARM_THM_CALL against symbol `fancy_abort(char const*, int, char const*)' defined in .glue_7 section in linker stubs 5# | gcc-4.8.1-r0/gcc-4.8.1/gcc/cp/decl.c:7438:(.text.unlikely+0x2fa): relocation truncated to fit: R_ARM_THM_CALL against symbol `fancy_abort(char const*, int, char const*)' defined in .glue_7 section in linker stubs
6# | gcc-4.8.1-r0/gcc-4.8.1/gcc/cp/decl.c:7442:(.text.unlikely+0x318): additional relocation overflows omitted from the output 6# | gcc-4.8.1-r0/gcc-4.8.1/gcc/cp/decl.c:7442:(.text.unlikely+0x318): additional relocation overflows omitted from the output
7ARM_INSTRUCTION_SET_armv4 = "arm" 7ARM_INSTRUCTION_SET:armv4 = "arm"
8ARM_INSTRUCTION_SET_armv5 = "arm" 8ARM_INSTRUCTION_SET:armv5 = "arm"
9 9
10ARMFPARCHEXT_armv6 = "${@'+fp' if d.getVar('TARGET_FPU') == 'hard' else ''}" 10ARMFPARCHEXT:armv6 = "${@'+fp' if d.getVar('TARGET_FPU') == 'hard' else ''}"
11ARMFPARCHEXT_armv7a = "${@'+fp' if d.getVar('TARGET_FPU') == 'hard' else ''}" 11ARMFPARCHEXT:armv7a = "${@'+fp' if d.getVar('TARGET_FPU') == 'hard' else ''}"
12ARMFPARCHEXT_armv7ve = "${@'+fp' if d.getVar('TARGET_FPU') == 'hard' else ''}" 12ARMFPARCHEXT:armv7ve = "${@'+fp' if d.getVar('TARGET_FPU') == 'hard' else ''}"
13 13
14BBCLASSEXTEND = "nativesdk" 14BBCLASSEXTEND = "nativesdk"
diff --git a/meta/recipes-devtools/gcc/libgcc-common.inc b/meta/recipes-devtools/gcc/libgcc-common.inc
index d959566c3f..d48dc8b823 100644
--- a/meta/recipes-devtools/gcc/libgcc-common.inc
+++ b/meta/recipes-devtools/gcc/libgcc-common.inc
@@ -44,16 +44,16 @@ do_install () {
44 rm -rf ${D}${libdir}/${TARGET_SYS}/${BINV}/include 44 rm -rf ${D}${libdir}/${TARGET_SYS}/${BINV}/include
45} 45}
46 46
47do_install_append_libc-baremetal () { 47do_install:append:libc-baremetal () {
48 rmdir ${D}${base_libdir} 48 rmdir ${D}${base_libdir}
49} 49}
50do_install_append_libc-newlib () { 50do_install:append:libc-newlib () {
51 rmdir ${D}${base_libdir} 51 rmdir ${D}${base_libdir}
52} 52}
53 53
54# No rpm package is actually created but -dev depends on it, avoid dnf error 54# No rpm package is actually created but -dev depends on it, avoid dnf error
55RDEPENDS_${PN}-dev_libc-baremetal = "" 55RDEPENDS:${PN}-dev:libc-baremetal = ""
56RDEPENDS_${PN}-dev_libc-newlib = "" 56RDEPENDS:${PN}-dev:libc-newlib = ""
57 57
58BBCLASSEXTEND = "nativesdk" 58BBCLASSEXTEND = "nativesdk"
59 59
@@ -98,9 +98,9 @@ fakeroot python do_multilib_install() {
98 98
99 99
100 for ml in multilibs.split(): 100 for ml in multilibs.split():
101 tune = d.getVar('DEFAULTTUNE_virtclass-multilib-' + ml) 101 tune = d.getVar('DEFAULTTUNE:virtclass-multilib-' + ml)
102 if not tune: 102 if not tune:
103 bb.warn('DEFAULTTUNE_virtclass-multilib-%s is not defined. Skipping...' % ml) 103 bb.warn('DEFAULTTUNE:virtclass-multilib-%s is not defined. Skipping...' % ml)
104 continue 104 continue
105 105
106 tune_parameters = get_tune_parameters(tune, d) 106 tune_parameters = get_tune_parameters(tune, d)
diff --git a/meta/recipes-devtools/gcc/libgcc-initial.inc b/meta/recipes-devtools/gcc/libgcc-initial.inc
index 06bf224f73..8251e3c286 100644
--- a/meta/recipes-devtools/gcc/libgcc-initial.inc
+++ b/meta/recipes-devtools/gcc/libgcc-initial.inc
@@ -42,17 +42,17 @@ inherit nopackages
42# We really only want this built by things that need it, not any recrdeptask 42# We really only want this built by things that need it, not any recrdeptask
43deltask do_build 43deltask do_build
44 44
45do_configure_prepend () { 45do_configure:prepend () {
46 install -d ${STAGING_INCDIR} 46 install -d ${STAGING_INCDIR}
47 touch ${STAGING_INCDIR}/limits.h 47 touch ${STAGING_INCDIR}/limits.h
48 sed -i -e 's#INHIBIT_LIBC_CFLAGS =.*#INHIBIT_LIBC_CFLAGS = -Dinhibit_libc#' ${B}/gcc/libgcc.mvars 48 sed -i -e 's#INHIBIT_LIBC_CFLAGS =.*#INHIBIT_LIBC_CFLAGS = -Dinhibit_libc#' ${B}/gcc/libgcc.mvars
49 sed -i -e 's#inhibit_libc = false#inhibit_libc = true#' ${B}/gcc/Makefile 49 sed -i -e 's#inhibit_libc = false#inhibit_libc = true#' ${B}/gcc/Makefile
50} 50}
51 51
52do_configure_append () { 52do_configure:append () {
53 sed -i -e 's#thread_header = .*#thread_header = gthr-single.h#' ${B}/${BPN}/Makefile 53 sed -i -e 's#thread_header = .*#thread_header = gthr-single.h#' ${B}/${BPN}/Makefile
54} 54}
55 55
56do_install_append () { 56do_install:append () {
57 ln -s libgcc.a ${D}${libdir}/${TARGET_SYS}/${BINV}/libgcc_eh.a 57 ln -s libgcc.a ${D}${libdir}/${TARGET_SYS}/${BINV}/libgcc_eh.a
58} 58}
diff --git a/meta/recipes-devtools/gcc/libgcc-initial_11.1.bb b/meta/recipes-devtools/gcc/libgcc-initial_11.1.bb
index 0c698c26ec..a259082b47 100644
--- a/meta/recipes-devtools/gcc/libgcc-initial_11.1.bb
+++ b/meta/recipes-devtools/gcc/libgcc-initial_11.1.bb
@@ -2,4 +2,4 @@ require recipes-devtools/gcc/gcc-${PV}.inc
2require libgcc-initial.inc 2require libgcc-initial.inc
3 3
4# Building with thumb enabled on armv6t fails 4# Building with thumb enabled on armv6t fails
5ARM_INSTRUCTION_SET_armv6 = "arm" 5ARM_INSTRUCTION_SET:armv6 = "arm"
diff --git a/meta/recipes-devtools/gcc/libgcc.inc b/meta/recipes-devtools/gcc/libgcc.inc
index 6d48ec9809..84a2d930df 100644
--- a/meta/recipes-devtools/gcc/libgcc.inc
+++ b/meta/recipes-devtools/gcc/libgcc.inc
@@ -2,7 +2,7 @@ require libgcc-common.inc
2 2
3DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++ virtual/${MLPREFIX}libc" 3DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++ virtual/${MLPREFIX}libc"
4 4
5do_install_append_class-target () { 5do_install:append:class-target () {
6 if [ "${TCLIBC}" != "glibc" ]; then 6 if [ "${TCLIBC}" != "glibc" ]; then
7 case "${TARGET_OS}" in 7 case "${TARGET_OS}" in
8 "linux-musl" | "linux-*spe") extra_target_os="linux";; 8 "linux-musl" | "linux-*spe") extra_target_os="linux";;
@@ -32,12 +32,12 @@ PACKAGES = "\
32 32
33# All libgcc source is marked with the exception. 33# All libgcc source is marked with the exception.
34# 34#
35LICENSE_${PN} = "GPL-3.0-with-GCC-exception" 35LICENSE:${PN} = "GPL-3.0-with-GCC-exception"
36LICENSE_${PN}-dev = "GPL-3.0-with-GCC-exception" 36LICENSE:${PN}-dev = "GPL-3.0-with-GCC-exception"
37LICENSE_${PN}-dbg = "GPL-3.0-with-GCC-exception" 37LICENSE:${PN}-dbg = "GPL-3.0-with-GCC-exception"
38 38
39 39
40FILES_${PN}-dev = "\ 40FILES:${PN}-dev = "\
41 ${base_libdir}/libgcc*.so \ 41 ${base_libdir}/libgcc*.so \
42 ${@oe.utils.conditional('BASETARGET_SYS', '${TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \ 42 ${@oe.utils.conditional('BASETARGET_SYS', '${TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \
43 ${libdir}/${TARGET_SYS}/${BINV}* \ 43 ${libdir}/${TARGET_SYS}/${BINV}* \
@@ -49,5 +49,5 @@ do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
49do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata" 49do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
50do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata" 50do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
51 51
52INSANE_SKIP_${PN}-dev = "staticdev" 52INSANE_SKIP:${PN}-dev = "staticdev"
53 53
diff --git a/meta/recipes-devtools/gcc/libgcc_11.1.bb b/meta/recipes-devtools/gcc/libgcc_11.1.bb
index ea210a1130..f88963b0a4 100644
--- a/meta/recipes-devtools/gcc/libgcc_11.1.bb
+++ b/meta/recipes-devtools/gcc/libgcc_11.1.bb
@@ -2,4 +2,4 @@ require recipes-devtools/gcc/gcc-${PV}.inc
2require libgcc.inc 2require libgcc.inc
3 3
4# Building with thumb enabled on armv6t fails 4# Building with thumb enabled on armv6t fails
5ARM_INSTRUCTION_SET_armv6 = "arm" 5ARM_INSTRUCTION_SET:armv6 = "arm"
diff --git a/meta/recipes-devtools/gcc/libgfortran.inc b/meta/recipes-devtools/gcc/libgfortran.inc
index 7543585e6e..344ec5e21e 100644
--- a/meta/recipes-devtools/gcc/libgfortran.inc
+++ b/meta/recipes-devtools/gcc/libgfortran.inc
@@ -54,12 +54,12 @@ PACKAGES = "\
54 libgfortran-staticdev \ 54 libgfortran-staticdev \
55" 55"
56 56
57LICENSE_${PN} = "GPL-3.0-with-GCC-exception" 57LICENSE:${PN} = "GPL-3.0-with-GCC-exception"
58LICENSE_${PN}-dev = "GPL-3.0-with-GCC-exception" 58LICENSE:${PN}-dev = "GPL-3.0-with-GCC-exception"
59LICENSE_${PN}-dbg = "GPL-3.0-with-GCC-exception" 59LICENSE:${PN}-dbg = "GPL-3.0-with-GCC-exception"
60 60
61FILES_${PN} = "${libdir}/libgfortran.so.*" 61FILES:${PN} = "${libdir}/libgfortran.so.*"
62FILES_${PN}-dev = "\ 62FILES:${PN}-dev = "\
63 ${libdir}/libgfortran*.so \ 63 ${libdir}/libgfortran*.so \
64 ${libdir}/libgfortran.spec \ 64 ${libdir}/libgfortran.spec \
65 ${libdir}/libgfortran.la \ 65 ${libdir}/libgfortran.la \
@@ -68,9 +68,9 @@ FILES_${PN}-dev = "\
68 ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude/ \ 68 ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude/ \
69 ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/ \ 69 ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/ \
70" 70"
71FILES_${PN}-staticdev = "${libdir}/libgfortran.a" 71FILES:${PN}-staticdev = "${libdir}/libgfortran.a"
72 72
73INSANE_SKIP_${MLPREFIX}libgfortran-dev = "staticdev" 73INSANE_SKIP:${MLPREFIX}libgfortran-dev = "staticdev"
74 74
75do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata" 75do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
76do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata" 76do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"