Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 3dcfb72

Browse files
committed
parisc: Make CONFIG_64BIT available for ARCH=parisc64 only
With this patch the ARCH= parameter decides if the CONFIG_64BIT option will be set or not. This means, the ARCH= parameter will give: ARCH=parisc -> 32-bit kernel ARCH=parisc64 -> 64-bit kernel This simplifies the usage of the other config options like randconfig, allmodconfig and allyesconfig a lot and produces the output which is expected for parisc64 (64-bit) vs. parisc (32-bit). Suggested-by: Masahiro Yamada <[email protected]> Signed-off-by: Helge Deller <[email protected]> Tested-by: Randy Dunlap <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Cc: <[email protected]> # 5.15+
1 parent 7ae1f55 commit 3dcfb72

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

arch/parisc/Kconfig

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ menu "Processor type and features"
146146

147147
choice
148148
prompt "Processor type"
149-
default PA7000
149+
default PA7000 if "$(ARCH)" = "parisc"
150150

151151
config PA7000
152-
bool "PA7000/PA7100"
152+
bool "PA7000/PA7100" if "$(ARCH)" = "parisc"
153153
help
154154
This is the processor type of your CPU. This information is
155155
used for optimizing purposes. In order to compile a kernel
@@ -160,21 +160,21 @@ config PA7000
160160
which is required on some machines.
161161

162162
config PA7100LC
163-
bool "PA7100LC"
163+
bool "PA7100LC" if "$(ARCH)" = "parisc"
164164
help
165165
Select this option for the PCX-L processor, as used in the
166166
712, 715/64, 715/80, 715/100, 715/100XC, 725/100, 743, 748,
167167
D200, D210, D300, D310 and E-class
168168

169169
config PA7200
170-
bool "PA7200"
170+
bool "PA7200" if "$(ARCH)" = "parisc"
171171
help
172172
Select this option for the PCX-T' processor, as used in the
173173
C100, C110, J100, J110, J210XC, D250, D260, D350, D360,
174174
K100, K200, K210, K220, K400, K410 and K420
175175

176176
config PA7300LC
177-
bool "PA7300LC"
177+
bool "PA7300LC" if "$(ARCH)" = "parisc"
178178
help
179179
Select this option for the PCX-L2 processor, as used in the
180180
744, A180, B132L, B160L, B180L, C132L, C160L, C180L,
@@ -224,17 +224,8 @@ config MLONGCALLS
224224
Enabling this option will probably slow down your kernel.
225225

226226
config 64BIT
227-
bool "64-bit kernel"
227+
def_bool "$(ARCH)" = "parisc64"
228228
depends on PA8X00
229-
help
230-
Enable this if you want to support 64bit kernel on PA-RISC platform.
231-
232-
At the moment, only people willing to use more than 2GB of RAM,
233-
or having a 64bit-only capable PA-RISC machine should say Y here.
234-
235-
Since there is no 64bit userland on PA-RISC, there is no point to
236-
enable this option otherwise. The 64bit kernel is significantly bigger
237-
and slower than the 32bit one.
238229

239230
choice
240231
prompt "Kernel page size"

0 commit comments

Comments
 (0)