[PATCH v2 03/12] ARM: hisi: add ARCH_HISI
Haojian Zhuang
haojian.zhuang at linaro.org
Mon Apr 14 00:57:08 PDT 2014
On 8 April 2014 19:13, Arnd Bergmann <arnd at arndb.de> wrote:
> On Tuesday 08 April 2014 16:00:43 Haojian Zhuang wrote:
>> diff --git a/arch/arm/mach-hisi/Kconfig b/arch/arm/mach-hisi/Kconfig
>> index feee4db..da16efd 100644
>> --- a/arch/arm/mach-hisi/Kconfig
>> +++ b/arch/arm/mach-hisi/Kconfig
>> @@ -1,8 +1,16 @@
>> -config ARCH_HI3xxx
>> - bool "Hisilicon Hi36xx/Hi37xx family" if ARCH_MULTI_V7
>> +config ARCH_HISI
>> + bool "Hisilicon SoC Support"
>> + depends on ARCH_MULTIPLATFORM
>> select ARM_AMBA
>> select ARM_GIC
>> select ARM_TIMER_SP804
>> +
>> +if ARCH_HISI
>> +
>> +menu "Hisilicon platform type"
>> +
>> +config ARCH_HI3xxx
>> + bool "Hisilicon Hi36xx/Hi37xx family" if ARCH_MULTI_V7
>> select CACHE_L2X0
>> select HAVE_ARM_SCU if SMP
>> select HAVE_ARM_TWD if SMP
>> @@ -10,3 +18,7 @@ config ARCH_HI3xxx
>> select PINCTRL_SINGLE
>> help
>> Support for Hisilicon Hi36xx/Hi37xx processor family
>> +
>> +endmenu
>
> On second thought: You don't actually have any sub-options under
> the main SoC specific option, so using 'menuconfig' as I suggested
> first makes no sense.
>
> Just leave ARCH_HI3xxx and ARCH_HIP04 as top-level options and
> drop this patch. There is no real need for a new menu here.
> That also means you can drop patch 9.
>
> Arnd
Since they're two archs. In arch/arm/Kconfig, I have to write as below.
machine-$(CONFIG_ARCH_HI3xxx) += mach-hisi
machine-$(CONFIG_ARCH_HIP04) += mach-hisi
Then mach-hisi is duplicated in Kconfig. I'll get build error in below.
Makefile:877: target `arch/arm/mach-hisi' given more than once in the same rule.
Regards
Haojian
More information about the linux-arm-kernel
mailing list