Skip to content

Commit

Permalink
um: Fix for relative objtree when generating x86 headers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Marek committed Jun 5, 2014
1 parent 9da0763 commit d4bc590
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/um/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ endef
KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig

archheaders:
$(Q)$(MAKE) -C '$(srctree)' KBUILD_SRC= \
ARCH=$(HEADER_ARCH) O='$(objtree)' archheaders
$(Q)$(MAKE) KBUILD_SRC= ARCH=$(HEADER_ARCH) archheaders

archprepare: include/generated/user_constants.h

Expand Down

0 comments on commit d4bc590

Please sign in to comment.