Commit f6820308e025d645d9d766c97586badd4ddb8754

Authored by Kirill A. Shutemov
Committed by Michal Marek
1 parent 8990c1bc4b

kbuild: introduce HDR_ARCH_LIST for headers_install_all

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>
Signed-off-by: Michal Marek <mmarek@suse.cz>

Showing 2 changed files with 4 additions and 3 deletions Side-by-side Diff

Documentation/make/headers_install.txt
... ... @@ -39,8 +39,9 @@
39 39 The command "make headers_install_all" exports headers for all architectures
40 40 simultaneously. (This is mostly of interest to distribution maintainers,
41 41 who create an architecture-independent tarball from the resulting include
42   -directory.) Remember to provide the appropriate linux/asm directory via "mv"
43   -or "ln -s" before building a C library with headers exported this way.
  42 +directory.) You also can use HDR_ARCH_LIST to specify list of architectures.
  43 +Remember to provide the appropriate linux/asm directory via "mv" or "ln -s"
  44 +before building a C library with headers exported this way.
44 45  
45 46 The kernel header export infrastructure is maintained by David Woodhouse
46 47 <dwmw2@infradead.org>.
... ... @@ -13,7 +13,7 @@
13 13 fi
14 14 }
15 15  
16   -archs=$(ls ${srctree}/arch)
  16 +archs=${HDR_ARCH_LIST:-$(ls ${srctree}/arch)}
17 17  
18 18 for arch in ${archs}; do
19 19 case ${arch} in