#!/bin/sh

jagen_pkg_unpack() {
    toolchain_unpack "$pkg_name" "$pkg_source_dir"
}

jagen_pkg_install_target() {
    local name path src_name src_dir

    src_dir="${pkg_source_dir:?}/bin"

    cd "${src_dir:?}" || return

    for src_name in *; do
        name=$(printf "$src_name" | cut -d- -f5-)
        path="${jagen_bin_dir:?}/arm-hisiv200-linux-${name}"
        cat >"$path" <<EOF || return
exec \$jagen_ccache "$src_dir/$src_name" "\$@"
EOF
        chmod +x "$path" || return
    done
}

#!/bin/sh

jagen_pkg_unpack() {
    toolchain_unpack "$pkg_name" "$pkg_source_dir"
}

jagen_pkg_install_target() {
    local name path src_name src_dir

    src_dir="${pkg_source_dir:?}/bin"

    cd "${src_dir:?}" || return

    for src_name in *; do
        name=$(printf "$src_name" | cut -d- -f5-)
        path="${jagen_bin_dir:?}/${jagen_target_system}-${name}"
        cat >"$path" <<EOF || return
exec \$jagen_ccache "$src_dir/$src_name" "\$@"
EOF
        chmod +x "$path" || return
    done
}

Use jagen_target_system in arm-hisiv200 toolchain script
Use jagen_target_system in arm-hisiv200 toolchain script
