u-boot-brain/arch/blackfin/cpu
Masahiro Yamada 9e4140329e kbuild: change out-of-tree build
This commit changes the working directory
where the build process occurs.

Before this commit, build process occurred under the source
tree for both in-tree and out-of-tree build.

That's why we needed to add $(obj) prefix to all generated
files in makefiles like follows:
  $(obj)u-boot.bin:  $(obj)u-boot

Here, $(obj) is empty for in-tree build, whereas it points
to the output directory for out-of-tree build.

And our old build system changes the current working directory
with "make -C <sub-dir>" syntax when descending into the
sub-directories.

On the other hand, Kbuild uses a different idea
to handle out-of-tree build and directory descending.

The build process of Kbuild always occurs under the output tree.
When "O=dir/to/store/output/files" is given, the build system
changes the current working directory to that directory and
restarts the make.

Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj=<sub-dir>"
syntax for descending into sub-directories.
(We can write it like "make $(obj)=<sub-dir>" with a shorthand.)
This means the current working directory is always the top
of the output directory.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Tested-by: Gerhard Sittig <gsi@denx.de>
2014-02-19 11:07:50 -05:00
..
.gitignore blackfin: Do not generate unused header bootrom-asm-offsets.h 2013-12-06 16:06:51 +08:00
cache.S linkage.h: move from blackfin to common includes 2012-02-12 15:03:26 -05:00
cpu.c blackfin: fix a warning in arch/blackfin/cpu/cpu.c 2013-11-04 16:50:45 +08:00
cpu.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
gpio.c blackfin: If none ADI_GPIOX macro is defined, use ADI_GPIO1 as default 2013-12-06 16:06:51 +08:00
init.lds.S Blackfin: add init.elf helper code 2011-07-12 02:17:45 -04:00
init.S Blackfin: add init.elf helper code 2011-07-12 02:17:45 -04:00
initcode.c blackfin: remove build warning 2013-12-16 11:38:33 +08:00
initcode.h blackfin: The logic of the BF609 macro is opposite. 2014-02-07 11:18:06 +08:00
interrupt.S Blackfin: set up simple NMI handlers for anomaly 05000219 2010-07-05 04:18:18 -04:00
interrupts.c Timer: Remove reset_timer() for non-Nios2 arches 2011-07-26 14:53:30 +02:00
jtag-console.c serial: bfin: Flip the jtag serial console to CONFIG_SERIAL_MULTI 2012-10-15 11:53:51 -07:00
Makefile kbuild: change out-of-tree build 2014-02-19 11:07:50 -05:00
os_log.c blackfin: don't use 'bool' when it causes problems 2013-11-25 10:41:55 -05:00
reset.c blackfin: bf60x: Port blackfin core architecture code to boot on bf60x. 2013-03-04 13:42:06 +08:00
start.S blackfin: init bss early 2014-02-07 11:18:06 +08:00
traps.c Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
u-boot.lds Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00