Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 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 |