summaryrefslogtreecommitdiff
path: root/arch/riscv/lib/Makefile
diff options
context:
space:
mode:
authorYu Chien Peter Lin <peterlin@andestech.com>2023-08-09 18:49:30 +0800
committerLeo Yu-Chi Liang <ycliang@andestech.com>2023-10-19 17:29:50 +0800
commitbc5a50452bd42029d6587e1596b44ff235655e90 (patch)
tree30cf46e0c2e1415feaf8f1de62821f460771e56f /arch/riscv/lib/Makefile
parent03a4504659bf8b0a1945a79696ae9a2b7ca4938a (diff)
downloadu-boot-bc5a50452bd42029d6587e1596b44ff235655e90.tar.gz
u-boot-bc5a50452bd42029d6587e1596b44ff235655e90.tar.bz2
u-boot-bc5a50452bd42029d6587e1596b44ff235655e90.zip
riscv: Add Zbb support for building U-Boot
This patch adds ISA string to the -march to generate zbb instructions for U-Boot binaries, along with optimized string functions introduced from Linux kernel. Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'arch/riscv/lib/Makefile')
-rw-r--r--arch/riscv/lib/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile
index 02c4d8fcc6..9a05b662fd 100644
--- a/arch/riscv/lib/Makefile
+++ b/arch/riscv/lib/Makefile
@@ -42,5 +42,8 @@ extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC)
obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMSET) += memset.o
obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMMOVE) += memmove.o
obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMCPY) += memcpy.o
+obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_STRLEN) += strlen_zbb.o
+obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_STRCMP) += strcmp_zbb.o
+obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_STRNCMP) += strncmp_zbb.o
obj-$(CONFIG_$(SPL_TPL_)SEMIHOSTING) += semihosting.o