From: Rob Clark <robdclark@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 5/5] examples: add fallback memcpy
Date: Sat, 9 Sep 2017 06:47:43 -0400 [thread overview]
Message-ID: <20170909104746.5948-6-robdclark@gmail.com> (raw)
In-Reply-To: <20170909104746.5948-1-robdclark@gmail.com>
Solves build issue:
Building current source for 134 boards (12 threads, 1 job per thread)
arm: + lsxhl
+examples/api/vsprintf.o: In function `string16':
+lib/vsprintf.c:278: undefined reference to `memcpy'
+examples/api/uuid.o: In function `uuid_bin_to_str':
+lib/uuid.c:197: undefined reference to `memcpy'
+lib/uuid.c:199: undefined reference to `memcpy'
+make[3]: *** [examples/api/demo] Error 1
+make[2]: *** [examples/api] Error 2
+make[1]: *** [examples] Error 2
+make: *** [sub-make] Error 2
133 0 1 /134 sheevaplug
Signed-off-by: Rob Clark <robdclark@gmail.com>
---
examples/api/glue.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/examples/api/glue.c b/examples/api/glue.c
index 8aabf32c89..575c1e55f3 100644
--- a/examples/api/glue.c
+++ b/examples/api/glue.c
@@ -416,3 +416,15 @@ void ub_display_clear(void)
{
syscall(API_DISPLAY_CLEAR, NULL);
}
+
+__weak void *memcpy(void *dest, const void *src, size_t size)
+{
+ unsigned char *dptr = dest;
+ const unsigned char *ptr = src;
+ const unsigned char *end = src + size;
+
+ while (ptr < end)
+ *dptr++ = *ptr++;
+
+ return dest;
+}
--
2.13.5
next prev parent reply other threads:[~2017-09-09 10:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-09 10:47 [U-Boot] [PATCH v2 0/5] vsprintf and short-wchar Rob Clark
2017-09-09 10:47 ` [U-Boot] [PATCH v2 1/5] kbuild: Enable -fshort-wchar Rob Clark
2017-09-11 1:57 ` Masahiro Yamada
2017-09-13 2:28 ` [U-Boot] [U-Boot,v2,1/5] " Tom Rini
2017-09-09 10:47 ` [U-Boot] [PATCH v2 2/5] lib: add some utf16 handling helpers Rob Clark
2017-09-11 14:13 ` Alexander Graf
2017-09-11 14:34 ` Rob Clark
2017-09-11 14:41 ` Alexander Graf
2017-09-13 2:28 ` [U-Boot] [U-Boot,v2,2/5] " Tom Rini
2017-09-09 10:47 ` [U-Boot] [PATCH v2 3/5] vsprintf.c: add UTF-16 string (%ls) support Rob Clark
2017-09-12 12:29 ` Simon Glass
2017-09-13 2:28 ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-09-09 10:47 ` [U-Boot] [PATCH v2 4/5] vsprintf.c: add GUID printing Rob Clark
2017-09-12 12:28 ` Simon Glass
2017-09-13 2:28 ` [U-Boot] [U-Boot,v2,4/5] " Tom Rini
2017-09-09 10:47 ` Rob Clark [this message]
2017-09-13 2:28 ` [U-Boot] [U-Boot,v2,5/5] examples: add fallback memcpy Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170909104746.5948-6-robdclark@gmail.com \
--to=robdclark@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox