kbuild: create a build directory automatically for out-of-tree build
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Mon, 31 Mar 2014 07:41:36 +0000 (16:41 +0900)
committerMichal Marek <mmarek@suse.cz>
Mon, 31 Mar 2014 20:47:16 +0000 (22:47 +0200)
commit1c9e70a55b088d97a59241744fe459409d0c3582
treebcb49fb8471c641d8d321c1af9d4e82d349f6998
parenta03fcb50e816a69acffb13b5e56db75063aeba8a
kbuild: create a build directory automatically for out-of-tree build

Kbuild supports saving output files in a separate directory.
But the build directory must be created beforehand. For example,

  $ mkdir -p dir/to/store/output/files
  $ make O=dir/to/store/output/files defconfig

Creating a build directory automatically would be useful.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Makefile