mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Thomas Weißschuh" <thomas@t-8ch.de>
To: Huacai Chen <chenhuacai@kernel.org>
Cc: Huacai Chen <chenhuacai@loongson.cn>,
	Arnd Bergmann <arnd@arndb.de>,
	 loongarch@lists.linux.dev, linux-arch@vger.kernel.org,
	Xuefeng Li <lixuefeng@loongson.cn>,  Guo Ren <guoren@kernel.org>,
	Xuerui Wang <kernel@xen0n.name>,
	 Jiaxun Yang <jiaxun.yang@flygoat.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH V3 13/14] LoongArch: Adjust default config files for 32BIT/64BIT
Date: Sat, 22 Nov 2025 13:24:50 +0100	[thread overview]
Message-ID: <2f9f3c8f-d444-42b9-9c2f-66c8676e9565@t-8ch.de> (raw)
In-Reply-To: <CAAhV-H4Vemxni8PrMCeubUwWcOFAV-j6AFJg4oPdxs-VNBiUGw@mail.gmail.com>

On 2025-11-22 19:58:24+0800, Huacai Chen wrote:
> On Sat, Nov 22, 2025 at 5:45 PM Thomas Weißschuh <thomas@t-8ch.de> wrote:
> >
> > On 2025-11-22 12:36:33+0800, Huacai Chen wrote:
> > > Add loongson32_defconfig (for 32BIT) and rename loongson3_defconfig to
> > > loongson64_defconfig (for 64BIT).
> > >
> > > Also adjust graphics drivers, such as FB_EFI is replaced with EFIDRM.
> > >
> > > Reviewed-by: Arnd Bergmann <arnd@arndb.de>
> > > Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> > > Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
> > > ---
> > >  arch/loongarch/Makefile                       |    7 +-
> > >  arch/loongarch/configs/loongson32_defconfig   | 1104 +++++++++++++++++
> > >  ...ongson3_defconfig => loongson64_defconfig} |    6 +-
> > >  3 files changed, 1113 insertions(+), 4 deletions(-)
> > >  create mode 100644 arch/loongarch/configs/loongson32_defconfig
> > >  rename arch/loongarch/configs/{loongson3_defconfig => loongson64_defconfig} (99%)
> > >
> > > diff --git a/arch/loongarch/Makefile b/arch/loongarch/Makefile
> > > index 96ca1a688984..cf9373786969 100644
> > > --- a/arch/loongarch/Makefile
> > > +++ b/arch/loongarch/Makefile
> > > @@ -5,7 +5,12 @@
> > >
> > >  boot := arch/loongarch/boot
> > >
> > > -KBUILD_DEFCONFIG := loongson3_defconfig
> > > +ifdef CONFIG_32BIT
> >
> > Testing for CONFIG options here doesn't make sense, as the config is not yet
> > created. Either test for $(ARCH) or uname or just use one unconditionally.
> > Also as mentioned before, snippets can reduce the duplication.
> Thank you for your clarification. But $(ARCH) also doesn't make sense
> because it is always "loongarch".
> 
> 'uname' is an option but I think it doesn't work for cross compile?

The default is not meant to work for cross compilations. ARCH/SUBARCH
can take `uname` into account. See Makefile and scripts/subarch.include.
But as Arnd mentioned, it most probably does not make any sense to cater
to native LoongArch32 builds. Just use the 64-bit variant unconditionally.
It is easy enough to override.


Thomas

  reply	other threads:[~2025-11-22 12:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-22  4:36 [PATCH V3 00/14] LoongArch: Add basic LoongArch32 support Huacai Chen
2025-11-22  4:36 ` [PATCH V3 01/14] LoongArch: Add atomic operations for 32BIT/64BIT Huacai Chen
2025-11-22  4:36 ` [PATCH V3 02/14] LoongArch: Add adaptive CSR accessors " Huacai Chen
2025-11-22  4:36 ` [PATCH V3 03/14] LoongArch: Adjust common macro definitions " Huacai Chen
2025-11-22  4:36 ` [PATCH V3 04/14] LoongArch: Adjust boot & setup " Huacai Chen
2025-11-22  4:36 ` [PATCH V3 05/14] LoongArch: Adjust memory management " Huacai Chen
2025-11-22  4:36 ` [PATCH V3 06/14] LoongArch: Adjust process " Huacai Chen
2025-11-22  4:36 ` [PATCH V3 07/14] LoongArch: Adjust time routines " Huacai Chen
2025-11-22  4:36 ` [PATCH V3 08/14] LoongArch: Adjust module loader " Huacai Chen
2025-11-22  4:36 ` [PATCH V3 09/14] LoongArch: Adjust system call " Huacai Chen
2025-11-22  4:36 ` [PATCH V3 10/14] LoongArch: Adjust user accessors " Huacai Chen
2025-11-22  4:36 ` [PATCH V3 11/14] LoongArch: Adjust misc routines " Huacai Chen
2025-11-22  4:36 ` [PATCH V3 12/14] LoongArch: Adjust VDSO/VSYSCALL " Huacai Chen
2025-11-22  4:36 ` [PATCH V3 13/14] LoongArch: Adjust default config files " Huacai Chen
2025-11-22  9:45   ` Thomas Weißschuh
2025-11-22 11:56     ` Arnd Bergmann
2025-11-22 14:13       ` Huacai Chen
2025-11-25 17:54         ` Arnd Bergmann
2025-11-26  8:02           ` Huacai Chen
2025-11-22 11:58     ` Huacai Chen
2025-11-22 12:24       ` Thomas Weißschuh [this message]
2025-11-22  4:36 ` [PATCH V3 14/14] LoongArch: Adjust build infrastructure " Huacai Chen

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=2f9f3c8f-d444-42b9-9c2f-66c8676e9565@t-8ch.de \
    --to=thomas@t-8ch.de \
    --cc=arnd@arndb.de \
    --cc=chenhuacai@kernel.org \
    --cc=chenhuacai@loongson.cn \
    --cc=guoren@kernel.org \
    --cc=jiaxun.yang@flygoat.com \
    --cc=kernel@xen0n.name \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lixuefeng@loongson.cn \
    --cc=loongarch@lists.linux.dev \
    /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

all inboxes | Powered by JetHome®