projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da30e7
)
kbuild: Create output directory in Makefile.modbuiltin
author
Michal Marek
<
[email protected]
>
Thu, 10 Jun 2010 10:23:08 +0000
(12:23 +0200)
committer
Michal Marek
<
[email protected]
>
Thu, 10 Jun 2010 10:23:08 +0000
(12:23 +0200)
Reported-by: Stephen Rothwell <
[email protected]
>
Signed-off-by: Michal Marek <
[email protected]
>
scripts/Makefile.modbuiltin
patch
|
blob
|
history
diff --git
a/scripts/Makefile.modbuiltin
b/scripts/Makefile.modbuiltin
index 102a276f6eeac9c4a1f71da4235b4e1496242659..1adb974e6950efb80943f82b1c4ca416b09b5417 100644
(file)
--- a/
scripts/Makefile.modbuiltin
+++ b/
scripts/Makefile.modbuiltin
@@
-14,6
+14,11
@@
__modbuiltin:
include scripts/Kbuild.include
+ifneq ($(KBUILD_SRC),)
+# Create output directory if not already present
+_dummy := $(shell [ -d $(obj) ] || mkdir -p $(obj))
+endif
+
# The filename Kbuild has precedence over Makefile
kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile)