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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
798 Views
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

Tags (2)
0 Kudos
Reply
1 Solution
768 Views
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!

View solution in original post

0 Kudos
Reply
1 Reply
769 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1977015%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Enxpimage%3A%20how%20to%20accept%20input%20file%20on%20command%20line%20instead%20of%20config%20entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1977015%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E.bd%20file%20has%20the%20following%20entry%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Esources%20%7B%0A%20%20%20%20elfFile%20%3D%20extern(0)%3B%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Edoing%20this%20nxpimage%20expects%20the%20name%20of%20the%20input%20file%20on%20the%20command%20line.%3CBR%20%2F%3EHow%20can%20I%20achieve%20the%20same%20behavior%20using%20.yaml%20files%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Eregards%3C%2FP%3E%3CP%3EMax%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1978216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20nxpimage%3A%20how%20to%20accept%20input%20file%20on%20command%20line%20instead%20of%20config%20entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1978216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F124967%22%20target%3D%22_blank%22%3E%40mastupristi%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThe%20nxpimage%20-%26gt%3B%20hab%20application%20supports%20both%20bd%20files%20and%20YAML%20configuration%20files.%20The%20bd%20file%20support%20is%20primarily%20intended%20as%20a%20backward%20compatibility%20solution%20for%20customers%20transitioning%20from%20elftosb%20to%20spsdk.%20I%20recommend%20using%20YAML%20configurations%2C%20as%20this%20is%20the%20standard%20format%20across%20all%20spsdk%20applications.%3C%2FP%3E%0A%3CP%3EUnfortunately%2C%20passing%20the%20input%20image%20via%20the%20command%20line%20when%20using%20YAML%20configuration%20is%20not%20currently%20supported.%3C%2FP%3E%0A%3CP%3EHowever%2C%20we%20are%20exploring%20the%20possibility%20of%20allowing%20users%20to%20override%20any%20configuration%20parameter%20across%20all%20spsdk%20applications.%20If%20implemented%2C%20this%20would%20enable%20you%20to%20specify%20the%20elfFile%20as%20a%20command%20line%20parameter%20when%20using%20a%20YAML%20file.%20Please%20note%20that%20this%20feature%20has%20not%20yet%20been%20developed.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ELet%20me%20know%20if%20you%20need%20any%20further%20adjustments!%3C%2FP%3E%3C%2FLINGO-BODY%3E