[prev in list] [next in list] [prev in thread] [next in thread] 

List:       u-boot
Subject:    [U-Boot] [PATCH] example: api: ARM example needs memset
From:       Emmanuel Vadot <manu () bidouilliste ! com>
Date:       2016-12-31 18:05:50
Message-ID: 20161231180550.45120-1-manu () bidouilliste ! com
[Download RAW message or body]

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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic