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 <install_prefix>/drivers instead of the usual <install_prefix>/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 <install_prefix>/usr/include/linux/staging. Change-Id: Ibf6b813e69eea78fc59a4a505c75c6093eca70dd Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
This commit is contained in:
parent
728e0ec2a6
commit
38c7200e09
1 changed files with 1 additions and 1 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue