# 
# Usage: To re-create this platform project launch xsct with below options.
# xsct /data/work/prj/New_CalBoard/2.FW/Zynq/Cal_Net/NewExtInst_bsp/platform.tcl
# 
# OR launch xsct and run below command.
# source /data/work/prj/New_CalBoard/2.FW/Zynq/Cal_Net/NewExtInst_bsp/platform.tcl
# 
# To create the platform in a different location, modify the -out option of "platform create" command.
# -out option specifies the output directory of the platform project.

platform create -name {NewExtInst_bsp}\
-hw {/data/work/prj/New_CalBoard/2.FW/Zynq/Cal_Net/system_wrapper.xsa}\
-proc {ps7_cortexa9_0} -os {standalone} -out {/data/work/prj/New_CalBoard/2.FW/Zynq/Cal_Net}

platform write
platform generate -domains 
platform active {NewExtInst_bsp}
platform generate
domain active {zynq_fsbl}
bsp reload
bsp setlib -name lwip213 -ver 1.1
bsp config lwip_dhcp "true"
bsp config dhcp_does_arp_check "true"
bsp write
bsp reload
catch {bsp regenerate}
platform generate -domains zynq_fsbl 
bsp removelib -name lwip213
bsp write
bsp reload
catch {bsp regenerate}
domain active {standalone_domain}
bsp reload
bsp setlib -name lwip213 -ver 1.1
bsp config dhcp_does_arp_check "true"
bsp config lwip_dhcp "true"
bsp write
bsp reload
catch {bsp regenerate}
platform generate -domains standalone_domain,zynq_fsbl 
bsp write
platform generate -domains 
