[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v7 05/11] rules.mak: Add base-arch() rule
From: |
Richard Henderson |
Subject: |
Re: [PATCH v7 05/11] rules.mak: Add base-arch() rule |
Date: |
Fri, 5 Jun 2020 14:52:07 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
On 6/5/20 10:58 AM, Philippe Mathieu-Daudé wrote:
> Add a rule to return the base architecture for a QEMU target.
>
> The current list of TARGET_BASE_ARCH is:
>
> $ git grep TARGET_BASE_ARCH configure
> configure:7785:TARGET_BASE_ARCH=""
> configure:7795: TARGET_BASE_ARCH=i386
> configure:7813: TARGET_BASE_ARCH=arm
> configure:7846: TARGET_BASE_ARCH=mips
> configure:7854: TARGET_BASE_ARCH=mips
> configure:7864: TARGET_BASE_ARCH=openrisc
> configure:7871: TARGET_BASE_ARCH=ppc
> configure:7879: TARGET_BASE_ARCH=ppc
> configure:7887: TARGET_BASE_ARCH=ppc
> configure:7894: TARGET_BASE_ARCH=riscv
> configure:7900: TARGET_BASE_ARCH=riscv
> configure:7920: TARGET_BASE_ARCH=sparc
> configure:7925: TARGET_BASE_ARCH=sparc
>
> The rule can be tested calling 'print-base-arch-$TARGET':
>
> $ make \
> print-base-arch-openrisc \
> print-base-arch-aarch64_be \
> print-base-arch-x86_64 \
> print-base-arch-mips64el \
> print-base-arch-ppc64 \
> print-base-arch-riscv64
> openrisc=openrisc
> aarch64_be=arm
> x86_64=i386
> mips64el=mips
> ppc64=ppc
> riscv64=riscv
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> rules.mak | 35 +++++++++++++++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
- [PATCH v7 00/11] accel: Allow targets to use Kconfig, Philippe Mathieu-Daudé, 2020/06/05
- [PATCH v7 01/11] MAINTAINERS: Fix KVM path expansion glob, Philippe Mathieu-Daudé, 2020/06/05
- [PATCH v7 02/11] MAINTAINERS: Add an 'overall' entry for accelerators, Philippe Mathieu-Daudé, 2020/06/05
- [PATCH v7 04/11] rules.mak: Add strequal() and startswith() rules, Philippe Mathieu-Daudé, 2020/06/05
- [PATCH v7 05/11] rules.mak: Add base-arch() rule, Philippe Mathieu-Daudé, 2020/06/05
- Re: [PATCH v7 05/11] rules.mak: Add base-arch() rule,
Richard Henderson <=
- [PATCH v7 03/11] MAINTAINERS: Add an entry for the HAX accelerator, Philippe Mathieu-Daudé, 2020/06/05
- [PATCH v7 06/11] Makefile: Remove dangerous EOL trailing backslash, Philippe Mathieu-Daudé, 2020/06/05
- [PATCH v7 07/11] Makefile: Write MINIKCONF variables as one entry per line, Philippe Mathieu-Daudé, 2020/06/05
- [PATCH v7 08/11] accel/Kconfig: Extract accel selectors into their own config, Philippe Mathieu-Daudé, 2020/06/05
- [PATCH v7 09/11] accel/Kconfig: Add the TCG selector, Philippe Mathieu-Daudé, 2020/06/05
- [PATCH v7 10/11] Makefile: Allow target-specific optional Kconfig, Philippe Mathieu-Daudé, 2020/06/05
- [PATCH v7 11/11] accel/tcg: Add stub for probe_access(), Philippe Mathieu-Daudé, 2020/06/05