[U-Boot] [RFC PATCH 04/17] kconfig: add defconfig files for all boards

Stephen Warren
2014-03-19T19:58:48Z

On 03/18/2014 10:50 PM, Masahiro Yamada wrote:
>>>>> diff --git a/configs/beaver_defconfig b/configs/beaver_defconfig
>>>>> new file mode 100644
>>>>> index 0000000..fbf00f3
>>>>> --- /dev/null
>>>>> +++ b/configs/beaver_defconfig
>>>>> @@ -0,0 +1,10 @@
>>>>> +CONFIG_SPL=y
>>>>> +CONFIG_ARM=y
>>>>> +CONFIG_SYS_CPU="armv7"
>>>>> +CONFIG_SOC_DIR=y
>>>>> +CONFIG_SYS_SOC="tegra30"
>>>>> +CONFIG_SYS_BOARD="beaver"
>>>>> +CONFIG_VENDOR_DIR=y
>>>>> +CONFIG_SYS_VENDOR="nvidia"
>>>>> +CONFIG_SYS_CONFIG_NAME="beaver"
>>>>> +CONFIG_BOARD_MAINTAINER="Tom Warren <twarren@nvidia.com>:Stephen Warren <swarren@nvidia.com>"
...
>>>> Other values in this file feel very odd
>>>> too. For example, I would expect selecting SYS_SOC=tegra30 it
>>>> automatically select SYS_VENDOR, SYS_CPU, ARM, SPL, ...
>>>
>>> This is really really Tegra-specific matter.
>>
>> Absolutely not at all.
>>
>> Any board contains a specific SoC. Each specific SoC is a particular CPU
>> architecture and type, etc.
>
> In that case, all boards must have board/*/Kconfig to
> automatically select correct CONFIG_SYS_VENDOR, CONFIG_SYS_SOC, etc.

Yes. I would fully expect that.