Skip to content

Commit 3e78e4e

Browse files
petalogixmichalsimek
authored andcommitted
microblaze: Remove the buggy ALLOW_EDIT_AUTO config option
This was intended to allow manual override of CPU settings copied automatically to Kconfig.auto, however it's problematic for several reasons, but mostly: * If the defconfig doesn't have ALLOW_EDIT_AUTO=y, then it's impossible for that defconfig to iverride the values in the kernel source tree. This leads to very strange errors where the kernel is compiled with the wrong CPUFLAGS. Next patch in the series will back out the default in Kconfig.auto to baseline settings, so a kernel built with no default values will at least boot on any hardware, just not make use of additional CPU features. Signed-off-by: John Williams <john.williams@petalogix.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
1 parent a1f5511 commit 3e78e4e

2 files changed

Lines changed: 8 additions & 28 deletions

File tree

‎arch/microblaze/platform/Kconfig.platform‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,6 @@ config OPT_LIB_ASM
5959
Allows turn on optimalized library function (memcpy and memmove).
6060
Function are written in asm code.
6161

62-
# This is still a bit broken - disabling for now JW 20070504
63-
config ALLOW_EDIT_AUTO
64-
bool "Permit Display/edit of Kconfig.auto platform settings"
65-
default n
66-
help
67-
Allows the editing of auto-generated platform settings from
68-
the Kconfig.auto file. Obviously this does not change the
69-
underlying hardware, so be very careful if you go editing
70-
these settings.
71-
72-
Also, if you enable this, and edit various Kconfig.auto
73-
settings, YOUR CHANGES WILL BE LOST if you then disable it
74-
again. You have been warned!
75-
76-
If unsure, say no.
77-
78-
comment "Automatic platform settings from Kconfig.auto"
79-
depends on ALLOW_EDIT_AUTO
80-
8162
if PLATFORM_GENERIC=y
8263
source "arch/microblaze/platform/generic/Kconfig.auto"
8364
endif

‎arch/microblaze/platform/generic/Kconfig.auto‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
# Definitions for MICROBLAZE0
2323
comment "Definitions for MICROBLAZE0"
24-
depends on ALLOW_EDIT_AUTO
2524

2625
config KERNEL_BASE_ADDR
2726
hex "Physical address where Linux Kernel is"
@@ -30,33 +29,33 @@ config KERNEL_BASE_ADDR
3029
BASE Address for kernel
3130

3231
config XILINX_MICROBLAZE0_FAMILY
33-
string "Targetted FPGA family" if ALLOW_EDIT_AUTO
32+
string "Targetted FPGA family"
3433
default "virtex5"
3534

3635
config XILINX_MICROBLAZE0_USE_MSR_INSTR
37-
int "USE_MSR_INSTR range (0:1)" if ALLOW_EDIT_AUTO
36+
int "USE_MSR_INSTR range (0:1)"
3837
default 1
3938

4039
config XILINX_MICROBLAZE0_USE_PCMP_INSTR
41-
int "USE_PCMP_INSTR range (0:1)" if ALLOW_EDIT_AUTO
40+
int "USE_PCMP_INSTR range (0:1)"
4241
default 1
4342

4443
config XILINX_MICROBLAZE0_USE_BARREL
45-
int "USE_BARREL range (0:1)" if ALLOW_EDIT_AUTO
44+
int "USE_BARREL range (0:1)"
4645
default 1
4746

4847
config XILINX_MICROBLAZE0_USE_DIV
49-
int "USE_DIV range (0:1)" if ALLOW_EDIT_AUTO
48+
int "USE_DIV range (0:1)"
5049
default 1
5150

5251
config XILINX_MICROBLAZE0_USE_HW_MUL
53-
int "USE_HW_MUL values (0=NONE, 1=MUL32, 2=MUL64)" if ALLOW_EDIT_AUTO
52+
int "USE_HW_MUL values (0=NONE, 1=MUL32, 2=MUL64)"
5453
default 2
5554

5655
config XILINX_MICROBLAZE0_USE_FPU
57-
int "USE_FPU values (0=NONE, 1=BASIC, 2=EXTENDED)" if ALLOW_EDIT_AUTO
56+
int "USE_FPU values (0=NONE, 1=BASIC, 2=EXTENDED)"
5857
default 2
5958

6059
config XILINX_MICROBLAZE0_HW_VER
61-
string "Core version number" if ALLOW_EDIT_AUTO
60+
string "Core version number"
6261
default 7.10.d

0 commit comments

Comments
 (0)