linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] kbuild: introduce ARCH_LIST for headers_install_all
@ 2010-10-29 13:04 Kirill A. Shutsemov
  2010-10-29 13:04 ` [PATCH 2/2] kbuild: export linux/{a.out,kvm,kvm_para}.h on headers_install_all Kirill A. Shutsemov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Kirill A. Shutsemov @ 2010-10-29 13:04 UTC (permalink / raw)
  To: Sam Ravnborg, David Woodhouse
  Cc: Michal Marek, linux-kbuild, linux-kernel, Kirill A. Shutemov

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

Using 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..1abace6 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 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..62bc527 100755
--- a/scripts/headers.sh
+++ b/scripts/headers.sh
@@ -13,7 +13,7 @@ do_command()
 	fi
 }
 
-archs=$(ls ${srctree}/arch)
+archs=${ARCH_LIST:-$(ls ${srctree}/arch)}
 
 for arch in ${archs}; do
 	case ${arch} in
-- 
1.7.3.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] kbuild: export linux/{a.out,kvm,kvm_para}.h on headers_install_all
  2010-10-29 13:04 [PATCH 1/2] kbuild: introduce ARCH_LIST for headers_install_all Kirill A. Shutsemov
@ 2010-10-29 13:04 ` Kirill A. Shutsemov
  2010-11-05  9:01 ` [PATCH 1/2] kbuild: introduce ARCH_LIST for headers_install_all Kirill A. Shutemov
  2010-11-07  7:58 ` Américo Wang
  2 siblings, 0 replies; 5+ messages in thread
From: Kirill A. Shutsemov @ 2010-10-29 13:04 UTC (permalink / raw)
  To: Sam Ravnborg, David Woodhouse
  Cc: Michal Marek, linux-kbuild, linux-kernel, Kirill A. Shutemov

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

Export linux/a.out.h, linux/kvm.h and linux/kvm_para.h on
headers_install_all if at least one architecture has appropriate files
in arch-dependent headers.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
---
 include/linux/Kbuild |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 90e3ed3..7c52116 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -20,15 +20,18 @@ header-y += wimax/
 objhdr-y += version.h
 
 ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \
-		  $(srctree)/include/asm-$(SRCARCH)/a.out.h),)
+		  $(srctree)/include/asm-$(SRCARCH)/a.out.h \
+		  $(INSTALL_HDR_PATH)/include/asm-*/a.out.h),)
 header-y += a.out.h
 endif
 ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \
-		  $(srctree)/include/asm-$(SRCARCH)/kvm.h),)
+		  $(srctree)/include/asm-$(SRCARCH)/kvm.h \
+		  $(INSTALL_HDR_PATH)/include/asm-*/kvm.h),)
 header-y += kvm.h
 endif
 ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
-		  $(srctree)/include/asm-$(SRCARCH)/kvm_para.h),)
+		  $(srctree)/include/asm-$(SRCARCH)/kvm_para.h \
+		  $(INSTALL_HDR_PATH)/include/asm-*/kvm_para.h),)
 header-y += kvm_para.h
 endif
 
-- 
1.7.3.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] kbuild: introduce ARCH_LIST for headers_install_all
  2010-10-29 13:04 [PATCH 1/2] kbuild: introduce ARCH_LIST for headers_install_all Kirill A. Shutsemov
  2010-10-29 13:04 ` [PATCH 2/2] kbuild: export linux/{a.out,kvm,kvm_para}.h on headers_install_all Kirill A. Shutsemov
@ 2010-11-05  9:01 ` Kirill A. Shutemov
  2010-11-07  7:58 ` Américo Wang
  2 siblings, 0 replies; 5+ messages in thread
From: Kirill A. Shutemov @ 2010-11-05  9:01 UTC (permalink / raw)
  To: Sam Ravnborg, David Woodhouse; +Cc: Michal Marek, linux-kbuild, linux-kernel

Does anybody care?

On Fri, Oct 29, 2010 at 04:04:00PM +0300, Kirill A. Shutsemov wrote:
> From: Kirill A. Shutemov <kirill@shutemov.name>
> 
> Using 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..1abace6 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 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..62bc527 100755
> --- a/scripts/headers.sh
> +++ b/scripts/headers.sh
> @@ -13,7 +13,7 @@ do_command()
>  	fi
>  }
>  
> -archs=$(ls ${srctree}/arch)
> +archs=${ARCH_LIST:-$(ls ${srctree}/arch)}
>  
>  for arch in ${archs}; do
>  	case ${arch} in
> -- 
> 1.7.3.2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
 Kirill A. Shutemov

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] kbuild: introduce ARCH_LIST for headers_install_all
  2010-10-29 13:04 [PATCH 1/2] kbuild: introduce ARCH_LIST for headers_install_all Kirill A. Shutsemov
  2010-10-29 13:04 ` [PATCH 2/2] kbuild: export linux/{a.out,kvm,kvm_para}.h on headers_install_all Kirill A. Shutsemov
  2010-11-05  9:01 ` [PATCH 1/2] kbuild: introduce ARCH_LIST for headers_install_all Kirill A. Shutemov
@ 2010-11-07  7:58 ` Américo Wang
  2010-11-10 23:19   ` [PATCH] kbuild: introduce HDR_ARCH_LIST " Kirill A. Shutsemov
  2 siblings, 1 reply; 5+ messages in thread
From: Américo Wang @ 2010-11-07  7:58 UTC (permalink / raw)
  To: Kirill A. Shutsemov
  Cc: Sam Ravnborg, David Woodhouse, Michal Marek, linux-kbuild, linux-kernel

On Fri, Oct 29, 2010 at 04:04:00PM +0300, Kirill A. Shutsemov wrote:
>From: Kirill A. Shutemov <kirill@shutemov.name>
>
>Using ARCH_LIST you can specify subset of architectures you want to get
>headers for.
>

The name is confusing, I think HEADER_ARCH_LIST is much better. :)

-- 
Live like a child, think like the god.
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] kbuild: introduce HDR_ARCH_LIST for headers_install_all
  2010-11-07  7:58 ` Américo Wang
@ 2010-11-10 23:19   ` Kirill A. Shutsemov
  0 siblings, 0 replies; 5+ messages in thread
From: Kirill A. Shutsemov @ 2010-11-10 23:19 UTC (permalink / raw)
  To: Sam Ravnborg, David Woodhouse
  Cc: Michal Marek, linux-kbuild, linux-kernel, Américo Wang,
	Kirill A. Shutemov

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-11-10 23:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-29 13:04 [PATCH 1/2] kbuild: introduce ARCH_LIST for headers_install_all Kirill A. Shutsemov
2010-10-29 13:04 ` [PATCH 2/2] kbuild: export linux/{a.out,kvm,kvm_para}.h on headers_install_all Kirill A. Shutsemov
2010-11-05  9:01 ` [PATCH 1/2] kbuild: introduce ARCH_LIST for headers_install_all Kirill A. Shutemov
2010-11-07  7:58 ` Américo Wang
2010-11-10 23:19   ` [PATCH] kbuild: introduce HDR_ARCH_LIST " Kirill A. Shutsemov

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).