nxpimage: how to accept input file on command line instead of config entry

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

nxpimage: how to accept input file on command line instead of config entry

跳至解决方案
795 次查看
mastupristi
Senior Contributor I

Hi,

.bd file has the following entry:

sources {
    elfFile = extern(0);
}

doing this nxpimage expects the name of the input file on the command line.
How can I achieve the same behavior using .yaml files?

 

regards

Max

标记 (2)
0 项奖励
回复
1 解答
765 次查看
nxf93270
NXP Employee
NXP Employee

Hi @mastupristi ,

The nxpimage -> hab application supports both bd files and YAML configuration files. The bd file support is primarily intended as a backward compatibility solution for customers transitioning from elftosb to spsdk. I recommend using YAML configurations, as this is the standard format across all spsdk applications.

Unfortunately, passing the input image via the command line when using YAML configuration is not currently supported.

However, we are exploring the possibility of allowing users to override any configuration parameter across all spsdk applications. If implemented, this would enable you to specify the elfFile as a command line parameter when using a YAML file. Please note that this feature has not yet been developed.

 

Let me know if you need any further adjustments!

在原帖中查看解决方案

0 项奖励
回复
1 回复
766 次查看
nxf93270
NXP Employee
NXP Employee

Hi @mastupristi ,

The nxpimage -> hab application supports both bd files and YAML configuration files. The bd file support is primarily intended as a backward compatibility solution for customers transitioning from elftosb to spsdk. I recommend using YAML configurations, as this is the standard format across all spsdk applications.

Unfortunately, passing the input image via the command line when using YAML configuration is not currently supported.

However, we are exploring the possibility of allowing users to override any configuration parameter across all spsdk applications. If implemented, this would enable you to specify the elfFile as a command line parameter when using a YAML file. Please note that this feature has not yet been developed.

 

Let me know if you need any further adjustments!

0 项奖励
回复