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

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Sat Mar 22 18:14:23 CET 2014


2014-03-21 19:05 GMT+01:00 Tom Rini <trini at ti.com>:
> On Thu, Mar 20, 2014 at 02:17:07PM +0100, Daniel Schwierzeck wrote:
>> 2014-03-20 1:11 GMT+01:00 Masahiro Yamada <yamada.m at jp.panasonic.com>:
>> >
>> > [3]
>> > How to select board directoy by using boolean macros.
>> >
>> > If we try to emulate arch/arm/Makefile of Linux,
>> >
>> > board-$(CONFIG_BOARD_VEXPRESS_AEMV8A)   := vexpress_aemv8a
>> > board-$(CONFIG_BOARD_AXS101)                     := axs101
>> > board-$(CONFIG_BOARD_ARCANGEL4)               := arcangel4
>> >
>> > Like this?
>> >
>>
>> how about this:
>>
>> Makefile:
>> ...
>> lib-y += boards/
>> ...
>>
>> board/Makefile:
>> obj-$(CONFIG_BOARD_A3000) += a3000/
>> ...
>> obj-$(CONFIG_VENDOR_NVIDIA) += nvidia/
>> ...
>>
>> board/nvidia/Makefile:
>> obj-y += common/
>> obj-$(CONFIG_BOARD_BEAVER) += beaver/
>> obj-$(CONFIG_BOARD_CARDHU) += cardhu/
>> ...
>
> Yes, would something like this be doable?  Thanks!
>

yes, I played with it and created a script to generate all necessary
board and vendor Makefiles from boards.cfg. If we tweak mkconfig, It
already works with the current mainline.

The patches are pushed to: git://git.denx.de/u-boot-mips.git kconfig-support

If you want I can post a patch series and also create patches for CPU
and SOC directories.

-- 
- Daniel


More information about the U-Boot mailing list