]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: Centralize fixed register logic
authorTom Rini <trini@konsulko.com>
Wed, 5 Apr 2023 23:48:54 +0000 (19:48 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 19:31:27 +0000 (15:31 -0400)
commita27c8ea7f7fc269c2bf40468568a387d9e8db976
treed15f1551a322e202bee5c30496a3885b18456ccb
parent4ad6850d2b4ad0de6eedffc781d8152ec736e234
arm: Centralize fixed register logic

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@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/config.mk
arch/arm/cpu/armv8/config.mk