Consistently use
config FOO
bool/int/hex/string "Prompt text"
instead of
config FOO
bool/int/hex/string
prompt "Prompt text"
(...and a bunch of other variations that e.g. swapped the order of the
type and the 'prompt', or put other properties between them).
The shorthand is fully equivalent to using 'prompt'. It saves lines and
avoids tricking people into thinking there is some semantic difference.
Most of the grunt work was done by a modified version of
https://unix.stackexchange.com/questions/26284/
how-can-i-use-sed-to-replace-a-multi-line-string/26290#26290, but some
of the rarer variations had to be converted manually.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
37 lines
956 B
Plaintext
37 lines
956 B
Plaintext
# Kconfig - Memory Protection Unit (MPU) configuration options
|
|
|
|
#
|
|
# Copyright (c) 2017 Synopsys
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
config ARC_MPU_VER
|
|
int "ARC MPU version"
|
|
range 2 4
|
|
default 2
|
|
help
|
|
ARC MPU has several versions. For MPU v2, the minimum region is 2048 bytes;
|
|
For MPU v3, the minimum region is 32 bytes
|
|
|
|
config ARC_CORE_MPU
|
|
bool "ARC Core MPU functionalities"
|
|
depends on CPU_HAS_MPU
|
|
help
|
|
ARC core MPU functionalities
|
|
|
|
config MPU_STACK_GUARD
|
|
bool "Thread Stack Guards"
|
|
depends on ARC_CORE_MPU && !ARC_STACK_CHECKING
|
|
help
|
|
Enable thread stack guards via MPU. ARC supports built-in stack protection.
|
|
If your core supports that, it is preferred over MPU stack guard
|
|
|
|
config ARC_MPU
|
|
bool "ARC MPU Support"
|
|
depends on CPU_HAS_MPU
|
|
select ARC_CORE_MPU
|
|
select THREAD_STACK_INFO
|
|
select MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT if ARC_MPU_VER = 2
|
|
help
|
|
Target has ARC MPU (currently only works for EMSK 2.2/2.3 ARCEM7D)
|