[meta-xilinx] [meta-xilinx-tools][PATCH 3/8] base-hsi.tcl: Update to handle dsa or hdf file

Manjukumar Matha manjukumar.harthikote-matha at xilinx.com
Mon Apr 23 16:21:05 PDT 2018


From: Bhargava Sreekantappa Gayathri <bhargava.sreekantappa-gayathri at xilinx.com>

base-hsi.tcl copies over the HW file as hardware_description.hdf. This
causes dtb build failure when using dsa.  This patch fixes this issue by
modifying set_hw_design to take an additional input parameter to
preserve file endings.

Signed-off-by: Bhargava Sreekantappa Gayathri <bhargava.sreekantappa-gayathri at xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
---
 scripts/base-hsi.tcl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/base-hsi.tcl b/scripts/base-hsi.tcl
index 5897565..2b448f6 100644
--- a/scripts/base-hsi.tcl
+++ b/scripts/base-hsi.tcl
@@ -41,14 +41,14 @@ proc set_properties { yamlconf } {
 	}
 }
 
-proc set_hw_design {project hdf} {
+proc set_hw_design {project hdf hdf_type} {
 	file mkdir $project
-	if { [catch { exec cp $hdf $project/hardware_description.hdf } msg] } {
+	if { [catch { exec cp $hdf $project/hardware_description.$hdf_type } msg] } {
         	puts "$::errorInfo"
 	}
 
-	if { [catch {openhw $project/hardware_description.hdf} res] } {
+	if { [catch {openhw $project/hardware_description.$hdf_type} res] } {
         	error "Failed to open hardware design \
-                	from $project/hardware_description.hdf"
+                       $project/hardware_description.$hdf_type"
 	}
 }
-- 
2.7.4



More information about the meta-xilinx mailing list