How to get a smaller toolchain from scratch?

前端 未结 1 1110
萌比男神i
萌比男神i 2020-12-18 14:00

I have built a custom toolchain from scratch for a MIPS 24kc (dragino) target platform, using gcc-6.3.0, musl-1.1.16 and binutils-2.27. That toolchain is completely function

1条回答
  •  星月不相逢
    2020-12-18 14:21

    Fixing this issue has been simpler than expected... All toolchain binaries are installed non-stripped. So this can be fixed calling

    $ make install-strip
    

    instead of

    $ make install
    

    when you install cross-gcc (stage 2).

    Size of generated toolchain is 122MB, what is nice compared with 557M of the original toolchain. So this issue is fixed! Hope this information will be useful for somebody else in the future. Thank you!

    0 讨论(0)
提交回复
热议问题