[U-Boot] [PATCH 0/2] Allow empty board dir and fix build error of arcangel4 boards
Masahiro Yamada
yamada.m at jp.panasonic.com
Mon Mar 3 11:03:16 CET 2014
Currently arcangel4 and arcangel4-be boards are broken.
$ make CROSS_COMPILE=arc-buildroot-linux-uclibc- arcangel4_config all
Configuring for arcangel4 board...
GEN include/autoconf.mk.dep
GEN include/autoconf.mk
CHK include/config/uboot.release
[snip]
LDS u-boot.lds
LD u-boot
arc-buildroot-linux-uclibc-ld.bfd: cannot find board/synopsys/arcangel4/built-in.o: No such file or directory
make[1]: *** [u-boot] Error 1
make: *** [build-one-by-one] Error 2
The cause of the build error is that neither "obj-y" nor "obj-"
is defined in board/synopsys/arcangel4/Makefile.
In kbuild, empty makefiles are not allowed.
The same sort of build errors have happened before this.
Commit 2aa43f70 resolved the build error by adding
"obj- := __dummy__.o",
but it was not the best solution.
If there are no source files to compile under the board directory,
it is better to not descend into that directory.
Masahiro Yamada (2):
kbuild: allow empty board directories
arc: arcangel4: set board entry <none> to fix a build error
Makefile | 2 +-
board/synopsys/arcangel4/Makefile | 11 -----------
boards.cfg | 4 ++--
config.mk | 2 ++
mkconfig | 6 ++++--
5 files changed, 9 insertions(+), 16 deletions(-)
delete mode 100644 board/synopsys/arcangel4/Makefile
--
1.8.3.2
More information about the U-Boot
mailing list