mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-22 18:09:03 +09:00
![Stephen Warren](/assets/img/avatar_default.png)
64-bit Tegra don't use SPL, and soon won't define CONFIG_SPL_TEXT_BASE when building. Fix the binman .dts file so that it doesn't use undefined values. Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
44 lines
701 B
Plaintext
44 lines
701 B
Plaintext
#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 {
|
|
pos = <(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 {
|
|
pos = <(U_BOOT_OFFSET)>;
|
|
};
|
|
};
|
|
|
|
image3 {
|
|
filename = "u-boot-nodtb-tegra.bin";
|
|
pad-byte = <0xff>;
|
|
u-boot-spl {
|
|
};
|
|
u-boot-nodtb {
|
|
pos = <(U_BOOT_OFFSET)>;
|
|
};
|
|
};
|
|
};
|
|
};
|