* [PATCH] ARM: imx: allow support to be disabled
@ 2012-10-22 21:00 Stephen Warren
2012-10-22 23:02 ` Shawn Guo
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Warren @ 2012-10-22 21:00 UTC (permalink / raw)
To: linux-arm-kernel
From: Stephen Warren <swarren@nvidia.com>
Since ARCH_MXC's Kconfig option has no string name, the user is never
presented with an option to enable/disable this setting. Rather, it is
automatically enabled based on the conditions in the def_bool entry.
Add a string, so that the user gets to choose whether to enable ARCH_MXC,
and rename the i.MX options menu so that it doesn't clash. Also, change
from "def_bool y" to "bool" to be more consistent with other machines.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
Note that if Tegra and i.MX support are enabled at the same time, then
the build will fail since both Tegra's and i.MX's head.S define symbol
v7_invalidate_l1. shmobile appears to have the same conflict. Note that
patches to port Tegra to ARCH_MULTI aren't yet in linux-next, but I can
point anyone who's interested at my github tree.
---
arch/arm/mach-imx/Kconfig | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index 892631f..5cc2417 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -1,5 +1,5 @@
config ARCH_MXC
- def_bool y if ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7
+ bool "Freescale i.MX support" if ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7
select ARCH_REQUIRE_GPIOLIB
select ARM_PATCH_PHYS_VIRT
select AUTO_ZRELADDR if !ZBOOT_ROM
@@ -13,7 +13,7 @@ config ARCH_MXC
help
Support for Freescale MXC/iMX-based family of processors
-menu "Freescale i.MX support"
+menu "Freescale i.MX options"
depends on ARCH_MXC
config MXC_IRQ_PRIOR
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: imx: allow support to be disabled
2012-10-22 21:00 [PATCH] ARM: imx: allow support to be disabled Stephen Warren
@ 2012-10-22 23:02 ` Shawn Guo
0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2012-10-22 23:02 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Oct 22, 2012 at 03:00:21PM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> Since ARCH_MXC's Kconfig option has no string name, the user is never
> presented with an option to enable/disable this setting. Rather, it is
> automatically enabled based on the conditions in the def_bool entry.
>
> Add a string, so that the user gets to choose whether to enable ARCH_MXC,
> and rename the i.MX options menu so that it doesn't clash. Also, change
> from "def_bool y" to "bool" to be more consistent with other machines.
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
Thanks for the patch, Stephen. I have queued a similar fix [1] from
Fabio. Hopefully, arm-soc folks will apply it soon.
Shawn
[1] http://thread.gmane.org/gmane.linux.ports.arm.kernel/194310
> ---
> Note that if Tegra and i.MX support are enabled at the same time, then
> the build will fail since both Tegra's and i.MX's head.S define symbol
> v7_invalidate_l1. shmobile appears to have the same conflict. Note that
> patches to port Tegra to ARCH_MULTI aren't yet in linux-next, but I can
> point anyone who's interested at my github tree.
> ---
> arch/arm/mach-imx/Kconfig | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index 892631f..5cc2417 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -1,5 +1,5 @@
> config ARCH_MXC
> - def_bool y if ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7
> + bool "Freescale i.MX support" if ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7
> select ARCH_REQUIRE_GPIOLIB
> select ARM_PATCH_PHYS_VIRT
> select AUTO_ZRELADDR if !ZBOOT_ROM
> @@ -13,7 +13,7 @@ config ARCH_MXC
> help
> Support for Freescale MXC/iMX-based family of processors
>
> -menu "Freescale i.MX support"
> +menu "Freescale i.MX options"
> depends on ARCH_MXC
>
> config MXC_IRQ_PRIOR
> --
> 1.7.0.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-22 23:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-22 21:00 [PATCH] ARM: imx: allow support to be disabled Stephen Warren
2012-10-22 23:02 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox