From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masahiro Yamada Date: Mon, 3 Mar 2014 19:03:16 +0900 Subject: [U-Boot] [PATCH 0/2] Allow empty board dir and fix build error of arcangel4 boards Message-ID: <1393840998-27018-1-git-send-email-yamada.m@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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