kbuild, tools: generate wrapper C sources automatically by Makefile

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.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Masahiro Yamada
2014-06-06 14:04:32 +09:00
committed by Tom Rini
parent 4a36be9bdb
commit ad80c4a322
19 changed files with 26 additions and 30 deletions

3
tools/.gitignore vendored
View File

@@ -21,3 +21,6 @@
/easylogo/easylogo
/gdb/gdbcont
/gdb/gdbsend
/lib/
/common/