Skip to contentSkip to conversation

sparc: allow sparc32 alias for archhelp

PATCH Superseded Randy Dunlap 2 participants 2 messages Feb 5, 2023 SPARC + UltraSPARC (sparc/sparc64)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc: allow sparc32 alias for archhelp

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")
Cc Sam Ravnborg <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Andrew Morton <[email protected]>
---
 arch/sparc/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/Makefile +1 -1
diff -- 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)'
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Randy Dunlap

Currently, entering

$ make ARCH=sparc32 help
prints the archhelp text for sparc64.
Quoted 8 lines

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")
Cc Sam Ravnborg <[email protected]>
Quoted 3 lines
Cc "David S. Miller" <[email protected]>
Cc Andrew Morton <[email protected]>

I hope Andrew picks this up.

Sam

Quoted 16 lines
---
 arch/sparc/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -- a/arch/sparc/Makefile b/arch/sparc/Makefile

arch/sparc/Makefile +1 -1
@@ -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)'