mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-31 06:18:51 +09:00
![Simon Glass](/assets/img/avatar_default.png)
It is useful to be able to access the size of an image in SPL, with something like: binman_sym_declare(unsigned long, u_boot_any, size); ... ulong u_boot_size = binman_sym(ulong, u_boot_any, size); Add support for this and update the tests. Signed-off-by: Simon Glass <sjg@chromium.org>
15 lines
435 B
C
15 lines
435 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (c) 2017 Google, Inc
|
|
*
|
|
* Simple program to create some binman symbols. This is used by binman tests.
|
|
*/
|
|
|
|
#define CONFIG_BINMAN
|
|
#include <binman_sym.h>
|
|
|
|
binman_sym_declare(unsigned long, u_boot_spl, offset);
|
|
binman_sym_declare(unsigned long long, u_boot_spl2, offset);
|
|
binman_sym_declare(unsigned long, u_boot_any, image_pos);
|
|
binman_sym_declare(unsigned long, u_boot_any, size);
|