Message ID | 20230410011316.26564-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1619026vqo; Sun, 9 Apr 2023 18:27:28 -0700 (PDT) X-Google-Smtp-Source: AKy350b3H/hIlFOVCkOF/hjJ603d06OTSxVdxTSXasMXNdUgUJawfA/riyuVIQ2uf/DdD8fhIYoE X-Received: by 2002:a17:90b:4c11:b0:246:b2de:f13f with SMTP id na17-20020a17090b4c1100b00246b2def13fmr1154083pjb.24.1681090048072; Sun, 09 Apr 2023 18:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681090048; cv=none; d=google.com; s=arc-20160816; b=s1cP1NULJeZH/+fmHi0Rc08QvwV7Zij1+onB1TIruuruY++kcQZcQSi4mMig+Gw2cX rW8hH5DKClA4j53mEUYc75ai9jcsTNUW6Df/1ztJPHR4apAKisUYKgtO/KpzcuBBqlRK ZbZ8n0G1xknSo72YLMxVcAQYKuD3Hjv3MMbG7Fth5Qfbzd5mrFSAtrr/xNDtbbeXJ4hr QAGjVTkdaT0Lp6cQmw5pOwn5bqFtSE7PAdRYgSeXFhFGYLBCJ/CvvyvCKE+T+mrNJlHo Isii0fTnXMk0eqP2+secbAkZxUSmK3pvm7TrOZzIDHHF7x5DaOsvP66+TYUCjRtFP0kt pTLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=cg1S3XoU3SPVIhEQjqsExfl3vAbSc03YUdI51frBIwo=; b=q6fZxK2qp/3I9F5Rj/jRSV/dvCCzFYpC5TwQvoYAfHjk6nbfF4ZV3IVU6ks+GSskjk gLHy7Jp+sGqoJTodZuvd684hgHics3PpuDVgDe5VmV/ycXBVPUPc+E7cPBG1YokLgbvN AGC6/h1QHha8D2kd/YaYobHrPUjei2iaJ/ytbO6kqaXqMY5j3Xiac3sHvaEkN/prD81H Hhv9+hafDtY8aOXPhjyhmD/pNfrcAVzIOXDmi3kSb2qruyvKVJ+QkZhc+Xll7Y9hpcxB hVQ48YX62gXkuFQ4PBZU+7XxyYKun/2dhYnvVTRFfddhO6srQSAmTgz42IsHD1e/eoZQ RSyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ihxSGen1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a170903234800b001a644fba6d8si576838plh.86.2023.04.09.18.27.16; Sun, 09 Apr 2023 18:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ihxSGen1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229666AbjDJBN2 (ORCPT <rfc822;yuanzuo1009@gmail.com> + 99 others); Sun, 9 Apr 2023 21:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjDJBN1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Apr 2023 21:13:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24A1335A7; Sun, 9 Apr 2023 18:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=cg1S3XoU3SPVIhEQjqsExfl3vAbSc03YUdI51frBIwo=; b=ihxSGen1Mdtj9zPUVP70jaRoFS jMkwJJ0+UbW1zpkqIlDrT69e58N0usHXr1ZvlWsqdl6eWt1EMfTYMQoi4Lzg+ki0TwsQhuafFw5rV E6LPC8k8x4r8p/UhokWeUrWFZ8mKnkg7kyH+pRsakwcyYw84cpecFtcrYeGoon/neG0UppLClZiat 9TgmC11sJRG0itlxR27r2vwQPrEGmrxUY0s44flobNfleMtRncFY1OlWacepG1SYX4ao9xst9+xot 2OprWMTPDaqaunoJcEV9Xkon1Pp0YIYzx8hZcIx+HqaO8HaaJ1Y0JInURGhNrIAEZ8AIHa4Os0W3f 5moEquOw==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1plg5t-00EPci-1A; Mon, 10 Apr 2023 01:13:17 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Sam Ravnborg <sam@ravnborg.org>, "David S. Miller" <davem@davemloft.net>, sparclinux@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org>, Masahiro Yamada <masahiroy@kernel.org> Subject: [PATCH v2] sparc: allow sparc32 alias for archhelp Date: Sun, 9 Apr 2023 18:13:16 -0700 Message-Id: <20230410011316.26564-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762750678379173981?= X-GMAIL-MSGID: =?utf-8?q?1762750678379173981?= |
Series |
[v2] sparc: allow sparc32 alias for archhelp
|
|
Commit Message
Randy Dunlap
April 10, 2023, 1:13 a.m. UTC
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(-)
Comments
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)) ifneq ($(ARCH),sparc64) is simpler. > define archhelp > echo '* image - kernel image ($(boot)/image)' > echo '* zImage - stripped kernel image ($(boot)/zImage)'
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. > echo '* zImage - stripped kernel image ($(boot)/zImage)'
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)' > > >
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)' echo '* zImage - stripped kernel image ($(boot)/zImage)'