[U-Boot] [PATCH] example: api: ARM example needs memset
Emmanuel Vadot
manu at bidouilliste.com
Sat Dec 31 19:05:50 CET 2016
Add memset.S to the needed object for the API example and do not
hardcode powerpc as the arch for library assembly files.
Signed-off-by: Emmanuel Vadot <manu at bidouilliste.com>
---
examples/api/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/examples/api/Makefile b/examples/api/Makefile
index 6cffee7465..a1bb6eff95 100644
--- a/examples/api/Makefile
+++ b/examples/api/Makefile
@@ -34,7 +34,10 @@ EXT_COBJ-y += lib/div64.o
EXT_COBJ-y += lib/string.o
EXT_COBJ-y += lib/time.o
EXT_COBJ-y += lib/vsprintf.o
+EXT_SOBJDIR-$(CONFIG_PPC) = arch/powerpc
+EXT_SOBJDIR-$(CONFIG_ARM) = arch/arm
EXT_SOBJ-$(CONFIG_PPC) += arch/powerpc/lib/ppcstring.o
+EXT_SOBJ-$(CONFIG_ARM) += arch/arm/lib/memset.o
# Create a list of object files to be compiled
OBJS := $(OBJ-y) $(notdir $(EXT_COBJ-y) $(EXT_SOBJ-y))
@@ -60,5 +63,5 @@ $(addprefix $(obj)/,$(notdir $(EXT_COBJ-y))): $(obj)/%.o: lib/%.c FORCE
$(call if_changed_rule,cc_o_c)
# Rule to build architecture-specific library assembly files
-$(addprefix $(obj)/,$(notdir $(EXT_SOBJ-y))): $(obj)/%.o: arch/powerpc/lib/%.S FORCE
+$(addprefix $(obj)/,$(notdir $(EXT_SOBJ-y))): $(obj)/%.o: $(EXT_SOBJDIR-y)/lib/%.S FORCE
$(call if_changed_dep,as_o_S)
--
2.11.0
More information about the U-Boot
mailing list