summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-03-15 20:56:43 (GMT)
committerRob Herring <robh@kernel.org>2017-03-23 21:53:53 (GMT)
commit9d897771ce9eb575eb114a880a9ce4a6c36f164d (patch)
tree09b644d9f17e9ec9604a0d172742bd0fef7fc350
parentbabcca6c388d1aad4df6bf5b63605a33dd9f2c22 (diff)
downloadandroid-device-linaro-generic-9d897771ce9eb575eb114a880a9ce4a6c36f164d.tar.gz
android-device-linaro-generic-9d897771ce9eb575eb114a880a9ce4a6c36f164d.tar.xz
kbuild: default KBUILD_OUTPUT to TARGET_PRODUCT
Instead of generating an error, use TARGET_PRODUCT for KBUILD_OUTPUT. This lets us configure the current target device by default. Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 94e12fc..eccaa6c 100644
--- a/Makefile
+++ b/Makefile
@@ -123,7 +123,7 @@ _all:
$(CURDIR)/Makefile Makefile: ;
ifeq ($(KBUILD_OUTPUT),)
-$(error KBUILD_OUTPUT must be set)
+ KBUILD_OUTPUT := $(TARGET_PRODUCT)
endif
# Invoke a second make in the output directory, passing relevant variables
# check that the output directory actually exists