[U-Boot] [PATCH] kbuild, tools: generate wrapper C sources automatically by Makefile
Simon Glass
sjg at chromium.org
Thu Jun 5 05:37:41 CEST 2014
Hi Masahiro,
On 4 June 2014 20:11, Masahiro Yamada <yamada.m at jp.panasonic.com> wrote:
> There are many source files shared between U-boot image and tools.
> Instead of adding a lot of dummy wrapper files that just include
> the corresponding file in lib/ or common/ directory,
> Makefile should automatically generate them.
>
> The original inspiration for this came from
> scripts/Makefile.asm-generic of Linux Kernel.
This is a really nice solution.
>
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
Acked-by: Simon Glass <sjg at chromium.org>
Tested-by: Simon Glass <sjg at chromium.org>
I wonder if we might in the future consider a way to put the list of
host objects for each directory in the directory itself (e.g.
lib/libfdt/Makefile might have hostobj-y += COBJS-libfdt). I'm not
sure if that would work with all tools requiring different libraries
though/
Regards,
Simon
More information about the U-Boot
mailing list