* [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
* [U-Boot] example: api: ARM example needs memset
2016-12-31 18:05 [U-Boot] [PATCH] example: api: ARM example needs memset Emmanuel Vadot
@ 2017-01-02 21:30 ` Tom Rini
2017-01-03 7:35 ` Emmanuel Vadot
0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2017-01-02 21:30 UTC (permalink / raw)
To: u-boot
On Sat, Dec 31, 2016 at 07:05:50PM +0100, Emmanuel Vadot wrote:
> 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>
This patch isn't quite correct. Not all cases of ARM will have the
optimized memset available to them (currently), so we can't apply this
today. I'm going to re-examine this post release when I'm going to have
optimized memset/memcpy more widely available on ARM, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170102/6fa252ac/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] example: api: ARM example needs memset
2017-01-02 21:30 ` [U-Boot] " Tom Rini
@ 2017-01-03 7:35 ` Emmanuel Vadot
0 siblings, 0 replies; 3+ messages in thread
From: Emmanuel Vadot @ 2017-01-03 7:35 UTC (permalink / raw)
To: u-boot
On Mon, 2 Jan 2017 16:30:05 -0500
Tom Rini <trini@konsulko.com> wrote:
> On Sat, Dec 31, 2016 at 07:05:50PM +0100, Emmanuel Vadot wrote:
>
> > 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>
>
> This patch isn't quite correct. Not all cases of ARM will have the
> optimized memset available to them (currently), so we can't apply this
> today. I'm going to re-examine this post release when I'm going to have
> optimized memset/memcpy more widely available on ARM, thanks!
>
> --
> Tom
Hi Tom,
Mhm right, I'll admit I've only tested the board I have.
We'll just use this patch on FreeBSD for now, it seems we are the only
consumer of the API so we hit errors that nobody sees.
Thanks !
--
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
^ permalink raw reply [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