Open hellow554 opened 3 years ago
I'd tend to agree with you, as we are currently in the process of introducing this in https://github.com/pengutronix/genimage/pull/139 accordingly (which is the comparable mechanism used for PTXdist).
But we must also take care here that this option can be called multiple times to add multiple intermediate certs. Thus the variable must be a list and evaluated as such. Due to this, I am not fully sure if this is a benefit over simply giving the explicit options with BUNDLE_ARGS
(but it could as it is consistent with providing key and cert via variables, too).
According to the docs if you'd like to include intermediate certificates you have to use
--intermediate=your/cert/here.pem
, but thebundle.bbclass
does not provide such option.One could misuse the
BUNDLE_ARGS
variable to acomplish this.I propose a
RAUC_INTERMEDIATE_FILE
(orRAUC_INTER_FILE
for short, although I'd like to see the longer version) that will automatically add an intermediate file to therauc bundle
command.