Xilinx / bootgen

bootgen source code
Other
30 stars 41 forks source link

bootgen -o option not working in zynq #9

Open hokim72 opened 3 years ago

hokim72 commented 3 years ago

https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-2020-2-FPGA-manager-bootgen-failed/m-p/1239675/highlight/true#M50390

isnullxbh commented 2 years ago

Hello! @sadanandmutyala, could you explain the following code? What is the reason for clearing output filenames when the output file is bitstream?

if (outputMode == OutputMode::OUT_BITSTREAM) 
{
    outFilename.clear();
    std::string fName = bi->bitFilename;
    if(bi->bitFilename.empty())
    {
        LOG_ERROR("No bitstream in the BIF file - %s ",options.GetBifFilename().c_str());
    }
    fName += (options.GetProcessBitstreamType() == File::MCS) ? ".mcs" : ".bin";
    outFilename.push_back(fName);
}