Skip to content
Commit 7a0cfb87 authored by Colin McAllister's avatar Colin McAllister Committed by Mattijs Korpershoek
Browse files

android_ab: Fix ANDROID_AB_BACKUP_OFFSET



Currently, setting CONFIG_AB_BACKUP_OFFSET in a target's defconfig will
not actually enable the #if protected code in android_ab.c. This is
because "CONFIG_" should have been prepended to the config macro, or the
macros defined in kconfig.h could have been used.

The code included by ANDROID_AB_BACKUP_OFFSET has been refactored to no
longer be conditionally compiled by preprocessor conditionals and
instead use C conditionals. This better aligns with the Linux kernel
style guide.

Fixes: 3430f24b ("android_ab: Try backup booloader_message")
Signed-off-by: default avatarColin McAllister <colin.mcallister@garmin.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: default avatarColin McAllister <colinmca242@gmail.com>
Reviewed-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
Reviewed-by: default avatarIgor Opaniuk <igor.opaniuk@gmail.com>
Reviewed-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20240312125729.82695-3-colinmca242@gmail.com


Signed-off-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
parent 109b9044
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment