From: "Arnd Bergmann" <arnd@arndb.de>
To: "Thomas Weißschuh" <thomas@t-8ch.de>,
"Huacai Chen" <chenhuacai@loongson.cn>
Cc: "Huacai Chen" <chenhuacai@kernel.org>,
loongarch@lists.linux.dev,
Linux-Arch <linux-arch@vger.kernel.org>,
"Xuefeng Li" <lixuefeng@loongson.cn>, guoren <guoren@kernel.org>,
"WANG Xuerui" <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 12:56:53 +0100 [thread overview]
Message-ID: <3407d536-a9b5-48e8-a9cf-4bb590941d0a@app.fastmail.com> (raw)
In-Reply-To: <0b2bf90e-f148-46ad-92e4-b177d412fd11@t-8ch.de>
On Sat, Nov 22, 2025, at 10:45, Thomas Weißschuh 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.
Right
> Either test for $(ARCH) or uname or just use one unconditionally.
I don't really like the $(ARCH) hacks, nobody is going to build kernels
natively on loongarch32, and for the rest it's fine to set the option.
> Also as mentioned before, snippets can reduce the duplication.
>
>> +KBUILD_DEFCONFIG := loongson32_defconfig
>> +else
>> +KBUILD_DEFCONFIG := loongson64_defconfig
>> +endif
>> +
This is also not the change I had suggested in my review. I think this
should be a fragment along the lines of arch/mips/configs/generic/32r2.config
and arch/powerpc/configs/book3s_32.config.
See arch/powerpc/Makefile for the integration into the build system.
Arnd
next prev parent reply other threads:[~2025-11-22 11:57 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 [this message]
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
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=3407d536-a9b5-48e8-a9cf-4bb590941d0a@app.fastmail.com \
--to=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 \
--cc=thomas@t-8ch.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
all inboxes | Powered by JetHome®