diff options
Diffstat (limited to 'meta-vitis-tc/recipes-devtools/gcc/mb-convert-head.sh')
| -rwxr-xr-x | meta-vitis-tc/recipes-devtools/gcc/mb-convert-head.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-vitis-tc/recipes-devtools/gcc/mb-convert-head.sh b/meta-vitis-tc/recipes-devtools/gcc/mb-convert-head.sh new file mode 100755 index 00000000..b59dff1e --- /dev/null +++ b/meta-vitis-tc/recipes-devtools/gcc/mb-convert-head.sh | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #! /bin/bash | ||
| 2 | |||
| 3 | # Call using: | ||
| 4 | #../microblaze/sysroots/x86_64-oesdk-linux/usr/bin/microblaze-xilinx-elf/microblaze-xilinx-elf-gcc -print-multi-lib | mb-convert-head.sh | ||
| 5 | |||
| 6 | # Then copy the output into the special microblaze-tc BSP | ||
| 7 | |||
| 8 | sed -e 's,;, ,' | | ||
| 9 | while read mlib args ; do | ||
| 10 | if [ $mlib = '.' ]; then | ||
| 11 | continue | ||
| 12 | fi | ||
| 13 | multilib="libmb$(echo $mlib | sed -e 's,/,,g')" | ||
| 14 | |||
| 15 | echo 'MULTILIBS += "multilib:'${multilib}'"' | ||
| 16 | done | ||
