mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Masahiro YAMADA <mappyland78@gmail.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Barebox List <barebox@lists.infradead.org>
Subject: Re: [PATCH 3/3] ARM: cleanup 32bit/64bit support in Kconfig
Date: Sat, 25 Mar 2023 13:46:39 +0900	[thread overview]
Message-ID: <CAK7LNAQKXGmnZMSNRGbVpO4egBb_M0XR992E1-wpR-Y+cwoBSA@mail.gmail.com> (raw)
In-Reply-To: <20230324121840.2375026-4-s.hauer@pengutronix.de>

On Fri, Mar 24, 2023 at 9:20 PM Sascha Hauer <s.hauer@pengutronix.de> wrote:
>
> The decision whether to build a 32bit or 64bit barebox has to be made
> first before anything else, so this makes CONFIG_64BIT a toplevel option
> without any further dependencies.
>
> With this patch we will only present the SoCs/boards which are actually
> supported by the selected code model in Kconfig.
>
> Without this patch it was often possible to select 32bit boards on a
> 64bit build or vice versa, which resulted in a broken build.
>
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>


>
> -choice
> -       prompt "Barebox code model"
> -       help
> -         You should only select this option if you have a workload that
> -         actually benefits from 64-bit processing or if your machine has
> -         large memory. You will only be presented a single option in this
> -         menu if your system does not support both 32-bit and 64-bit modes.
> -
> -config 32BIT
> -       bool "32-bit barebox"
> -       depends on CPU_SUPPORTS_32BIT_KERNEL
> -       help
> -         Select this option if you want to build a 32-bit barebox.
> -
>  config 64BIT
> -       bool "64-bit barebox"
> -       depends on CPU_SUPPORTS_64BIT_KERNEL
> +       bool "64bit barebox" if "$(ARCH)" != "arm64"
> +       default "$(ARCH)" = "arm64"
>         select ARCH_DMA_ADDR_T_64BIT
>         help
>           Select this option if you want to build a 64-bit barebox.
>
> -endchoice
> +config 32BIT
> +       bool
> +       default !64BIT
> +       help
> +         Select this option if you want to build a 32-bit barebox.
>


This help message is a bit strange - it is automatically
selected / unselected since it has no "prompt".





I see more CONFIG options with a weird help.





config 64BIT
        def_bool y if X86_EFI
        select ARCH_DMA_ADDR_T_64BIT
        help
          Say yes to build a 64-bit binary - formerly known as x86_64
          Say no to build a 32-bit binary - formerly known as i386.



You cannot say yes or no here since Kconfig
does not show a prompt in the first place.



      reply	other threads:[~2023-03-25  4:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-24 12:18 [PATCH 0/3] ARM: straighten 32bit/64bit Kconfig options Sascha Hauer
2023-03-24 12:18 ` [PATCH 1/3] ARM: remove freescale-mx21-ads_defconfig Sascha Hauer
2023-03-24 12:18 ` [PATCH 2/3] ARM: update defconfigs Sascha Hauer
2023-03-24 12:18 ` [PATCH 3/3] ARM: cleanup 32bit/64bit support in Kconfig Sascha Hauer
2023-03-25  4:46   ` Masahiro YAMADA [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=CAK7LNAQKXGmnZMSNRGbVpO4egBb_M0XR992E1-wpR-Y+cwoBSA@mail.gmail.com \
    --to=mappyland78@gmail.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /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