Adding support for saving build objects in a separated directory.
authorRicardo Salveti de Araujo <ricardo.salveti@canonical.com>
Mon, 20 Dec 2010 13:30:27 +0000 (11:30 -0200)
committerAnand Gadiyar <gadiyar@ti.com>
Thu, 23 Dec 2010 09:23:32 +0000 (14:53 +0530)
commit6f0a4470585940a07357cc75488bedeb1fcdff2a
treed89c6b77499491a8d21c5def058561167c29f4dd
parent820c34adbf5e5fe21987b9437e9a982f013f2133
Adding support for saving build objects in a separated directory.

This patch basically ports the same functionality already available at u-boot,
and can be used in two ways:
 1) Add O= to the make command line
    'make O=/tmp/build board_config'
    'make O=/tmp/build ift'

 2) Set environement variable BUILD_DIR to point to the desired location
    'export BUILD_DIR=/tmp/build'
    'make board_config'
    'make ift'

Similar to u-boot, setting 'O=' at the command line will override the BUILD_DIR
environment variable.

If you use none of above methods, the build will happen localy, as before.

Changes since v1:
 * Rebase to correctly apply against the main Makefile after the signGP merge

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Acked-by: Nishanth Menon <nm@ti.com>
23 files changed:
Makefile
board/omap1710h3/Makefile
board/omap2420h4/Makefile
board/omap2430sdp/Makefile
board/omap3430labrador/Makefile
board/omap3430sdp/Makefile
board/omap3530beagle/Makefile
board/omap3evm/Makefile
board/omap4430panda/Makefile
board/overo/Makefile
common/Makefile
config.mk
cpu/arm1136/Makefile
cpu/arm926ejs/Makefile
cpu/omap3/Makefile
cpu/omap4/Makefile
disk/Makefile
drivers/Makefile
fs/Makefile
fs/fat/Makefile
lib/Makefile
mkconfig
rules.mk [new file with mode: 0644]