diff options
author | Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> | 2020-01-16 00:34:09 -0800 |
---|---|---|
committer | Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> | 2020-01-16 00:46:32 -0800 |
commit | e0674a48b8d0ac8e96f72b4447c7607857b14f9c (patch) | |
tree | 996fc317a87e3a0fec2282c6763ffb3326541665 | |
parent | 5f54d64fb3540cd17ede11a54211142dded27f21 (diff) | |
download | meta-xilinx-e0674a48b8d0ac8e96f72b4447c7607857b14f9c.tar.gz |
gcc-runtime: Enable bulding libsdtc++ for baremetal applications
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
-rw-r--r-- | meta-xilinx-standalone/recipes-standalone/gcc/gcc-runtime_%.bbappend | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/recipes-standalone/gcc/gcc-runtime_%.bbappend b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-runtime_%.bbappend new file mode 100644 index 00000000..5400aa0c --- /dev/null +++ b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-runtime_%.bbappend | |||
@@ -0,0 +1,24 @@ | |||
1 | # Configure fails on multilib when using a cache file, this re-sets it to nothing | ||
2 | EXTRA_OECONF_append = " --cache-file=" | ||
3 | |||
4 | # Dont build libitm, etc. | ||
5 | RUNTIMETARGET_xilinx-standalone = "libstdc++-v3" | ||
6 | |||
7 | # These overrides can potentially be cleaned (e.g. use just one) if it doesnt affect nativesdk class | ||
8 | EXTRA_OECONF_remove_xilinx-standalone_aarch64 = "--enable-symvers=gnu" | ||
9 | EXTRA_OECONF_remove_xilinx-standalone_arm = "--enable-symvers=gnu" | ||
10 | |||
11 | EXTRA_OECONF_append_xilinx-standalone_aarch64 = " --enable-multilib --with-newlib" | ||
12 | EXTRA_OECONF_append_xilinx-standalone_cortexr5 = " --enable-multilib --with-newlib --with-multilib-list=rmprofile" | ||
13 | |||
14 | # Does cortexa9 needs multilib? | ||
15 | |||
16 | # Are the py files necessary? | ||
17 | FILES_libstdc++-staticdev += " \ | ||
18 | ${libdir}/libstdc++*.a* \ | ||
19 | ${libdir}/**/libsupc++.a* \ | ||
20 | ${libdir}/**/libstdc++*.a* \ | ||
21 | ${libdir}/**/libsupc++.a* \ | ||
22 | ${libdir}/**/**/**/libstdc++*.a* \ | ||
23 | ${libdir}/**/**/**/libsupc++.a* \ | ||
24 | " | ||