Skip to content

Commit

Permalink
[FIO extras] common/image: fix host build
Browse files Browse the repository at this point in the history
Isolate the IH_COMP flags when building with host cc to avoid build
failures as none of the comp features are enabled for host.

Signed-off-by: Ricardo Salveti <[email protected]>
  • Loading branch information
ricardosalveti committed Sep 9, 2019
1 parent 5a6bd7f commit a9eaa0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ int image_decomp(int comp, ulong load, ulong image_start, int type,
else
ret = -ENOSPC;
break;
#ifndef USE_HOSTCC
#ifdef CONFIG_GZIP
case IH_COMP_GZIP: {
ret = gunzip(load_buf, unc_len, image_buf, &image_len);
Expand Down Expand Up @@ -476,6 +477,7 @@ int image_decomp(int comp, ulong load, ulong image_start, int type,
break;
}
#endif /* CONFIG_LZ4 */
#endif
default:
printf("Unimplemented compression type %d\n", comp);
return -ENOSYS;
Expand Down

0 comments on commit a9eaa0e

Please sign in to comment.