Respect that some compression algos can be enabled separately for SPL
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Sat, 6 Feb 2021 00:11:06 +0000 (16:11 -0800)
committerStefano Babic <sbabic@denx.de>
Mon, 1 Mar 2021 09:21:36 +0000 (10:21 +0100)
commit3bbe1a7fafc0b3e3524e590a09792b6adb9c3aa8
treec56362ec16f7256e571302f200f32d089fe3eb63
parentdeb78ff34ec0c188c433e9b1280a3deecc4eec28
Respect that some compression algos can be enabled separately for SPL

Some compression algorithms currently can be enabled for SPL and
U-Boot proper separately. Therefore take into account USE_HOSTCC
is well as CONFIG_IS_ENABLED() in these cases to prevent compiling these
functions in case of a host tool build.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
common/image.c