Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: use 'output' variable to create the output directory

$(KBUILD_OUTPUT) specifies the output directory of kernel builds.

Use a more generic name, 'output', to better reflect this code hunk in
the context of external module builds.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>

+8 -6
+8 -6
Makefile
··· 176 176 # The O= assignment takes precedence over the KBUILD_OUTPUT environment 177 177 # variable. 178 178 179 - # Do we want to change the working directory? 180 179 ifeq ("$(origin O)", "command line") 181 180 KBUILD_OUTPUT := $(O) 182 181 endif 183 182 184 - ifneq ($(KBUILD_OUTPUT),) 183 + output := $(KBUILD_OUTPUT) 184 + 185 + # Do we want to change the working directory? 186 + ifneq ($(output),) 185 187 # $(realpath ...) gets empty if the path does not exist. Run 'mkdir -p' first. 186 - $(shell mkdir -p "$(KBUILD_OUTPUT)") 188 + $(shell mkdir -p "$(output)") 187 189 # $(realpath ...) resolves symlinks 188 - abs_output := $(realpath $(KBUILD_OUTPUT)) 189 - $(if $(abs_output),,$(error failed to create output directory "$(KBUILD_OUTPUT)")) 190 - endif # ifneq ($(KBUILD_OUTPUT),) 190 + abs_output := $(realpath $(output)) 191 + $(if $(abs_output),,$(error failed to create output directory "$(output)")) 192 + endif 191 193 192 194 ifneq ($(words $(subst :, ,$(abs_srctree))), 1) 193 195 $(error source directory cannot contain spaces or colons)