diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -115,7 +115,9 @@ saved-output := $(KBUILD_OUTPUT) | |||
115 | KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd) | 115 | KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd) |
116 | $(if $(KBUILD_OUTPUT),, \ | 116 | $(if $(KBUILD_OUTPUT),, \ |
117 | $(error output directory "$(saved-output)" does not exist)) | 117 | $(error output directory "$(saved-output)" does not exist)) |
118 | 118 | # Check that OUTPUT directory is not the same as where we have kernel src | |
119 | $(if $(filter-out $(KBUILD_OUTPUT),$(shell /bin/pwd)),, \ | ||
120 | $(error Output directory (O=...) specifies kernel src dir)) | ||
119 | PHONY += $(MAKECMDGOALS) | 121 | PHONY += $(MAKECMDGOALS) |
120 | 122 | ||
121 | $(filter-out _all,$(MAKECMDGOALS)) _all: | 123 | $(filter-out _all,$(MAKECMDGOALS)) _all: |