From 38c7200e095dfef98a61d970baad8dbde5fe3cba Mon Sep 17 00:00:00 2001 From: Mitchel Humpherys Date: Thu, 29 May 2014 14:03:39 -0700 Subject: [PATCH] scripts/Makefile.headersinst: install staging UAPI header files to usr Currently when UAPI headers for a staging driver are kept under the drivers/staging directory, `make headers_install' installs them to /drivers instead of the usual /usr. This is a non-standard and unexpected location. Fix this by doing the necessary string substitutions so that the UAPI headers for staging drivers end up in /usr/include/linux/staging. Change-Id: Ibf6b813e69eea78fc59a4a505c75c6093eca70dd Signed-off-by: Mitchel Humpherys --- scripts/Makefile.headersinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index 1106d6ca3a38..ed95cb4e515f 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst @@ -124,7 +124,7 @@ endif # Recursion .PHONY: $(subdirs) $(subdirs): - $(Q)$(MAKE) $(hdr-inst)=$(obj)/$@ dst=$(_dst)/$@ + $(Q)$(MAKE) $(hdr-inst)=$(obj)/$@ dst=$(_dst)/$(subst drivers/staging,usr/include/linux/staging,$@) targets := $(wildcard $(sort $(targets))) cmd_files := $(wildcard \