Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kirill A. Shutemov and committed by
Michal Marek
f6820308 8990c1bc

+4 -3
+3 -2
Documentation/make/headers_install.txt
··· 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>.
+1 -1
scripts/headers.sh
··· 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