Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 1 | #include <config.h> |
| 2 | |
Maxime Ripard | 3c5a89d | 2017-10-19 11:36:35 +0200 | [diff] [blame] | 3 | /* |
| 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 Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 12 | / { |
| 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 Ripard | 3c5a89d | 2017-10-19 11:36:35 +0200 | [diff] [blame] | 20 | #ifdef CONFIG_MMC |
| 21 | size = <UBOOT_MMC_MAX_SIZE>; |
| 22 | #endif |
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 23 | pos = <CONFIG_SPL_PAD_TO>; |
| 24 | }; |
| 25 | }; |
| 26 | }; |