mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-08 22:24:32 +00:00
3ab9598df7
After some thought, I believe there is an unfortunate naming flaw in binman. Entries have a position and size, but now that we support hierarchical sections it is unclear whether a position should be an absolute position within the image, or a relative position within its parent section. At present 'position' actually means the relative position. This indicates a need for an 'image position' for code that wants to find the location of an entry without having to do calculations back through parents to discover this image position. A better name for the current 'position' or 'pos' is 'offset'. It is not always an absolute position, but it is always an offset from its parent offset. It is unfortunate to rename this concept now, 18 months after binman was introduced. However I believe it is the right thing to do. The impact is mostly limited to binman itself and a few changes to in-tree users to binman: tegra sunxi x86 The change makes old binman definitions (e.g. downstream or out-of-tree) incompatible if they use the 'pos = <...>' property. Later work will adjust binman to generate an error when it is used. Signed-off-by: Simon Glass <sjg@chromium.org>
43 lines
710 B
Text
43 lines
710 B
Text
#include <config.h>
|
|
|
|
#ifdef CONFIG_SPL_TEXT_BASE
|
|
#define U_BOOT_OFFSET (CONFIG_SYS_TEXT_BASE - CONFIG_SPL_TEXT_BASE)
|
|
#else
|
|
#define U_BOOT_OFFSET 0
|
|
#endif
|
|
|
|
/ {
|
|
binman {
|
|
multiple-images;
|
|
image1 {
|
|
filename = "u-boot-tegra.bin";
|
|
pad-byte = <0xff>;
|
|
u-boot-spl {
|
|
};
|
|
u-boot {
|
|
offset = <(U_BOOT_OFFSET)>;
|
|
};
|
|
};
|
|
|
|
/* Same as image1 - some tools still expect the -dtb suffix */
|
|
image2 {
|
|
filename = "u-boot-dtb-tegra.bin";
|
|
pad-byte = <0xff>;
|
|
u-boot-spl {
|
|
};
|
|
u-boot {
|
|
offset = <(U_BOOT_OFFSET)>;
|
|
};
|
|
};
|
|
|
|
image3 {
|
|
filename = "u-boot-nodtb-tegra.bin";
|
|
pad-byte = <0xff>;
|
|
u-boot-spl {
|
|
};
|
|
u-boot-nodtb {
|
|
offset = <(U_BOOT_OFFSET)>;
|
|
};
|
|
};
|
|
};
|
|
};
|