public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] example: api: ARM example needs memset
@ 2016-12-31 18:05 Emmanuel Vadot
  2017-01-02 21:30 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Emmanuel Vadot @ 2016-12-31 18:05 UTC (permalink / raw)
  To: u-boot

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@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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-03  7:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-31 18:05 [U-Boot] [PATCH] example: api: ARM example needs memset Emmanuel Vadot
2017-01-02 21:30 ` [U-Boot] " Tom Rini
2017-01-03  7:35   ` Emmanuel Vadot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox