[PATCH] Makefile INSTALL_HDR_PATH overriden

From: Justin Capella
Date: Thu Feb 21 2019 - 23:32:03 EST


gpg: Signature made Thu 21 Feb 2019 08:02:55 PM PST
gpg: using RSA key F6CC1F4DF325EACBBE2532481F299543498470BA
gpg: issuer "justincapella@xxxxxxxxx"
gpg: Good signature from "Justin Capella <justincapella@xxxxxxxxx>" [ultimate]
Author: Justin Capella <justincapella@xxxxxxxxx>
Date: Thu Feb 21 20:02:55 2019 -0800

Allow configuration of headers install path, do not overwrite
INSTALL_HDR_PATH

diff --git a/Makefile b/Makefile
index 96c5335e7ee4..686e747ca2ab 100644
--- a/Makefile
+++ b/Makefile
@@ -1151,7 +1151,7 @@ headerdep:
# Kernel headers

#Default location for installed headers
-export INSTALL_HDR_PATH = $(objtree)/usr
+export INSTALL_HDR_PATH ?= $(objtree)/usr

# If we do an all arch process set dst to include/arch-$(SRCARCH)
hdr-dst = $(if $(KBUILD_HEADERS), dst=include/arch-$(SRCARCH), dst=include)