From: Sam Ravnborg <sam@ravnborg.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: lkml <linux-kernel@vger.kernel.org>,
linux-arch <linux-arch@vger.kernel.org>,
Sam Ravnborg <sam@ravnborg.org>,
David Howells <dhowells@redhat.com>
Subject: [PATCH 08/38] kbuild: drop support for non uapi Kbuild files in headers_install
Date: Mon, 14 Jul 2014 17:08:36 +0200 [thread overview]
Message-ID: <1405350546-28467-8-git-send-email-sam@ravnborg.org> (raw)
In-Reply-To: <1405350546-28467-1-git-send-email-sam@ravnborg.org>
There are no more Kbuild files outside uapi directories used
for exported headers so drop support for these.
Also update documentation to reference the correct files.
Except for destination-y which has no in-tree users at the moment.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: David Howells <dhowells@redhat.com>
---
Documentation/kbuild/makefiles.txt | 4 ++--
| 17 +----------------
2 files changed, 3 insertions(+), 18 deletions(-)
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt
index c600e2f..98b89bf 100644
--- a/Documentation/kbuild/makefiles.txt
+++ b/Documentation/kbuild/makefiles.txt
@@ -1294,7 +1294,7 @@ See subsequent chapter for the syntax of the Kbuild file.
header-y specify header files to be exported.
Example:
- #include/linux/Kbuild
+ #include/linux/uapi/Kbuild
header-y += usb/
header-y += aio_abi.h
@@ -1314,7 +1314,7 @@ See subsequent chapter for the syntax of the Kbuild file.
up in another directory when doing 'make O=...' builds.
Example:
- #include/linux/Kbuild
+ #include/linux/uapi/Kbuild
genhdr-y += version.h
--- 7.3 destination-y
--git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index 8ccf830..3f72031 100644
--- a/scripts/Makefile.headersinst
+++ b/scripts/Makefile.headersinst
@@ -16,11 +16,6 @@ include $(kbuild-file)
# called may set destination dir (when installing to asm/)
_dst := $(if $(destination-y),$(destination-y),$(if $(dst),$(dst),$(obj)))
-old-kbuild-file := $(srctree)/$(subst uapi/,,$(obj))/Kbuild
-ifneq ($(wildcard $(old-kbuild-file)),)
-include $(old-kbuild-file)
-endif
-
include scripts/Kbuild.include
installdir := $(INSTALL_HDR_PATH)/$(subst uapi/,,$(_dst))
@@ -40,8 +35,6 @@ wrapper-files := $(filter $(header-y), $(generic-y))
srcdir := $(srctree)/$(obj)
gendir := $(objtree)/$(gen)
-oldsrcdir := $(srctree)/$(subst /uapi,,$(obj))
-
# all headers files for this dir
header-y := $(filter-out $(generic-y), $(header-y))
all-files := $(header-y) $(genhdr-y) $(wrapper-files)
@@ -52,13 +45,6 @@ input-files1 := $(foreach hdr, $(header-y), \
$(wildcard $(srcdir)/$(hdr))) \
)
input-files1-name := $(notdir $(input-files1))
-input-files2 := $(foreach hdr, $(header-y), \
- $(if $(wildcard $(srcdir)/$(hdr)),, \
- $(if $(wildcard $(oldsrcdir)/$(hdr)), \
- $(wildcard $(oldsrcdir)/$(hdr)), \
- $(error Missing UAPI file $(srcdir)/$(hdr))) \
- ))
-input-files2-name := $(notdir $(input-files2))
input-files3 := $(foreach hdr, $(genhdr-y), \
$(if $(wildcard $(gendir)/$(hdr)), \
$(wildcard $(gendir)/$(hdr)), \
@@ -79,7 +65,6 @@ quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\
file$(if $(word 2, $(all-files)),s))
cmd_install = \
$(CONFIG_SHELL) $< $(installdir) $(srcdir) $(input-files1-name); \
- $(CONFIG_SHELL) $< $(installdir) $(oldsrcdir) $(input-files2-name); \
$(CONFIG_SHELL) $< $(installdir) $(gendir) $(input-files3-name); \
for F in $(wrapper-files); do \
echo "\#include <asm-generic/$$F>" > $(installdir)/$$F; \
@@ -106,7 +91,7 @@ __headersinst: $(subdirs) $(install-file)
@:
targets += $(install-file)
-$(install-file): scripts/headers_install.sh $(input-files1) $(input-files2) $(input-files3) FORCE
+$(install-file): scripts/headers_install.sh $(input-files1) $(input-files3) FORCE
$(if $(unwanted),$(call cmd,remove),)
$(if $(wildcard $(dir $@)),,$(shell mkdir -p $(dir $@)))
$(call if_changed,install)
--
1.9.3
next prev parent reply other threads:[~2014-07-14 15:08 UTC|newest]
Thread overview: 84+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-14 15:06 [RFC PATCH 0/38] clean-up uapi + asm-generic Kbuild files Sam Ravnborg
2014-07-14 15:08 ` [PATCH 01/38] cris: fix headers_install Sam Ravnborg
2014-07-14 15:08 ` [PATCH 02/38] openrisc: drop ucontext from list exported headers Sam Ravnborg
2014-07-14 15:08 ` [PATCH 03/38] hexagon: " Sam Ravnborg
2014-07-14 15:08 ` Sam Ravnborg
2014-07-28 16:19 ` rkuo
2014-07-14 15:08 ` [PATCH 04/38] score: drop irrelevant assignment from Kbuild file Sam Ravnborg
2014-07-15 13:57 ` Lennox Wu
2014-07-15 13:57 ` Lennox Wu
2014-07-14 15:08 ` [PATCH 05/38] tile: clean up Kbuild files Sam Ravnborg
2014-07-17 19:41 ` Chris Metcalf
2014-07-17 19:41 ` Chris Metcalf
2014-07-14 15:08 ` [PATCH 06/38] x86: clean-up Kbuild file - drop unused assignments Sam Ravnborg
2014-07-14 22:50 ` H. Peter Anvin
2014-07-14 15:08 ` [PATCH 07/38] Delete unused Kbuild files in include/* Sam Ravnborg
2014-07-15 9:06 ` James Hogan
2014-07-15 9:19 ` Sam Ravnborg
2014-07-14 15:08 ` Sam Ravnborg [this message]
2014-07-14 15:08 ` [PATCH 08/38] kbuild: drop support for non uapi Kbuild files in headers_install Sam Ravnborg
2014-07-14 15:08 ` [PATCH 09/38] uapi: check for optional files which are generated Sam Ravnborg
2014-07-14 15:08 ` [PATCH 10/38] uapi: drop obsolete logic for generated headers Sam Ravnborg
2014-07-14 15:08 ` [PATCH 11/38] alpha: clean-up uapi Kbuild file Sam Ravnborg
2014-07-14 15:08 ` [PATCH 12/38] arm: " Sam Ravnborg
2014-07-14 15:08 ` [PATCH 13/38] arm64: " Sam Ravnborg
2014-07-14 15:08 ` Sam Ravnborg
2014-07-14 17:02 ` Catalin Marinas
2014-07-15 10:14 ` James Hogan
2014-07-14 15:08 ` [PATCH 14/38] avr32: " Sam Ravnborg
2014-07-14 17:53 ` Hans-Christian Egtvedt
2014-07-14 15:08 ` [PATCH 15/38] blackfin: " Sam Ravnborg
2014-07-14 15:08 ` [PATCH 16/38] c6x: " Sam Ravnborg
2014-07-14 15:08 ` Sam Ravnborg
2014-07-14 20:40 ` Mark Salter
2014-07-14 15:08 ` [PATCH 17/38] cris: " Sam Ravnborg
2014-07-14 15:08 ` Sam Ravnborg
2014-08-11 5:35 ` Mikael Starvik
2014-09-03 11:23 ` Jesper Nilsson
2014-09-03 11:23 ` Jesper Nilsson
2014-07-14 15:08 ` [PATCH 18/38] frv: " Sam Ravnborg
2014-07-14 15:08 ` [PATCH 19/38] hexagon: " Sam Ravnborg
2014-07-14 15:08 ` Sam Ravnborg
2014-07-28 16:19 ` rkuo
2014-07-14 15:08 ` [PATCH 20/38] ia64: " Sam Ravnborg
2014-07-14 15:08 ` Sam Ravnborg
2014-07-14 15:08 ` [PATCH 21/38] m32r: " Sam Ravnborg
2014-07-14 15:08 ` [PATCH 22/38] m68k: " Sam Ravnborg
2014-07-14 15:08 ` [PATCH 23/38] metag: " Sam Ravnborg
[not found] ` <1405350546-28467-23-git-send-email-sam-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org>
2014-07-15 9:22 ` James Hogan
2014-07-15 9:22 ` James Hogan
2014-07-14 15:08 ` [PATCH 24/38] microblaze: " Sam Ravnborg
2014-07-14 15:08 ` [PATCH 25/38] mips: " Sam Ravnborg
2014-07-14 15:08 ` [PATCH 26/38] mn10300: " Sam Ravnborg
2014-07-14 15:08 ` [PATCH 27/38] openrisc: " Sam Ravnborg
2014-07-14 15:08 ` Sam Ravnborg
2014-07-14 15:08 ` [PATCH 28/38] parisc: " Sam Ravnborg
2014-07-14 15:08 ` [PATCH 29/38] powerpc: " Sam Ravnborg
2014-07-14 15:08 ` [PATCH 30/38] s390: " Sam Ravnborg
2014-07-14 15:08 ` [PATCH 31/38] score: " Sam Ravnborg
2014-07-14 15:08 ` Sam Ravnborg
2014-07-18 15:19 ` Lennox Wu
2014-07-18 15:19 ` Lennox Wu
2014-07-14 15:09 ` [PATCH 32/38] sh: " Sam Ravnborg
2014-07-14 15:09 ` [PATCH 33/38] sparc: " Sam Ravnborg
2014-07-14 15:09 ` Sam Ravnborg
2014-07-14 20:02 ` David Miller
2014-07-14 15:09 ` [PATCH 34/38] tile: " Sam Ravnborg
2014-07-17 19:44 ` Chris Metcalf
2014-07-17 19:44 ` Chris Metcalf
2014-07-14 15:09 ` [PATCH 35/38] unicore32: " Sam Ravnborg
2014-07-15 10:53 ` James Hogan
2014-07-15 11:07 ` Sam Ravnborg
2014-07-14 15:09 ` [PATCH 36/38] x86: " Sam Ravnborg
2014-07-14 15:09 ` Sam Ravnborg
2014-07-14 22:52 ` H. Peter Anvin
2014-07-14 15:09 ` [PATCH 37/38] xtensa: " Sam Ravnborg
2014-07-14 15:09 ` [PATCH 38/38] asm-generic: introduc Kbuild.generic Sam Ravnborg
2014-07-14 15:09 ` Sam Ravnborg
2014-07-15 7:03 ` Arnd Bergmann
2014-07-17 10:38 ` Sam Ravnborg
2014-07-17 10:50 ` Arnd Bergmann
2014-08-11 5:35 ` [PATCH 01/38] cris: fix headers_install Mikael Starvik
2014-09-03 11:22 ` Jesper Nilsson
2014-07-14 15:34 ` [RFC PATCH 0/38] clean-up uapi + asm-generic Kbuild files Arnd Bergmann
2014-07-14 22:14 ` Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1405350546-28467-8-git-send-email-sam@ravnborg.org \
--to=sam@ravnborg.org \
--cc=arnd@arndb.de \
--cc=dhowells@redhat.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).