diff options
author | Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> | 2018-03-26 17:20:25 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-15 08:54:15 +0100 |
commit | fe490ff829440b94124317759d856e2e2daf5047 (patch) | |
tree | bdef2b03e3bcbd70142c71b388592da1e367437f /meta/recipes-core/newlib/libgloss/fix_makefile_include_arm_h.patch | |
parent | cec85a6fcadc24fd266fa34631cb095e0a773c1a (diff) | |
download | openembedded-core-contrib-fe490ff829440b94124317759d856e2e2daf5047.tar.gz |
newlib: Adds newlib and libgloss recipes
Newlib is a C library that is intended to be used on embedded systems.
It is a conglomeration of several library parts, all under free software
licenses that make them easily usable on embedded products.
Newlib provides a C library alternative that can run on baremetal, mainly
for resource constrained devices.
Libgloss is the BSP part of the C library, which can be easily modified
to port for new hardware platforms.
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Diffstat (limited to 'meta/recipes-core/newlib/libgloss/fix_makefile_include_arm_h.patch')
-rw-r--r-- | meta/recipes-core/newlib/libgloss/fix_makefile_include_arm_h.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-core/newlib/libgloss/fix_makefile_include_arm_h.patch b/meta/recipes-core/newlib/libgloss/fix_makefile_include_arm_h.patch new file mode 100644 index 0000000000..7645be7314 --- /dev/null +++ b/meta/recipes-core/newlib/libgloss/fix_makefile_include_arm_h.patch @@ -0,0 +1,30 @@ +Upstream-Status: Inappropriate [OE-Specific] + +When trying to build libgloss for an arm target, the build system +complains about missing some include files: + +| fatal error: acle-compiat.h: No such file or directory +| #include "acle-compat.h" +| ^~~~~~~~~~~~~~~ +| compilation terminated. + +These include files come from the newlib source, but since we +are building libgloss separately from newlib, libgloss is unaware +of where they are, this patch fixes the INCLUDES so the build system +can find such files. + +Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> + +Index: newlib-3.0.0/libgloss/config/default.mh +=================================================================== +--- newlib-3.0.0.orig/libgloss/config/default.mh ++++ newlib-3.0.0/libgloss/config/default.mh +@@ -1,7 +1,7 @@ + NEWLIB_CFLAGS = `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/newlib/targ-include -I${srcroot}/newlib/libc/include; fi` + NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/ -L${objroot}/newlib/; fi` + +-INCLUDES = -I. -I$(srcdir)/.. ++INCLUDES = -I. -I$(srcdir)/.. -I$(srcdir)/../newlib/libc/machine/arm + # Note that when building the library, ${MULTILIB} is not the way multilib + # options are passed; they're passed in $(CFLAGS). + CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS} |