[PATCH] kbuild: introduce HDR_ARCH_LIST for headers_install_all

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Kirill A. Shutsemov
Date: Wednesday, November 10, 2010 - 4:19 pm

From: Kirill A. Shutemov <kirill@shutemov.name>

Using HDR_ARCH_LIST you can specify subset of architectures you want to get
headers for.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
---
 Documentation/make/headers_install.txt |    5 +++--
 scripts/headers.sh                     |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/make/headers_install.txt b/Documentation/make/headers_install.txt
index f2481ca..951eb9f 100644
--- a/Documentation/make/headers_install.txt
+++ b/Documentation/make/headers_install.txt
@@ -39,8 +39,9 @@ INSTALL_HDR_PATH indicates where to install the headers.  It defaults to
 The command "make headers_install_all" exports headers for all architectures
 simultaneously.  (This is mostly of interest to distribution maintainers,
 who create an architecture-independent tarball from the resulting include
-directory.)  Remember to provide the appropriate linux/asm directory via "mv"
-or "ln -s" before building a C library with headers exported this way.
+directory.)  You also can use HDR_ARCH_LIST to specify list of architectures.
+Remember to provide the appropriate linux/asm directory via "mv" or "ln -s"
+before building a C library with headers exported this way.
 
 The kernel header export infrastructure is maintained by David Woodhouse
 <dwmw2@infradead.org>.
diff --git a/scripts/headers.sh b/scripts/headers.sh
index 1ddcdd3..978b42b 100755
--- a/scripts/headers.sh
+++ b/scripts/headers.sh
@@ -13,7 +13,7 @@ do_command()
 	fi
 }
 
-archs=$(ls ${srctree}/arch)
+archs=${HDR_ARCH_LIST:-$(ls ${srctree}/arch)}
 
 for arch in ${archs}; do
 	case ${arch} in
-- 
1.7.3.2

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] kbuild: introduce ARCH_LIST for headers_instal ..., Kirill A. Shutsemov, (Fri Oct 29, 6:04 am)
[PATCH 2/2] kbuild: export linux/{a.out,kvm,kvm_para}.h on ..., Kirill A. Shutsemov, (Fri Oct 29, 6:04 am)
Re: [PATCH 1/2] kbuild: introduce ARCH_LIST for headers_in ..., Kirill A. Shutemov, (Fri Nov 5, 2:01 am)
[PATCH] kbuild: introduce HDR_ARCH_LIST for headers_instal ..., Kirill A. Shutsemov, (Wed Nov 10, 4:19 pm)