binman: Allow entry types to override FDT contents

At present the contents of an FDT (for each phase) are fixed,
determined by the build and provided to Binman as input files.

Provide a means for entry types to provide their own FDT, so that it can
be processed, if needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2024-07-20 11:49:44 +01:00
parent 2e3697b954
commit daed9b42b4
3 changed files with 18 additions and 2 deletions

View file

@ -425,3 +425,7 @@ class Image(section.Entry_section):
super().AddBintools(bintools)
self.bintools = bintools
return bintools
def FdtContents(self, fdt_etype):
"""This base-class implementation simply calls the state function"""
return state.GetFdtContents(fdt_etype)