Skip to content

Commit

Permalink
Build failure fix
Browse files Browse the repository at this point in the history
Signed-off-by: Akshay Tondak <[email protected]>
  • Loading branch information
Akshay Tondak authored and Akshay Tondak committed Dec 16, 2024
1 parent 6b7ab55 commit d4e0c9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime_src/core/tools/xbutil2/xbutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "tools/common/XBMain.h"
#include "tools/common/XBUtilities.h"
#include "tools/common/JSONConfigurable.h"
#include "core/common/module_loader.h"

// System include files
#include <exception>
Expand Down Expand Up @@ -88,7 +89,8 @@ int main( int argc, char** argv )
* This should be a device query to get the path of the xrt_smi_config.json file
*/
boost::property_tree::ptree configTreeMain;
XBValidateUtils::loadConfigFile("./xrt_smi_config.json", configTreeMain);
std::filesystem::path configPath = xrt_core::environment::xilinx_xrt()/"bin/xrt_smi_config.json";
XBValidateUtils::loadConfigFile(configPath.string(), configTreeMain);
{
// Syntax: SubCmdClass( IsHidden, IsDepricated, IsPreliminary)
subCommands.emplace_back(std::make_shared< SubCmdExamine >(false, false, false, configTree));
Expand Down

0 comments on commit d4e0c9a

Please sign in to comment.