[PATCH 4/9] arm: Centralize fixed register logic
Simon Glass
sjg at chromium.org
Fri Apr 7 07:31:24 CEST 2023
On Thu, 6 Apr 2023 at 11:50, Tom Rini <trini at konsulko.com> wrote:
>
> When building for ARM64, we need to pass -ffixed-x18 and otherwise pass
> -ffixed-r9. Rather than having this logic in two places, we can do this
> once in arch/arm/config.mk. Further, while gcc will ignore being passed
> both -ffixed-r9 and -ffixed-x18 and simply use -ffixed-x18, clang will
> note that -ffixed-r9 is not used. Remove this duplication to also remove
> the warning.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
> arch/arm/config.mk | 10 ++++++++--
> arch/arm/cpu/armv8/config.mk | 1 -
> 2 files changed, 8 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list