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

kbuild : Fix documentation of INSTALL_HDR_PATH

The header install makefile creates an 'include' directory inside
INSTALL_HDR_PATH and appending include to the path results in headers
being installed to include/include.

Don't recommend appending include to the path as makefile already does
this.

Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Anish Bhatt and committed by
Jonathan Corbet
ed45d403 f8785d94

+6 -3
+6 -3
Documentation/kbuild/headers_install.txt
··· 24 24 kernel source code (or using a standard out-of-tree build). It takes two 25 25 optional arguments: 26 26 27 - make headers_install ARCH=i386 INSTALL_HDR_PATH=/usr/include 27 + make headers_install ARCH=i386 INSTALL_HDR_PATH=/usr 28 28 29 29 ARCH indicates which architecture to produce headers for, and defaults to the 30 30 current architecture. The linux/asm directory of the exported kernel headers ··· 33 33 34 34 ls -d include/asm-* | sed 's/.*-//' 35 35 36 - INSTALL_HDR_PATH indicates where to install the headers. It defaults to 37 - "./usr/include". 36 + INSTALL_HDR_PATH indicates where to install the headers. It defaults to 37 + "./usr". 38 + 39 + An 'include' directory is automatically created inside INSTALL_HDR_PATH and 40 + headers are installed in 'INSTALL_HDR_PATH/include'. 38 41 39 42 The command "make headers_install_all" exports headers for all architectures 40 43 simultaneously. (This is mostly of interest to distribution maintainers,