diff options
| author | Michal Marek <mmarek@suse.cz> | 2014-06-05 11:44:44 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2014-06-05 11:55:48 -0400 |
| commit | d4bc590f8716f7dde6b7bca319097ac30a8cb0b4 (patch) | |
| tree | c3b371f14281e386cc6ca44d63bf8cbb64d3554a | |
| parent | 9da0763bdd82572be243fcf5161734f11568960f (diff) | |
um: Fix for relative objtree when generating x86 headers
In an O= build, rely on the generated Makefile to call the main Makefile
properly. When building in the source tree, we do not need to specify
the -C and O= either. This fixes the problem when $(objtree) is a
relative path and the -C changes the directory.
Reported-by: Richard Weinberger <richard.weinberger@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
| -rw-r--r-- | arch/um/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index 36e658a4291c..e4b1a9639c4d 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
| @@ -111,8 +111,7 @@ endef | |||
| 111 | KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig | 111 | KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig |
| 112 | 112 | ||
| 113 | archheaders: | 113 | archheaders: |
| 114 | $(Q)$(MAKE) -C '$(srctree)' KBUILD_SRC= \ | 114 | $(Q)$(MAKE) KBUILD_SRC= ARCH=$(HEADER_ARCH) archheaders |
| 115 | ARCH=$(HEADER_ARCH) O='$(objtree)' archheaders | ||
| 116 | 115 | ||
| 117 | archprepare: include/generated/user_constants.h | 116 | archprepare: include/generated/user_constants.h |
| 118 | 117 | ||
