Skip to content

Commit

Permalink
kbuild: introduce HDR_ARCH_LIST for headers_install_all
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kiryl authored and michal42 committed Dec 14, 2010
1 parent 8990c1b commit f682030
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Documentation/make/headers_install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>.
2 changes: 1 addition & 1 deletion scripts/headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f682030

Please sign in to comment.