From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v2 3/4] arch/Config.in: move the binary format selection further down
Date: Wed, 27 Jul 2022 09:58:42 +0200 [thread overview]
Message-ID: <20220727075842.GC1085273@scaer> (raw)
In-Reply-To: <20220726163951.2111731-3-thomas.petazzoni@bootlin.com>
Thomas, All,
On 2022-07-26 18:39 +0200, Thomas Petazzoni via buildroot spake thusly:
> Right now the "Target options" menu looks like this:
>
> Target architecture (....)
> ... options related to the binary format selection ...
> ... options related to the architecture variant selection ...
>
> This doesn't make much sense: the architecture variant selection
> should be just below the target architecture selection. With this
> commit, things will now be presented this way:
>
> Target architecture (....)
> ... options related to the architecture variant selection ...
> ... options related to the binary format selection ...
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> arch/Config.in | 100 ++++++++++++++++++++++++-------------------------
> 1 file changed, 50 insertions(+), 50 deletions(-)
>
> diff --git a/arch/Config.in b/arch/Config.in
> index 9135df9def..095036f1aa 100644
> --- a/arch/Config.in
> +++ b/arch/Config.in
> @@ -371,56 +371,6 @@ config BR2_BINFMT_SUPPORTS_SHARED
> config BR2_READELF_ARCH_NAME
> string
>
> -# Set up target binary format
> -choice
> - prompt "Target Binary Format"
> - default BR2_BINFMT_ELF if BR2_USE_MMU
> - default BR2_BINFMT_FLAT
> -
> -config BR2_BINFMT_ELF
> - bool "ELF"
> - depends on BR2_USE_MMU
> - select BR2_BINFMT_SUPPORTS_SHARED
> - help
> - ELF (Executable and Linkable Format) is a format for libraries
> - and executables used across different architectures and
> - operating systems.
> -
> -config BR2_BINFMT_FLAT
> - bool "FLAT"
> - depends on !BR2_USE_MMU
> - help
> - FLAT binary is a relatively simple and lightweight executable
> - format based on the original a.out format. It is widely used
> - in environment where no MMU is available.
> -
> -endchoice
> -
> -# Set up flat binary type
> -choice
> - prompt "FLAT Binary type"
> - default BR2_BINFMT_FLAT_ONE
> - depends on BR2_BINFMT_FLAT
> -
> -config BR2_BINFMT_FLAT_ONE
> - bool "One memory region"
> - help
> - All segments are linked into one memory region.
> -
> -config BR2_BINFMT_FLAT_SHARED
> - bool "Shared binary"
> - depends on BR2_m68k
> - # Even though this really generates shared binaries, there is no libdl
> - # and dlopen() cannot be used. So packages that require shared
> - # libraries cannot be built. Therefore, we don't select
> - # BR2_BINFMT_SUPPORTS_SHARED and therefore force BR2_STATIC_LIBS.
> - # Although this adds -static to the compilation, that's not a problem
> - # because the -mid-shared-library option overrides it.
> - help
> - Allow to load and link indiviual FLAT binaries at run time.
> -
> -endchoice
> -
> if BR2_arcle || BR2_arceb
> source "arch/Config.in.arc"
> endif
> @@ -481,4 +431,54 @@ if BR2_xtensa
> source "arch/Config.in.xtensa"
> endif
>
> +# Set up target binary format
> +choice
> + prompt "Target Binary Format"
> + default BR2_BINFMT_ELF if BR2_USE_MMU
> + default BR2_BINFMT_FLAT
> +
> +config BR2_BINFMT_ELF
> + bool "ELF"
> + depends on BR2_USE_MMU
> + select BR2_BINFMT_SUPPORTS_SHARED
> + help
> + ELF (Executable and Linkable Format) is a format for libraries
> + and executables used across different architectures and
> + operating systems.
> +
> +config BR2_BINFMT_FLAT
> + bool "FLAT"
> + depends on !BR2_USE_MMU
> + help
> + FLAT binary is a relatively simple and lightweight executable
> + format based on the original a.out format. It is widely used
> + in environment where no MMU is available.
> +
> +endchoice
> +
> +# Set up flat binary type
> +choice
> + prompt "FLAT Binary type"
> + default BR2_BINFMT_FLAT_ONE
> + depends on BR2_BINFMT_FLAT
> +
> +config BR2_BINFMT_FLAT_ONE
> + bool "One memory region"
> + help
> + All segments are linked into one memory region.
> +
> +config BR2_BINFMT_FLAT_SHARED
> + bool "Shared binary"
> + depends on BR2_m68k
> + # Even though this really generates shared binaries, there is no libdl
> + # and dlopen() cannot be used. So packages that require shared
> + # libraries cannot be built. Therefore, we don't select
> + # BR2_BINFMT_SUPPORTS_SHARED and therefore force BR2_STATIC_LIBS.
> + # Although this adds -static to the compilation, that's not a problem
> + # because the -mid-shared-library option overrides it.
> + help
> + Allow to load and link indiviual FLAT binaries at run time.
> +
> +endchoice
> +
> endmenu # Target options
> --
> 2.37.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| 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
next prev parent reply other threads:[~2022-07-27 7:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-26 16:39 [Buildroot] [PATCH v2 1/4] arch/Config.in.riscv: lp64f ABI is only supported if MMU is enabled Thomas Petazzoni via buildroot
2022-07-26 16:39 ` [Buildroot] [PATCH v2 2/4] package/Makefile.in: add detection for the lack of C library Thomas Petazzoni via buildroot
2022-07-27 7:58 ` Yann E. MORIN
2022-07-27 8:24 ` Thomas Petazzoni via buildroot
2022-08-29 20:15 ` Peter Korsgaard
2022-07-26 16:39 ` [Buildroot] [PATCH v2 3/4] arch/Config.in: move the binary format selection further down Thomas Petazzoni via buildroot
2022-07-27 7:58 ` Yann E. MORIN [this message]
2022-07-26 16:39 ` [Buildroot] [PATCH v2 4/4] arch: rework MMU option handling and move to "Target architecture" menu Thomas Petazzoni via buildroot
2022-07-27 7:03 ` Damien Le Moal via buildroot
2022-07-27 8:30 ` Yann E. MORIN
2022-07-27 9:22 ` Thomas Petazzoni via buildroot
2022-07-27 9:35 ` Yann E. MORIN
2022-07-27 9:43 ` Yann E. MORIN
2022-07-27 9:55 ` Thomas Petazzoni via buildroot
2022-07-27 7:57 ` [Buildroot] [PATCH v2 1/4] arch/Config.in.riscv: lp64f ABI is only supported if MMU is enabled Yann E. MORIN
2022-08-29 20:13 ` Peter Korsgaard
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=20220727075842.GC1085273@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox