diff options
-rw-r--r-- | Documentation/make/headers_install.txt | 5 | ||||
-rwxr-xr-x | 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 f2481cabffcb..951eb9f1e040 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 | |||
39 | The command "make headers_install_all" exports headers for all architectures | 39 | The command "make headers_install_all" exports headers for all architectures |
40 | simultaneously. (This is mostly of interest to distribution maintainers, | 40 | simultaneously. (This is mostly of interest to distribution maintainers, |
41 | who create an architecture-independent tarball from the resulting include | 41 | who create an architecture-independent tarball from the resulting include |
42 | directory.) Remember to provide the appropriate linux/asm directory via "mv" | 42 | directory.) You also can use HDR_ARCH_LIST to specify list of architectures. |
43 | or "ln -s" before building a C library with headers exported this way. | 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 | The kernel header export infrastructure is maintained by David Woodhouse | 46 | The kernel header export infrastructure is maintained by David Woodhouse |
46 | <dwmw2@infradead.org>. | 47 | <dwmw2@infradead.org>. |
diff --git a/scripts/headers.sh b/scripts/headers.sh index 1ddcdd38d97f..978b42b3acd7 100755 --- a/scripts/headers.sh +++ b/scripts/headers.sh | |||
@@ -13,7 +13,7 @@ do_command() | |||
13 | fi | 13 | fi |
14 | } | 14 | } |
15 | 15 | ||
16 | archs=$(ls ${srctree}/arch) | 16 | archs=${HDR_ARCH_LIST:-$(ls ${srctree}/arch)} |
17 | 17 | ||
18 | for arch in ${archs}; do | 18 | for arch in ${archs}; do |
19 | case ${arch} in | 19 | case ${arch} in |