summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-03-22 14:39:10 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-03-23 12:16:26 +0100
commit15fc6ffd0274f72282761ed0e6ae4b097be23f97 (patch)
treefb5942c29cac12e461a6aec24bacdb261fc0f932 /include
parentcbb44501dc3e8c90714c8296669bdf28f2ec4f98 (diff)
downloadbarebox-15fc6ffd0274f72282761ed0e6ae4b097be23f97.tar.gz
barebox-15fc6ffd0274f72282761ed0e6ae4b097be23f97.tar.xz
filetype: detect RISC-V images
We still have no boot support for RISC-V, take the first step by enabling barebox to detect both a RISC-V Linux kernel and barebox image. The header format is aligned with that of arm64, but they differ in the signature magic. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/filetype.h b/include/filetype.h
index 3019dda6ed..fd339f9564 100644
--- a/include/filetype.h
+++ b/include/filetype.h
@@ -43,6 +43,8 @@ enum filetype {
filetype_kwbimage_v1,
filetype_android_sparse,
filetype_arm64_linux_image,
+ filetype_riscv_linux_image,
+ filetype_riscv_barebox_image,
filetype_elf,
filetype_imx_image_v1,
filetype_imx_image_v2,