diff options
author | Jiafu He <jay@goldhive.com> | 2009-12-17 18:22:13 -0700 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-02-02 14:33:54 +0100 |
commit | 4b024242e8a4e9679fa327ea03958b89f89096c9 (patch) | |
tree | ee82a61d2669f5828fee34269b1b71d49a803169 /scripts/Makefile.build | |
parent | abe94c756c08d50566c09a65b9c7fe72f83071c5 (diff) | |
download | renesas_kernel-4b024242e8a4e9679fa327ea03958b89f89096c9.tar.gz renesas_kernel-4b024242e8a4e9679fa327ea03958b89f89096c9.tar.bz2 renesas_kernel-4b024242e8a4e9679fa327ea03958b89f89096c9.zip |
kbuild: Fix linking error built-in.o no such file or directory
This patch fixes the link error "built-in.o: no such file or directory".
The problem happens if "dirx/Makefile" contains only "obj-m += diry/
dirz/" and the empty "dirx/built-in.o" is missing. Adding $(subdir-m)
into check for builtin-target fixes this error.
Signed-off-by: Jiafu He <jay@goldhive.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r-- | scripts/Makefile.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 0b94d2fa3a8..e4deb73e9a8 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -82,7 +82,7 @@ ifneq ($(strip $(lib-y) $(lib-m) $(lib-n) $(lib-)),) lib-target := $(obj)/lib.a endif -ifneq ($(strip $(obj-y) $(obj-m) $(obj-n) $(obj-) $(lib-target)),) +ifneq ($(strip $(obj-y) $(obj-m) $(obj-n) $(obj-) $(subdir-m) $(lib-target)),) builtin-target := $(obj)/built-in.o endif |