blob: 72e95afd780e936e511e92557a7f4c5b51893fa9 [file] [log] [blame]
Simon Glassde441862016-11-25 20:16:01 -07001#include <config.h>
2
Maxime Ripard3c5a89d2017-10-19 11:36:35 +02003/*
4 * This is the maximum size the U-Boot binary can be, which is basically
5 * the start of the environment, minus the start of the U-Boot binary in
6 * the MMC. This makes the assumption that the MMC is using 512-bytes
7 * blocks, but devices using something other than that remains to be
8 * seen.
9 */
10#define UBOOT_MMC_MAX_SIZE (CONFIG_ENV_OFFSET - (CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512))
11
Simon Glassde441862016-11-25 20:16:01 -070012/ {
13 binman {
14 filename = "u-boot-sunxi-with-spl.bin";
15 pad-byte = <0xff>;
16 blob {
17 filename = "spl/sunxi-spl.bin";
18 };
19 u-boot-img {
Maxime Ripard3c5a89d2017-10-19 11:36:35 +020020#ifdef CONFIG_MMC
21 size = <UBOOT_MMC_MAX_SIZE>;
22#endif
Simon Glassde441862016-11-25 20:16:01 -070023 pos = <CONFIG_SPL_PAD_TO>;
24 };
25 };
26};