diff options
Diffstat (limited to 'examples/api/Makefile')
| -rw-r--r-- | examples/api/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/api/Makefile b/examples/api/Makefile index ec1643e4875..722c7e45904 100644 --- a/examples/api/Makefile +++ b/examples/api/Makefile @@ -22,6 +22,9 @@ else LOAD_ADDR = 0x80200000 endif endif +ifeq ($(ARCH),riscv) +LOAD_ADDR = 0x84000000 +endif # Resulting ELF and binary exectuables will be named demo and demo.bin extra-y = demo @@ -43,8 +46,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 |
