how do we integrate the toolchain with uvm ?

hey , i was just wondering to develop a tool-chain for an soc
but i need to integrate it with uvm tb , how do we do that and if i need to reuse that software part then what to do ?
i hope for some answer.