diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-07-03 02:20:11 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2022-12-04 16:07:34 +0100 |
commit | 1e764ea7df11e1d51e60336f420ca73480b8c055 (patch) | |
tree | 508c123405ce4b1eb2b5ba0cb34f7fc228ce8489 /tools/cmake | |
parent | 997ab5437386493aab1ffa9a9e99061a6a4cba4b (diff) | |
download | upstream-1e764ea7df11e1d51e60336f420ca73480b8c055.tar.gz upstream-1e764ea7df11e1d51e60336f420ca73480b8c055.tar.bz2 upstream-1e764ea7df11e1d51e60336f420ca73480b8c055.zip |
scripts: ext-toolchain: fix wrong prefix in print_config generation
The parsed prefix in print_config is wrong and this produce broken
generated .config that won't work with any external toolchain.
Currently the prefix from a CC of
'arm-openwrt-linux-muslgnueabi-gcc-12.1.0'
produce a prefix
'arm-openwrt-linux-muslgnueabi-gcc-'
This is wrong as the real prefix should be
'arm-openwrt-linux-muslgnueabi-'
This is probably caused by a change in how the toolchain is now handled
that now append also the gcc version. Probably in ancient days the
version wasn't part of the name and the prefix generation stripped the
'-gcc' instead of the gcc version.
Fix this and correctly strip the gcc version and the gcc suffix to
correctly call toolchain bins.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 53c293262fce844c8291ab82e6726a8489d3c57b)
Diffstat (limited to 'tools/cmake')
0 files changed, 0 insertions, 0 deletions