Commit eac00de1 authored by Russell King's avatar Russell King

[ARM] Ensure deselected config variables are defined to 'n'

To keep the Config.in files relatively clean, we use the
following construct:

 if [ "$CONFIG_ARM" = "y" ]; then
    dep_tristate 'Foo' CONFIG_FOO $CONFIG_BAR
 fi

where CONFIG_BAR is some machine implementation or high-level
chip support configuration option.  If CONFIG_BAR is left
empty, then the tristate is offered to the user, which isn't
what we want.  Defining CONFIG_BAR to 'n' prevents the option
being offered.

This is a rule I generally try to implement within
arch/arm/config.in.

This cset makes CONFIG_SA1111 and CONFIG_ARM_THUMB behave that
way.
parent e34b499b
...@@ -94,6 +94,8 @@ if [ "$CONFIG_ASSABET_NEPONSET" = "y" -o \ ...@@ -94,6 +94,8 @@ if [ "$CONFIG_ASSABET_NEPONSET" = "y" -o \
"$CONFIG_SA1100_XP860" = "y" ]; then "$CONFIG_SA1100_XP860" = "y" ]; then
define_bool CONFIG_SA1111 y define_bool CONFIG_SA1111 y
define_int CONFIG_FORCE_MAX_ZONEORDER 9 define_int CONFIG_FORCE_MAX_ZONEORDER 9
else
define_bool CONFIG_SA1111 n
fi fi
comment 'Processor Type' comment 'Processor Type'
...@@ -231,6 +233,8 @@ if [ "$CONFIG_CPU_ARM720T" = "y" -o "$CONFIG_CPU_ARM920T" = "y" -o \ ...@@ -231,6 +233,8 @@ if [ "$CONFIG_CPU_ARM720T" = "y" -o "$CONFIG_CPU_ARM920T" = "y" -o \
"$CONFIG_CPU_ARM922T" = "y" -o "$CONFIG_CPU_ARM926T" = "y" -o \ "$CONFIG_CPU_ARM922T" = "y" -o "$CONFIG_CPU_ARM926T" = "y" -o \
"$CONFIG_CPU_ARM1020" = "y" -o "$CONFIG_CPU_XSCALE" = "y" ]; then "$CONFIG_CPU_ARM1020" = "y" -o "$CONFIG_CPU_XSCALE" = "y" ]; then
dep_bool 'Support Thumb instructions (EXPERIMENTAL)' CONFIG_ARM_THUMB $CONFIG_EXPERIMENTAL dep_bool 'Support Thumb instructions (EXPERIMENTAL)' CONFIG_ARM_THUMB $CONFIG_EXPERIMENTAL
else
define_bool CONFIG_ARM_THUMB n
fi fi
if [ "$CONFIG_CPU_ARM920T" = "y" -o "$CONFIG_CPU_ARM922T" = "y" -o \ if [ "$CONFIG_CPU_ARM920T" = "y" -o "$CONFIG_CPU_ARM922T" = "y" -o \
"$CONFIG_CPU_ARM926T" = "y" -o "$CONFIG_CPU_ARM1020" = "y" ]; then "$CONFIG_CPU_ARM926T" = "y" -o "$CONFIG_CPU_ARM1020" = "y" ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment