ruyisdk / ruyi

RuyiSDK Package Manager
Apache License 2.0
14 stars 8 forks source link

ruyi venv 多工具链支持 #199

Closed weilinfox closed 5 days ago

weilinfox commented 3 weeks ago

需求描述

一些工程的构建需要多种工具链的支持,如 duo-buildroot-sdk 同时需要 gnu-milkv-milkv-duo-musl-bin 和 gnu-milkv-milkv-duo-elf-bin 支持构建。

xen0n commented 5 days ago

Usage:

ruyi venv -t gnu-milkv-milkv-duo-bin -t gnu-milkv-milkv-duo-musl-bin milkv-duo /tmp/venv

# the target tuples are riscv64-unknown-linux-gnu and riscv64-unknown-linux-musl
# these files/dirs are created:
#
# - meson-cross.$TARGET.ini
# - toolchain.$TARGET.cmake
# - sysroot.$TARGET

# the first toolchain given is the "primary" one setting the "primary target"
# files for the primary target are symlinked to the respective unmarked names
# e.g. sysroot -> sysroot.riscv64-unknown-linux-gnu