Re: [PATCH 2/7] kbuild: doc: replace arch/$(ARCH)/ with arch/$(SRCARCH)/

Randy Dunlap
2020-11-23T17:39:33Z

Hi-

On 11/22/20 8:53 PM, Masahiro Yamada wrote:

> ---
>
> Documentation/kbuild/makefiles.rst | 61 +++++++++++++++++-------------
> Documentation/kbuild/modules.rst | 2 +-
> 2 files changed, 35 insertions(+), 28 deletions(-)
>
> diff --git a/Documentation/kbuild/makefiles.rst b/Documentation/kbuild/makefiles.rst
> index a7b874097a91..2a5232b321af 100644
> --- a/Documentation/kbuild/makefiles.rst
> +++ b/Documentation/kbuild/makefiles.rst

>
> 9 Kbuild Variables
> ==================
> @@ -1564,6 +1561,16 @@ The top Makefile exports the following variables:
>
> make ARCH=m68k ...
>
> + SRCARCH
> + This variable speficifies the directory in arch/ to build.

specifies

> +
> + ARCH and SRCARCH may not necessarily match. A couple of arch
> + directories are biarch, that is, a single arch/*/ directory supports
> + both 32-bit and 64-bit.
> +
> + For example, you can pass in ARCH=i386, ARCH=x86_64, or ARCH=x86.
> + For all of them, SRCARCH=x86 because arch/x86/ supports both i386 and
> + x86_64.
>
> INSTALL_PATH
> This variable defines a place for the arch Makefiles to install

Reviewed-by: Randy Dunlap <rdunlap@infradead.org>

thanks.
--
~Randy