summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-09-09 06:26:21 -0400
committerMichal Marek <mmarek@suse.cz>2014-10-02 07:55:02 -0400
commita4954fd7724c0f55361eb56005856b0da0c99b00 (patch)
tree784f74cb9e1aa3053ebd14aa269b27e72f6308b0
parentac84eb47cc199d9df7eeb7b32630fc09295a030b (diff)
kbuild: remove obj-n and lib-n handling
Kconfig never defines CONFIG_* as 'n'. Now obj-n is only used in firmware/Makefile and it can be replaced with obj-. No makefile uses lib-n. Let's rip off obj-n and lib-n. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Peter Foley <pefoley2@pefoley.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
-rw-r--r--firmware/Makefile2
-rw-r--r--scripts/Makefile.build4
-rw-r--r--scripts/Makefile.clean4
-rw-r--r--scripts/Makefile.fwinst2
4 files changed, 5 insertions, 7 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index 0862d34cf7d1..e297e1b52636 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -232,6 +232,6 @@ targets := $(fw-shipped-) $(patsubst $(obj)/%,%, \
232 232
233# Without this, built-in.o won't be created when it's empty, and the 233# Without this, built-in.o won't be created when it's empty, and the
234# final vmlinux link will fail. 234# final vmlinux link will fail.
235obj-n := dummy 235obj- := dummy
236 236
237hostprogs-y := ihex2fw 237hostprogs-y := ihex2fw
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 5b09d3637855..649ce6844033 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -79,11 +79,11 @@ endif
79 79
80# =========================================================================== 80# ===========================================================================
81 81
82ifneq ($(strip $(lib-y) $(lib-m) $(lib-n) $(lib-)),) 82ifneq ($(strip $(lib-y) $(lib-m) $(lib-)),)
83lib-target := $(obj)/lib.a 83lib-target := $(obj)/lib.a
84endif 84endif
85 85
86ifneq ($(strip $(obj-y) $(obj-m) $(obj-n) $(obj-) $(subdir-m) $(lib-target)),) 86ifneq ($(strip $(obj-y) $(obj-m) $(obj-) $(subdir-m) $(lib-target)),)
87builtin-target := $(obj)/built-in.o 87builtin-target := $(obj)/built-in.o
88endif 88endif
89 89
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean
index a651cee84f2a..c630ab52fa42 100644
--- a/scripts/Makefile.clean
+++ b/scripts/Makefile.clean
@@ -23,15 +23,13 @@ __subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y)))
23subdir-y += $(__subdir-y) 23subdir-y += $(__subdir-y)
24__subdir-m := $(patsubst %/,%,$(filter %/, $(obj-m))) 24__subdir-m := $(patsubst %/,%,$(filter %/, $(obj-m)))
25subdir-m += $(__subdir-m) 25subdir-m += $(__subdir-m)
26__subdir-n := $(patsubst %/,%,$(filter %/, $(obj-n)))
27subdir-n += $(__subdir-n)
28__subdir- := $(patsubst %/,%,$(filter %/, $(obj-))) 26__subdir- := $(patsubst %/,%,$(filter %/, $(obj-)))
29subdir- += $(__subdir-) 27subdir- += $(__subdir-)
30 28
31# Subdirectories we need to descend into 29# Subdirectories we need to descend into
32 30
33subdir-ym := $(sort $(subdir-y) $(subdir-m)) 31subdir-ym := $(sort $(subdir-y) $(subdir-m))
34subdir-ymn := $(sort $(subdir-ym) $(subdir-n) $(subdir-)) 32subdir-ymn := $(sort $(subdir-ym) $(subdir-))
35 33
36# Add subdir path 34# Add subdir path
37 35
diff --git a/scripts/Makefile.fwinst b/scripts/Makefile.fwinst
index d8e335eed226..5b698add4f31 100644
--- a/scripts/Makefile.fwinst
+++ b/scripts/Makefile.fwinst
@@ -2,7 +2,7 @@
2# Installing firmware 2# Installing firmware
3# 3#
4# We don't include the .config, so all firmware files are in $(fw-shipped-) 4# We don't include the .config, so all firmware files are in $(fw-shipped-)
5# rather than in $(fw-shipped-y) or $(fw-shipped-n). 5# rather than in $(fw-shipped-y) or $(fw-shipped-m).
6# ========================================================================== 6# ==========================================================================
7 7
8INSTALL := install 8INSTALL := install