summaryrefslogtreecommitdiff
path: root/examples/api
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-11-23 09:47:53 +0100
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2025-01-05 02:30:47 +0100
commite18186686fc6c4f1b7ef04a5f77b74fcd44cb721 (patch)
tree5eccd95522cf3a3096d92b97fad4e3024a8fd928 /examples/api
parent9eb59201ab60b7ca3af41cd3000f8ff823ae5f02 (diff)
examples: use architecture specific memset() on RISC-V
Build the architecture specific memset() if configured. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'examples/api')
-rw-r--r--examples/api/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/api/Makefile b/examples/api/Makefile
index ec1643e4875..13e859cf080 100644
--- a/examples/api/Makefile
+++ b/examples/api/Makefile
@@ -43,8 +43,8 @@ EXT_COBJ-y += lib/vsprintf.o
EXT_COBJ-y += lib/charset.o
EXT_COBJ-$(CONFIG_LIB_UUID) += lib/uuid.o
EXT_SOBJ-$(CONFIG_PPC) += arch/powerpc/lib/ppcstring.o
-ifeq ($(ARCH),arm)
-EXT_SOBJ-$(CONFIG_USE_ARCH_MEMSET) += arch/arm/lib/memset.o
+ifneq ($(CONFIG_ARM)$(CONFIG_RISCV),)
+EXT_SOBJ-$(CONFIG_USE_ARCH_MEMSET) += arch/$(ARCH)/lib/memset.o
endif
# Create a list of object files to be compiled