[PATCH v4 7/9] bloblist: Load the bloblist from the previous loader
Michal Simek
michal.simek at amd.com
Wed Jan 3 11:48:42 CET 2024
On 1/2/24 23:12, Raymond Mao wrote:
> During bloblist initialization, when OF_BOARD is defined, load the
> bloblist via boot arguments from the previous loader.
> If a valid bloblist exists in boot arguments, relocate it into the
> fixed bloblist memory region.
> If not, fallback to support BLOBLIST_ADDR or BLOBLIST_ALLOC.
>
> Signed-off-by: Raymond Mao <raymond.mao at linaro.org>
> ---
> Changes in v4
> - Add weak default function.
> - Add comments for BLOBLIST_ALLOC.
> - Add local debug macro.
> - Refine the commit message.
>
> common/bloblist.c | 66 +++++++++++++++++++++++++++++++++-------------
> include/bloblist.h | 10 +++++++
> 2 files changed, 58 insertions(+), 18 deletions(-)
>
> diff --git a/common/bloblist.c b/common/bloblist.c
> index 4e76975627..65c3c031d0 100644
> --- a/common/bloblist.c
> +++ b/common/bloblist.c
> @@ -17,6 +17,9 @@
> #include <asm/global_data.h>
> #include <u-boot/crc.h>
>
> +/* local debug macro */
> +#undef BLOBLIST_DEBUG
What's wrong with standard DEBUG macro that you need to introduce another one?
M
More information about the U-Boot
mailing list