summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-07-12 12:24:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-07-15 08:46:12 +0200
commit0e3d00a70de6412c9543d09445de59900b93e25e (patch)
tree3163faf6b981c2ae1c4df0123d83e57a268d060f /include
parent464de25d425a0949b066b0aacf872b2a48e682af (diff)
downloadbarebox-0e3d00a70de6412c9543d09445de59900b93e25e.tar.gz
barebox-0e3d00a70de6412c9543d09445de59900b93e25e.tar.xz
filetype: add STM32 image type
Both STM32MP BootROM and TF-A first stage expect subsequent bootloader stages to feature a specific 256-byte long STM32 file header. Add detection of the header to file_detect_type(). While there's only one version of the header so far, identify the new header as v1 anyway, so new versions can be unambiguously added. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/filetype.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/filetype.h b/include/filetype.h
index f1be04e816..90a03de581 100644
--- a/include/filetype.h
+++ b/include/filetype.h
@@ -48,6 +48,7 @@ enum filetype {
filetype_layerscape_image,
filetype_layerscape_qspi_image,
filetype_ubootvar,
+ filetype_stm32_image_v1,
filetype_max,
};