diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-06-19 19:07:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-06-19 19:07:02 -0400 |
commit | 0f02adaa49af23ab9fa05375f4a237da6014401b (patch) | |
tree | 77e2a9f9ca3e216dd1751de3878cd8c3246157fc | |
parent | 2c33645d366d13b969d936b68b9f4875b1fdddea (diff) | |
parent | 75e84ab906ef8935cff3df3d8929f1bafea81599 (diff) |
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf/urgent fix from Arnaldo Carvalho de Melo:
- Fix build breakage if prefix= is specified, this introduced
a regression for a build idiom used by the Debian "linux-tools"
package, that does:
MAKE_PERF := $(MAKE) prefix=/usr V=1 ARCH=$(KERNEL_ARCH_PERF) ...
Fix it. (Lukas Wunner)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | tools/build/Makefile.build | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/build/Makefile.build b/tools/build/Makefile.build index 10df57237a66..98cfc388ea33 100644 --- a/tools/build/Makefile.build +++ b/tools/build/Makefile.build | |||
@@ -94,12 +94,12 @@ obj-y := $(patsubst %/, %/$(obj)-in.o, $(obj-y)) | |||
94 | subdir-obj-y := $(filter %/$(obj)-in.o, $(obj-y)) | 94 | subdir-obj-y := $(filter %/$(obj)-in.o, $(obj-y)) |
95 | 95 | ||
96 | # '$(OUTPUT)/dir' prefix to all objects | 96 | # '$(OUTPUT)/dir' prefix to all objects |
97 | prefix := $(subst ./,,$(OUTPUT)$(dir)/) | 97 | objprefix := $(subst ./,,$(OUTPUT)$(dir)/) |
98 | obj-y := $(addprefix $(prefix),$(obj-y)) | 98 | obj-y := $(addprefix $(objprefix),$(obj-y)) |
99 | subdir-obj-y := $(addprefix $(prefix),$(subdir-obj-y)) | 99 | subdir-obj-y := $(addprefix $(objprefix),$(subdir-obj-y)) |
100 | 100 | ||
101 | # Final '$(obj)-in.o' object | 101 | # Final '$(obj)-in.o' object |
102 | in-target := $(prefix)$(obj)-in.o | 102 | in-target := $(objprefix)$(obj)-in.o |
103 | 103 | ||
104 | PHONY += $(subdir-y) | 104 | PHONY += $(subdir-y) |
105 | 105 | ||