Skip to content

Commit f682030

Browse files
kirylmichal42
authored andcommitted
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>
1 parent 8990c1b commit f682030

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎Documentation/make/headers_install.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ INSTALL_HDR_PATH indicates where to install the headers. It defaults to
3939
The command "make headers_install_all" exports headers for all architectures
4040
simultaneously. (This is mostly of interest to distribution maintainers,
4141
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.
4445

4546
The kernel header export infrastructure is maintained by David Woodhouse
4647
<dwmw2@infradead.org>.

‎scripts/headers.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ do_command()
1313
fi
1414
}
1515

16-
archs=$(ls ${srctree}/arch)
16+
archs=${HDR_ARCH_LIST:-$(ls ${srctree}/arch)}
1717

1818
for arch in ${archs}; do
1919
case ${arch} in

0 commit comments

Comments
 (0)