diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-10-08 00:02:59 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-10-08 00:03:22 +0800 |
commit | ad4da3a4a1c817a7ed38de25788fda11496e53a7 (patch) | |
tree | 519bd2412ecac461080427965cf3abc0ed77a2cd /include | |
parent | 6d2812b93d67be5eb7b41106ab9d8756d4bbc9d4 (diff) | |
download | barebox-ad4da3a4a1c817a7ed38de25788fda11496e53a7.tar.gz barebox-ad4da3a4a1c817a7ed38de25788fda11496e53a7.tar.xz |
image: factorise string helper
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/image.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h index 2b81ec9eea..436403acd3 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); |