File tree Expand file tree Collapse file tree
r/riscv64gc-unknown-smart-musl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 set_homepage (" https://musl.cc/" )
2727 set_description (" aarch64 embedded compiler for rt-smart." )
2828
29+ local version = os.getenv (" RT_XMAKE_TOOLCHAIN_AARCH64_VERSION" )
30+ local sha256 = os.getenv (" RT_XMAKE_TOOLCHAIN_AARCH64_SHA256" )
31+
2932 if is_host (" windows" ) then
30- add_urls (" http://117.143.63.254:9012/www/rt-smart/aarch64-linux-musleabi_for_i686-w64-mingw32_$(version).zip" )
33+ add_urls (
34+ " https://download-redirect.rt-thread.org/download/rt-smart/toolchains/aarch64-linux-musleabi_for_i686-w64-mingw32_$(version).zip" )
3135
32- add_versions (" 188177" , " 01dae6cea76959e7a2684630ca1c295e71ca65a288b4787a6595e93d45edba1e" )
36+ if (version and sha256 ) then
37+ add_versions (version , sha256 )
38+ else
39+ add_versions (" 188177" , " 01dae6cea76959e7a2684630ca1c295e71ca65a288b4787a6595e93d45edba1e" )
40+ end
3341 elseif is_host (" linux" ) then
3442 add_urls (
35- " http ://117.143.63.254:9012/www /rt-smart/aarch64-linux-musleabi_for_x86_64-pc-linux-gnu_$(version).tar.bz2" )
43+ " https ://download-redirect.rt-thread.org/download /rt-smart/toolchains /aarch64-linux-musleabi_for_x86_64-pc-linux-gnu_$(version).tar.bz2" )
3644
37- add_versions (" 188177" , " e4e2720c0269eb0b00231f865abe2340f1e994490dfbc3d8617eee48098dbc1d" )
45+ if (version and sha256 ) then
46+ add_versions (version , sha256 )
47+ else
48+ add_versions (" 188177" , " e4e2720c0269eb0b00231f865abe2340f1e994490dfbc3d8617eee48098dbc1d" )
49+ end
3850 end
3951
4052 on_install (" @windows" , " @linux|x86_64" , function (package )
Original file line number Diff line number Diff line change 1212--
1313-- Copyright (C) 2023-2023 RT-Thread Development Team
1414--
15- -- @author xqyjlj
15+ -- @author xqyjlj
1616-- @file xmake.lua
1717--
1818-- Change Logs:
2626 set_homepage (" https://musl.cc/" )
2727 set_description (" arm embedded compiler for rt-smart." )
2828
29+ local version = os.getenv (" RT_XMAKE_TOOLCHAIN_ARM_VERSION" )
30+ local sha256 = os.getenv (" RT_XMAKE_TOOLCHAIN_ARM_SHA256" )
31+
2932 if is_host (" windows" ) then
30- add_urls (" http://117.143.63.254:9012/www/rt-smart/arm-linux-musleabi_for_i686-w64-mingw32_$(version).zip" )
33+ add_urls (
34+ " https://download-redirect.rt-thread.org/download/rt-smart/toolchains/arm-linux-musleabi_for_i686-w64-mingw32_$(version).zip" )
3135
32- add_versions (" 174629" , " c059a516917a5703456c8414eecb29f1456560ff60707c8a5b352f5ef58bdb72" )
36+ if (version and sha256 ) then
37+ add_versions (version , sha256 )
38+ else
39+ add_versions (" 174629" , " c059a516917a5703456c8414eecb29f1456560ff60707c8a5b352f5ef58bdb72" )
40+ end
3341 elseif is_host (" linux" ) then
3442 add_urls (
35- " http ://117.143.63.254:9012/www /rt-smart/arm-linux-musleabi_for_x86_64-pc-linux-gnu_$(version).tar.bz2" )
43+ " https ://download-redirect.rt-thread.org/download /rt-smart/toolchains /arm-linux-musleabi_for_x86_64-pc-linux-gnu_$(version).tar.bz2" )
3644
37- add_versions (" 174629" , " b187482fa807fbfd822eb79ee5a8c0e4e576ad3de4aa088d73b12e21c8de174a" )
45+ if (version and sha256 ) then
46+ add_versions (version , sha256 )
47+ else
48+ add_versions (" 174629" , " b187482fa807fbfd822eb79ee5a8c0e4e576ad3de4aa088d73b12e21c8de174a" )
49+ end
3850 end
3951
4052 on_install (" @windows" , " @linux|x86_64" , function (package )
Original file line number Diff line number Diff line change 1212--
1313-- Copyright (C) 2023-2023 RT-Thread Development Team
1414--
15- -- @author xqyjlj
15+ -- @author xqyjlj
1616-- @file xmake.lua
1717--
1818-- Change Logs:
2626 set_homepage (" https://musl.cc/" )
2727 set_description (" riscv64 embedded compiler for rt-smart." )
2828
29+ local version = os.getenv (" RT_XMAKE_TOOLCHAIN_RISCV64GC_VERSION" )
30+ local sha256 = os.getenv (" RT_XMAKE_TOOLCHAIN_RISCV64GC_SHA256" )
31+
2932 if is_host (" windows" ) then
3033 add_urls (
31- " https://download.rt-thread.org/rt-smart/riscv64 /riscv64-linux-musleabi_for_i686-w64-mingw32_$(version).zip" )
34+ " https://download-redirect .rt-thread.org/download/ rt-smart/toolchains /riscv64-linux-musleabi_for_i686-w64-mingw32_$(version).zip" )
3235
33- add_versions (" 180881" , " 7b385fe663559985d70936832dc0f6c017ce3bddbdbfaff673996cc3a20faf6c" )
36+ if (version and sha256 ) then
37+ add_versions (version , sha256 )
38+ else
39+ add_versions (" 180881" , " 7b385fe663559985d70936832dc0f6c017ce3bddbdbfaff673996cc3a20faf6c" )
40+ end
3441 elseif is_host (" linux" ) then
3542 add_urls (
36- " https://download.rt-thread.org/rt-smart/riscv64 /riscv64-linux-musleabi_for_x86_64-pc-linux-gnu_$(version).tar.bz2" )
43+ " https://download-redirect .rt-thread.org/download/ rt-smart/toolchains /riscv64-linux-musleabi_for_x86_64-pc-linux-gnu_$(version).tar.bz2" )
3744
38- add_versions (" 180881" , " 21ad2cbd9b4e73e61efd8211b88c3989acaa033a374ac2f26b4e15a7ec7370b6" )
45+ if (version and sha256 ) then
46+ add_versions (version , sha256 )
47+ else
48+ add_versions (" 180881" , " 21ad2cbd9b4e73e61efd8211b88c3989acaa033a374ac2f26b4e15a7ec7370b6" )
49+ end
3950 end
4051
4152 on_install (" @windows" , " @linux|x86_64" , function (package )
Original file line number Diff line number Diff line change 1212--
1313-- Copyright (C) 2023-2023 RT-Thread Development Team
1414--
15- -- @author xqyjlj
15+ -- @author xqyjlj
1616-- @file xmake.lua
1717--
1818-- Change Logs:
2727 set_description (" x86_64 cross compiler for linux." )
2828
2929 if is_host (" windows" ) then
30- add_urls (" https://download.rt-thread.org/rt-smart/native/$(version)/x86_64-linux-musl-cross.win.zip" )
30+ add_urls (
31+ " https://download-redirect.rt-thread.org/download/rt-smart/native/toolchains/x86_64-linux-musl-cross-$(version).win.zip" )
3132 add_versions (" 20210202" , " 3a13f8bb3694b26ffbe3fe97d45db6cabadb662161cd5fc9cc80fc0adfb02091" )
3233 elseif is_host (" linux" ) then
33- add_urls (" https://download.rt-thread.org/rt-smart/native/$(version)/x86_64-linux-musl-cross.linux.tgz" )
34+ add_urls (
35+ " https://download-redirect.rt-thread.org/download/rt-smart/native/toolchains/x86_64-linux-musl-cross-$(version).linux.tgz" )
3436 add_versions (" 20210202" , " 37ef7b69d4c4a20bb2c5e7e01ec7c60c1ac7de2c33b029eaa6c0d8b9e1869c6b" )
3537 end
3638
You can’t perform that action at this time.
0 commit comments