From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Buildroot List <buildroot@buildroot.org>
Subject: Re: [Buildroot] [PATCH 00/16] Bootlin toolchain updates and x86 updates
Date: Tue, 25 Jan 2022 18:01:21 +0100 [thread overview]
Message-ID: <20220125170121.GB457876@scaer> (raw)
In-Reply-To: <20220125101125.6974b8bf@windsurf>
Thomas, All,
On 2022-01-25 10:11 +0100, Thomas Petazzoni spake thusly:
> On Tue, 25 Jan 2022 08:58:17 +0100
> "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
> > > Thomas Petazzoni (16):
[--SNIP--]
> > > arch/Config.in.x86: add "newer" names for several Intel x86 CPU
> > > variants
> > I was wondering if we should expand the prompt to include the fact that
> > they are deprecated, or specific to gcc versions before 4.9... But
> > whatever I tried was ugly or confusing, so I just left it as-is.
> Originally, I was hoping to simply remove them, and add
> Config.in.legacy entries for these options, selecting the new ones. But
> alas, before gcc 4.9, the "new" names didn't exist.
Yeah, I was wondering why we would not add them to legacy, then I read
the commit log. ;-)
But in the end, I believe legacy should be doable, albeit a bit ugly.
In legacy (only two entries used as example):
config BR2_x86_corei7
bool "corei7 has been renamed to nehalem"
select BR2_LEGACY
config BR2_x86_atom
bool "atom has been renamed to bonnel"
select BR2_LEGACY
And then in the choice in arch/Config.in.x86:
choice
bool "Target Architecture Variant"
default BR2_x86_nehalem if BR2_x86_corei7 # legacy
default BR2_x86_bonnel if BR2_x86_atom # legacy
default default BR2_x86_i586 if BR2_i386
depends on BR2_i386 || BR2_x86_64 # [0]
[...]
config BR2_x86_nehalem
bool "nehalem (corei7 for gcc < 4.9)"
config BR2_x86_bonnel
bool "bonnel (previously: atom)"
endchoice
config BR2_GCC_TARGET_ARCH
[...]
default "nehalem" if BR2_x86_nehalem && BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
default "corei7" if BR2_x86_nehalem # Legacy fallback
default "bonnel" if BR2_x86_bonnel && BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
default "atom" if BR2_x86_bonnel # Legacy fallback
[...]
This is a bit ugly, but a minor inconvenience. Note how I wrote two
different prompts: it's just for illustration purposes, we'll need to
settle on one or the other (or something else).
[0] this dependency is superfluous, as the whole of arch/Config.in.x86
is already conditionally included with this same condition from
arch/Config.in
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2022-01-25 17:01 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 23:00 [Buildroot] [PATCH 00/16] Bootlin toolchain updates and x86 updates Thomas Petazzoni
2022-01-24 23:00 ` [Buildroot] [PATCH 01/16] toolchain/toolchain-external/toolchain-external-bootlin: re-update OpenRISC toolchains Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 02/16] support/scripts/gen-bootlin-toolchains: add support for new x86-64 toolchains Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 03/16] toolchain/toolchain-external/toolchain-external-bootlin: update with " Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 04/16] arch/Config.in.x86: drastically simplify the BR2_ARCH definition Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 05/16] arch/Config.in.x86: add "newer" names for several Intel x86 CPU variants Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 06/16] arch/Config.in.x86: westmere and silvermont were added in gcc 4.9 Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 07/16] arch/Config.in.x86: add broadwell Intel CPU variant Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 08/16] arch/Config.in.x86: add skylake CPU variants Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 09/16] arch/Config.in.x86: x86-64-v4 implies AVX512 Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 10/16] support/scripts/gen-bootlin-toolchains: add missing BR2_X86_CPU_HAS_AVX512 condition for x86-64-v4 Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 11/16] toolchain/toolchain-external/toolchain-external-bootlin: regenerate with AVX512 condition for x86-64-v4 toolchain Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 12/16] arch/Config.in.x86: add cannonlake, icelake-client, icelake-server CPU variants Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 13/16] arch/Config.in.x86: add goldmont, goldmont-plus, tremont, cascadelake, tigerlake " Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 14/16] arch/Config.in.x86: add cooperlake CPU variant Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 15/16] arch/Config.in.x86: add sapphirerapids, alderlake, rocketlake Thomas Petazzoni
2022-01-24 23:01 ` [Buildroot] [PATCH 16/16] arch/Config.in.x86: indicate how the CPU variants are ordered Thomas Petazzoni
2022-01-25 7:58 ` [Buildroot] [PATCH 00/16] Bootlin toolchain updates and x86 updates Yann E. MORIN
2022-01-25 9:11 ` Thomas Petazzoni
2022-01-25 17:01 ` Yann E. MORIN [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220125170121.GB457876@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.