def METHOD_NAME(self):
    # now check for install dir.  If set then set the Prefix
    install_path = shell_environment.GetEnvironment(
    ).get_shell_var("GCC5_RISCV64_INSTALL")
    if install_path is None:
        return 0
    # check to see if full path already configured
    if shell_environment.GetEnvironment().get_shell_var("GCC5_RISCV64_PREFIX") is not None:
        self.Logger.info("GCC5_RISCV64_PREFIX is already set.")
    else:
        # make GCC5_RISCV64_PREFIX to align with tools_def.txt
        prefix = os.path.join(install_path, "bin", "riscv64-unknown-elf-")
        shell_environment.GetEnvironment().set_shell_var("GCC5_RISCV64_PREFIX", prefix)
    # now confirm it exists
    if not os.path.exists(shell_environment.GetEnvironment().get_shell_var("GCC5_RISCV64_PREFIX") + "gcc"):
        self.Logger.error(
            "Path for GCC5_RISCV64_PREFIX toolchain is invalid")
        return -2
    # Check if LD_LIBRARY_PATH is set for the libraries of RISC-V GCC toolchain
    if shell_environment.GetEnvironment().get_shell_var("LD_LIBRARY_PATH") is not None:
        self.Logger.info("LD_LIBRARY_PATH is already set.")
    prefix = os.path.join(install_path, "lib")
    shell_environment.GetEnvironment().set_shell_var("LD_LIBRARY_PATH", prefix)
    return 0