]> git.baikalelectronics.ru Git - uboot.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)
commit8cda8a8f39558879067693be3c02d5e74d2a04f4
treefdad4a07177efe25dc81af396bb078273fad519a
parent883f468adb5044af1ee18a46ae62fb5daa65f901
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