]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: doc: replace arch/$(ARCH)/ with arch/$(SRCARCH)/
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 28 Nov 2020 11:51:03 +0000 (20:51 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 21 Dec 2020 04:56:58 +0000 (13:56 +0900)
commit71d579e02b7f1df87d13357cbd7af8a3bcf01411
tree84bbeaa75e8d0e137d4ef486c0e5fa0359405fd2
parent92d7bcde3e8037f2a88178668c426bb0908292da
kbuild: doc: replace arch/$(ARCH)/ with arch/$(SRCARCH)/

Precisely speaking, the arch directory is specified by $(SRCARCH),
not $(ARCH).

In old days, $(ARCH) actually matched to the arch directory because
32-bit and 64-bit were supported as separate architectures.

Most architectures (except arm/arm64) were unified like follows:

    arch/i386, arch/x86_64    ->  arch/x86
    arch/sh, arch/sh64        ->  arch/sh
    arch/sparc, arch/sparc64  ->  arch/sparc

To not break the user interface, commit ff0f62659133 ("Kbuild: allow
arch/xxx to use a different source path") introduced SRCARCH to point
to the arch directory, still allowing to pass in the former ARCH=i386
or ARCH=x86_64.

Update the documents for preciseness, and add the explanation of SRCARCH.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Documentation/kbuild/makefiles.rst
Documentation/kbuild/modules.rst