Hi Daniel,
On Sat, 22 Mar 2014 18:14:23 +0100 Daniel Schwierzeck <daniel.schwierz...@gmail.com> wrote: > 2014-03-21 19:05 GMT+01:00 Tom Rini <tr...@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 <yamad...@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. Thanks for your effort. I think basicly we're going to the right direction. But I am afraind more careful check is necessary before posting the series. I did build test on your patches on kconfig-support branch. I noticed many boards would be broken: - ARM cm_t335 am335x_boneblack am335x_evm am335x_evm_nor am335x_evm_norboot am335x_evm_spiboot am335x_evm_uart1 am335x_evm_uart2 am335x_evm_uart3 am335x_evm_uart4 am335x_evm_uart5 am335x_evm_usbspl h2200 palmld palmtc palmtreo680 zipitz2 vpac270_ond_256 mx31ads lubbock - AVR32 favr-32-ezkit - Blackfin bf527-ad7160-eval - PowerPC MVBLUE hermes svm_sc8xx ESTEEM192E ELPT860 FPS850L FPS860L NSCU SM850 TK885D TQM823L TQM823L_LCD TQM823M TQM850L TQM850M TQM855L TQM855M TQM860L TQM860M TQM862L TQM862M TQM866M TQM885D TTTech virtlab2 wtk MVSMR GENIETV ) Could you run MAKEALL or buildman over all target boards and fix all errors? And I want you to also fix a strange Makefile, board/synopsys/Makefile obj-$(CONFIG_BOARD_AXS101) += axs101/ obj-$(CONFIG_BOARD_<NONE>) += <none>/ Best Regards Masahiro Yamada _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot