]> git.dujemihanovic.xyz Git - u-boot.git/commit
image: Avoid #ifdefs for manual relocation
authorSimon Glass <sjg@chromium.org>
Sat, 25 Sep 2021 13:03:19 +0000 (07:03 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:26 +0000 (15:53 -0400)
commitc5a68d29e38ce25646ee42eb49a29364aab84531
treefdad4a07177efe25dc81af396bb078273fad519a
parent2ac00c050582389e667374bccc5cc19b4fce80f5
image: Avoid #ifdefs for manual relocation

Add a macro to handle manually relocating a pointer. Update the iamge code
to use this to avoid needing #ifdefs.

This also fixes a bug where the 'done' flag was not set.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/image-sig.c
include/relocate.h