summaryrefslogtreecommitdiffstats
path: root/include/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 13d0303160..e47ecfe632 100644
--- a/include/image.h
+++ b/include/image.h
@@ -187,6 +187,33 @@ struct image_handle {
int flags;
};
+#if defined(CONFIG_CMD_BOOTM_SHOW_TYPE) || !defined(__BAREBOX__)
+const char *image_os(uint8_t os);
+const char *image_arch(uint8_t arch);
+const char *image_type(uint8_t type);
+const char *image_compression(uint8_t comp);
+#else
+static inline const char *image_os(uint8_t os)
+{
+ return NULL;
+}
+
+static inline const char *image_arch(uint8_t arch)
+{
+ return NULL;
+}
+
+static inline const char *image_type(uint8_t type)
+{
+ return NULL;
+}
+
+static inline const char *image_compression(uint8_t comp)
+{
+ return NULL;
+}
+#endif
+
/* commamds/bootm.c */
void print_image_hdr (image_header_t *hdr);