diff options
author | Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> | 2018-04-27 13:21:20 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-15 17:56:24 +0100 |
commit | 073dbcedf528ba817f828cc9d0a604a4c8c99927 (patch) | |
tree | d68895a09af47d2567a9f865dd96882becbb3262 /meta/classes/cross-canadian.bbclass | |
parent | 361f7a902d4a90c422c8aca1cc23eda55bd18a27 (diff) | |
download | poky-073dbcedf528ba817f828cc9d0a604a4c8c99927.tar.gz |
tclibc-newlib: Adds a new TCLIBC variant to build with newlib as C library
This patch adds the posibility to build using TCLIBC=newlib.
It allows users to build baremetal applications with the use of a
C library.
Newlib is a lightweight C library meant to be used on embedded systems,
it is meant to be easily portable for new platforms and to provide
basic functionality on them, by design, it provides stubs for some of
these core functions declared as weak, so they can be built correctly
and then linked against some other library which provides specifics
about the platform being used if need be, libgloss takes care of these
in some cases, but it can also be extended, this patch also allows the
user to easily add other libraries to it by adding them to
NEWLIB_EXTENDED for this specific reason.
(From OE-Core rev: 9f0570351a7b0877aa50efff5fe9a9ef368cb38f)
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cross-canadian.bbclass')
-rw-r--r-- | meta/classes/cross-canadian.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass index ee8aa6142a..acde331ef9 100644 --- a/meta/classes/cross-canadian.bbclass +++ b/meta/classes/cross-canadian.bbclass | |||
@@ -30,7 +30,7 @@ python () { | |||
30 | if d.getVar("MODIFYTOS") != "1": | 30 | if d.getVar("MODIFYTOS") != "1": |
31 | return | 31 | return |
32 | 32 | ||
33 | if d.getVar("TCLIBC") == "baremetal": | 33 | if d.getVar("TCLIBC") in [ 'baremetal', 'newlib' ]: |
34 | return | 34 | return |
35 | 35 | ||
36 | tos = d.getVar("TARGET_OS") | 36 | tos = d.getVar("TARGET_OS") |