[OE-core] [PATCH 8/9] binutils: Bail out if gold is used on 32/64 bit RISC-V
Adrian Bunk
bunk at stusta.de
Thu Feb 13 07:31:51 UTC 2020
On Wed, Feb 12, 2020 at 10:38:22PM -0800, Khem Raj wrote:
> gold is not supporting risc-v yet and, this will cause subltle errors
> during build e.g. autoconf not finding certain features like visibility
> and it could take a while to unwind the problem. Its better to error out
> early
>...
> @@ -163,3 +165,8 @@ inherit update-alternatives
> ALTERNATIVE_PRIORITY = "100"
>
> ALTERNATIVE_${PN}_class-target = "${USE_ALTERNATIVES_FOR}"
> +
> +python () {
> + if bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', True, False, d):
> + bb.fatal("Gold linker does not _yet_ support RISC-V architecture please remove ld-is-gold from DISTRO_FEATURES")
> +}
This lacks some check for RISC-V,
currently it errors for all architectures.
cu
Adrian
More information about the Openembedded-core
mailing list