From: Bhargava Sreekantappa Gayathri <[email protected]>

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 
<[email protected]>
Signed-off-by: Manjukumar Matha <[email protected]>
---
 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

-- 
_______________________________________________
meta-xilinx mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to