U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] Allow empty board dir and fix build error of arcangel4 boards
@ 2014-03-03 10:03 Masahiro Yamada
  2014-03-03 10:03 ` [U-Boot] [PATCH 1/2] kbuild: allow empty board directories Masahiro Yamada
  2014-03-03 10:03 ` [U-Boot] [PATCH 2/2] arc: arcangel4: set board entry <none> to fix a build error Masahiro Yamada
  0 siblings, 2 replies; 5+ messages in thread
From: Masahiro Yamada @ 2014-03-03 10:03 UTC (permalink / raw)
  To: u-boot


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-04 19:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 10:03 [U-Boot] [PATCH 0/2] Allow empty board dir and fix build error of arcangel4 boards Masahiro Yamada
2014-03-03 10:03 ` [U-Boot] [PATCH 1/2] kbuild: allow empty board directories Masahiro Yamada
2014-03-04 19:19   ` [U-Boot] [U-Boot,1/2] " Tom Rini
2014-03-03 10:03 ` [U-Boot] [PATCH 2/2] arc: arcangel4: set board entry <none> to fix a build error Masahiro Yamada
2014-03-04 19:19   ` [U-Boot] [U-Boot, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox