From: zzs0213@gmail.com
To: linux-kbuild@vger.kernel.org
Cc: 张忠山 <zzs213@126.com>, 张忠山 <zzs0213@gmail.com>
Subject: [PATCH] let kbuild mkdir for dir/file.o
Date: Tue, 28 May 2013 18:14:20 +0800 [thread overview]
Message-ID: <51a483e4.cfaf420a.3b33.5494@mx.google.com> (raw)
From: 张忠山 <zzs213@126.com>
when obj-y += dir/file.o
the $(obj)/dir not created, this patch fix this
this bug caused by commit
f5fb976520a53f45f8bbf2e851f16b3b5558d485
Signed-off-by: 张忠山 <zzs0213@gmail.com>
---
scripts/Makefile.lib | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 51bb3de..6bae5a9 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -63,7 +63,8 @@ multi-objs := $(multi-objs-y) $(multi-objs-m)
subdir-obj-y := $(filter %/built-in.o, $(obj-y))
# $(obj-dirs) is a list of directories that contain object files
-obj-dirs := $(dir $(multi-objs) $(subdir-obj-y))
+__subdir-obj-y := $(foreach o,$(obj-y),$(if $(filter-out $(o),$(notdir $(o))),$(o)))
+obj-dirs := $(dir $(multi-objs) $(__subdir-obj-y))
# Replace multi-part objects by their individual parts, look at local dir only
real-objs-y := $(foreach m, $(filter-out $(subdir-obj-y), $(obj-y)), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))),$($(m:.o=-objs)) $($(m:.o=-y)),$(m))) $(extra-y)
--
1.7.9.5
next reply other threads:[~2013-05-28 10:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-28 10:14 zzs0213 [this message]
2013-05-29 3:42 ` [PATCH] let kbuild mkdir for dir/file.o zzs
2013-05-29 6:10 张忠山
[not found] <1369807633-4364-1-git-send-email-zzs0213@gmail.com>
2013-05-30 1:59 ` 张忠山
2013-05-30 18:59 ` Sam Ravnborg
2013-06-04 8:45 张忠山
2013-06-04 8:45 ` 张忠山
2013-06-28 22:44 ` Michal Marek
2013-06-30 8:01 ` 张忠山
2013-06-30 8:01 ` 张忠山
2013-06-30 9:02 ` 张忠山
2013-06-30 9:09 ` 张忠山
2013-06-30 9:09 ` 张忠山
2013-07-03 20:49 ` Michal Marek
2013-07-04 1:35 ` 张忠山
2013-06-14 5:39 ` zzs
2013-06-23 21:59 ` Michal Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51a483e4.cfaf420a.3b33.5494@mx.google.com \
--to=zzs0213@gmail.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=zzs213@126.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.