]> git.baikalelectronics.ru Git - arm-tf.git/commit
Build: Fix parallel building
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 12 Jan 2017 01:48:22 +0000 (10:48 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 19 Jan 2017 10:36:29 +0000 (19:36 +0900)
commita6ca78881f36e4c4443444778f02e2e73346f90f
tree5652ddd89166bff2755390dcf33102f57eb3ff89
parent9eb4d4dd938a1ad86a5a0311e00beb3b5c1d5840
Build: Fix parallel building

Soren reports build fails if -j option is given:

  $ make -j16 CROSS_COMPILE=aarch64-linux-gnu-
  Building fvp
  make: *** No rule to make target 'build/fvp/release/bl1/',
                    needed by 'build/fvp/release/bl1/bl1.ld'.  Stop.
  make: *** Waiting for unfinished jobs....

The cause of the failure is that $(dir ) leaves a trailing / on the
directory names.   It must be ripped off to let Make create the
directory.

There are some ways to fix the issue.  Here, I chose to make MAKE_LD
look like MAKE_C and MAKE_S because bl*_dirs seems the central place
of making directories.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reported-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Tested-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
make_helpers/build_macros.mk