cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
_quang_
Newbie
Newbie
560 Views
Registered: ‎02-24-2021

XSCT -- Adding sysroot path to application

Jump to solution

Hi, I have created a linux project and now I'm trying to figure out how to add the sysroot with XSCT. I am able to do this with the VITIS IDE but I want to know how to do it with XSCT so I can better streamline my company's workflow.

0 Kudos
1 Solution

Accepted Solutions
longley
Xilinx Employee
Xilinx Employee
460 Views
Registered: ‎04-15-2011

@_quang_ 

Please check below -sysroot option in "domain create" command.

https://www.xilinx.com/html_docs/xilinx2020_2/vitis_doc/bid1585821551210.html?hl=domain

 

Thanks,

Longley


------------------------------------------------------------------------------------------------

Don’t forget to reply, kudo, and accept as solution.

If starting with Versal take a look at our Versal Design Process Hub and our
Versal Blogs

------------------------------------------------------------------------------------------------

View solution in original post

3 Replies
longley
Xilinx Employee
Xilinx Employee
461 Views
Registered: ‎04-15-2011

@_quang_ 

Please check below -sysroot option in "domain create" command.

https://www.xilinx.com/html_docs/xilinx2020_2/vitis_doc/bid1585821551210.html?hl=domain

 

Thanks,

Longley


------------------------------------------------------------------------------------------------

Don’t forget to reply, kudo, and accept as solution.

If starting with Versal take a look at our Versal Design Process Hub and our
Versal Blogs

------------------------------------------------------------------------------------------------

View solution in original post

pvempati
Xilinx Employee
Xilinx Employee
447 Views
Registered: ‎01-03-2017

Hi @_quang_ ,

Use this sample code to add the sysroot.

set sysroot /tmp/xbuilds_sysroot/cortexa9t2hf-neon-xilinx-linux-gnueabi
set appname hello
set proc_opt   ps7_cortexa9 
set target  Debug
setws $work_dir
platform create -name hw_platform -hw [file normalize $xsa_file] -no-boot-bsp
domain create -name "linux_domain" -os linux -proc $proc_opt
file mkdir linux/images
domain config -image  [ file normalize ./linux ]
domain config -boot   [ file normalize ./linux/images ]
domain config -bif    [ file normalize ./linux/images/dummy.bif ]
domain config -sysroot [file normalize $sysroot]
platform generate
app create -proc $proc_opt -os linux -name $appname -template {Linux Hello World} -lang c
app config -name $appname -set build-config $target

 

_quang_
Newbie
Newbie
418 Views
Registered: ‎02-24-2021

Great. Thank you!

0 Kudos