diff options
author | Robert Richter <rrichter@cavium.com> | 2014-09-03 15:29:24 +0200 |
---|---|---|
committer | Robert Richter <rrichter@cavium.com> | 2014-10-21 18:06:58 +0200 |
commit | 9fb5e5372208973984a23ee6f5f025c05d364633 (patch) | |
tree | c8aaa3059e1d9eace7cc2e5532d8b18b8a93d4c1 /scripts/Kbuild.include | |
parent | 862f464a540554a28273b761b4ce72541dc75914 (diff) | |
download | op-kernel-dev-9fb5e5372208973984a23ee6f5f025c05d364633.zip op-kernel-dev-9fb5e5372208973984a23ee6f5f025c05d364633.tar.gz |
dts, kbuild: Factor out dtbs install rules to Makefile.dtbinst
Move dtbs install rules to Makefile.dtbinst. This change is needed to
implement support for dts vendor subdirs. The change makes Makefiles
easier and smaller as no longer the dtbs_install rule needs to be
defined. Another advantage is that install goals are not encoded in
targets anymore (%.dtb_dtbinst_).
Signed-off-by: Robert Richter <rrichter@cavium.com>
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r-- | scripts/Kbuild.include | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 65e7b08..5374b1b 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -179,6 +179,12 @@ build := -f $(srctree)/scripts/Makefile.build obj # $(Q)$(MAKE) $(modbuiltin)=dir modbuiltin := -f $(srctree)/scripts/Makefile.modbuiltin obj +### +# Shorthand for $(Q)$(MAKE) -f scripts/Makefile.dtbinst obj= +# Usage: +# $(Q)$(MAKE) $(dtbinst)=dir +dtbinst := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.dtbinst obj + # Prefix -I with $(srctree) if it is not an absolute path. # skip if -I has no parameter addtree = $(if $(patsubst -I%,%,$(1)), \ |