]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/image.c
image: Create a table of information for each category
[people/ms/u-boot.git] / common / image.c
index 0be09e5c6306df7973b3a45e00c6c891cef7ee26..4e503b3a060c2c5c61d9379fda3a95c982a7c211 100644 (file)
@@ -176,6 +176,19 @@ static const table_entry_t uimage_comp[] = {
        {       -1,             "",             "",                     },
 };
 
+struct table_info {
+       const char *desc;
+       int count;
+       const table_entry_t *table;
+};
+
+static const struct table_info table_info[IH_COUNT] = {
+       { "architecture", IH_ARCH_COUNT, uimage_arch },
+       { "compression", IH_COMP_COUNT, uimage_comp },
+       { "operating system", IH_OS_COUNT, uimage_os },
+       { "image type", IH_TYPE_COUNT, uimage_type },
+};
+
 /*****************************************************************************/
 /* Legacy format routines */
 /*****************************************************************************/