aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>2018-10-09 17:15:18 -0700
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2019-01-01 20:03:46 -0800
commit0ca9b770946c6877458832752bab17d5564fcb96 (patch)
tree91841d6f136e537d80c37c78b9268adb3a52eb58
parent82bff94fcceee449197ffa1ac851a7b5ea5df4ab (diff)
downloadmeta-xilinx-0ca9b770946c6877458832752bab17d5564fcb96.tar.gz
meta-xilinx-0ca9b770946c6877458832752bab17d5564fcb96.tar.bz2
meta-xilinx-0ca9b770946c6877458832752bab17d5564fcb96.zip
newlib: Add xilinx linker to newlib and libgloss
Modifies the CC variable so the Xilinx linker is found correctly when building newlib and libgloss. Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r--meta-xilinx-standalone/recipes-standalone/newlib/libgloss_3.0.0.bbappend6
-rw-r--r--meta-xilinx-standalone/recipes-standalone/newlib/newlib_3.0.0.bbappend4
2 files changed, 10 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/recipes-standalone/newlib/libgloss_3.0.0.bbappend b/meta-xilinx-standalone/recipes-standalone/newlib/libgloss_3.0.0.bbappend
index c2af4f9..fc4db88 100644
--- a/meta-xilinx-standalone/recipes-standalone/newlib/libgloss_3.0.0.bbappend
+++ b/meta-xilinx-standalone/recipes-standalone/newlib/libgloss_3.0.0.bbappend
@@ -1,3 +1,9 @@
+do_configure_prepend_microblaze() {
+ # hack for microblaze, which needs xilinx.ld to literally do any linking (its hard coded in its LINK_SPEC)
+ export CC="${CC} -L${S}/libgloss/microblaze"
+}
+
+
# We use libgloss as if it was libxil, to avoid linking issues
do_install_append_zynqmp-pmu(){
cp ${D}/${libdir}/libgloss.a ${D}/${libdir}/libxil.a
diff --git a/meta-xilinx-standalone/recipes-standalone/newlib/newlib_3.0.0.bbappend b/meta-xilinx-standalone/recipes-standalone/newlib/newlib_3.0.0.bbappend
new file mode 100644
index 0000000..e5249ab
--- /dev/null
+++ b/meta-xilinx-standalone/recipes-standalone/newlib/newlib_3.0.0.bbappend
@@ -0,0 +1,4 @@
+do_configure_prepend_microblaze() {
+ # hack for microblaze, which needs xilinx.ld to literally do any linking (its hard coded in its LINK_SPEC)
+ export CC="${CC} -L${S}/libgloss/microblaze"
+}