From: Randy Dunlap <rdunlap@infradead.org>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: linux-kernel@vger.kernel.org, Sam Ravnborg <sam@ravnborg.org>,
"David S. Miller" <davem@davemloft.net>,
sparclinux@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH v2] sparc: allow sparc32 alias for archhelp
Date: Mon, 10 Apr 2023 17:13:41 -0700 [thread overview]
Message-ID: <bc86a2c3-7562-9d98-5ab0-f875ca9dbfff@infradead.org> (raw)
In-Reply-To: <CAK7LNAQGqF-9Tw1ZQQUTcn23P8AKy8YQwVy1BJtc5eX-WEZkUw@mail.gmail.com>
On 4/10/23 16:45, Masahiro Yamada wrote:
> On Mon, Apr 10, 2023 at 10:13 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>>
>> Currently, entering
>> $ make ARCH=sparc32 help
>> prints the archhelp text for sparc64.
>>
>> Since "sparc32" is documented (Documentation/kbuild/kbuild.rst)
>> to be a recognized alias for 32-bit sparc, also support that
>> string in sparc's archhelp by allowing either ARCH=sparc or
>> ARCH=sparc32 for sparc32 archhelp.
>>
>> Fixes: 5e53879008b9 ("sparc,sparc64: unify Makefile")
>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
>> Cc: Sam Ravnborg <sam@ravnborg.org>
>> Cc: "David S. Miller" <davem@davemloft.net>
>> Cc: sparclinux@vger.kernel.org
>> Cc: Andrew Morton <akpm@linux-foundation.org>
>> Acked-by: Sam Ravnborg <sam@ravnborg.org>
>> Cc: Masahiro Yamada <masahiroy@kernel.org>
>> ---
>> v2: rebase/resend; add Masahiro to Cc: list
>>
>> arch/sparc/Makefile | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff -- a/arch/sparc/Makefile b/arch/sparc/Makefile
>> --- a/arch/sparc/Makefile
>> +++ b/arch/sparc/Makefile
>> @@ -83,7 +83,7 @@ vdso_install:
>> KBUILD_IMAGE := $(boot)/zImage
>>
>> # Don't use tabs in echo arguments.
>> -ifeq ($(ARCH),sparc)
>> +ifeq ($(ARCH),$(filter $(ARCH),sparc sparc32))
>> define archhelp
>> echo '* image - kernel image ($(boot)/image)'
>
>
> BTW, this is strange.
>
>
> The asterisk means it is built by 'all'.
>
>
> But, I only see the following in this Makefile.
>
>
> # Default target
> all: zImage
>
>
>
>
>
> Seeing arch/sparc/boot/Makefile,
> it is true $(boot)/image is generated
> as a side-effect of zImage, but it it true for
> both 32-bit and 64-bit.
>
> I think it is even better to rewrite archhelp
> to unify the 32/64 bits.
>
Yeah, I had thought of that also. I'll do that and resend it.
Thanks.
>
>
>
>
>> echo '* zImage - stripped kernel image ($(boot)/zImage)'
>
>
>
--
~Randy
prev parent reply other threads:[~2023-04-11 0:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-10 1:13 Randy Dunlap
2023-04-10 23:33 ` Masahiro Yamada
2023-04-10 23:45 ` Masahiro Yamada
2023-04-11 0:13 ` Randy Dunlap [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=bc86a2c3-7562-9d98-5ab0-f875ca9dbfff@infradead.org \
--to=rdunlap@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=sam@ravnborg.org \
--cc=sparclinux@vger.kernel.org \
/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®