]> git.baikalelectronics.ru Git - uboot.git/commit
image: Update image_decomp() to avoid ifdefs
authorSimon Glass <sjg@chromium.org>
Sat, 25 Sep 2021 13:03:14 +0000 (07:03 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:26 +0000 (15:53 -0400)
commit1da36f20488b7fceac24244c86093eabdf737e9c
treeaf8dca4cf49cc34bfb9156fc03f5ea626dba3428
parent0efe5b42104611c0ef5af48ec8448099f7907811
image: Update image_decomp() to avoid ifdefs

Adjust this function so that preprocessor macros are not needed. With
this, the host build uses more of the same header files as the target
build.

Rather than definining CONFIG_SYS_MALLOC_LEN, add a CONSERVE_MEMORY
define, since that is the purpose of the value.

This appears to have no impact on code size from a spot check of a few
boards (snow, firefly-rk3288, boston32r2el, m53menlo).

Signed-off-by: Simon Glass <sjg@chromium.org>
common/image.c
configs/sandbox_defconfig