mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
Makefile: Change CONFIG_SPL_PAD_TO to image offset
Change CONFIG_SPL_PAD_TO from a link address to an image offset since this is more handy and closer to the purpose of this config. Automatically define CONFIG_SPL_PAD_TO to CONFIG_SPL_MAX_SIZE (or 0 without CONFIG_SPL_MAX_SIZE). Test that CONFIG_SPL_PAD_TO >= CONFIG_SPL_MAX_SIZE if CONFIG_SPL_PAD_TO is non-zero. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
This commit is contained in:
committed by
Albert ARIBAUD
parent
2979b26323
commit
6113d3f27c
@@ -9,6 +9,22 @@
|
||||
#ifndef __CONFIG_FALLBACKS_H
|
||||
#define __CONFIG_FALLBACKS_H
|
||||
|
||||
#ifdef CONFIG_SPL
|
||||
#ifdef CONFIG_SPL_PAD_TO
|
||||
#ifdef CONFIG_SPL_MAX_SIZE
|
||||
#if CONFIG_SPL_PAD_TO && CONFIG_SPL_PAD_TO < CONFIG_SPL_MAX_SIZE
|
||||
#error CONFIG_SPL_PAD_TO < CONFIG_SPL_MAX_SIZE
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#ifdef CONFIG_SPL_MAX_SIZE
|
||||
#define CONFIG_SPL_PAD_TO CONFIG_SPL_MAX_SIZE
|
||||
#else
|
||||
#define CONFIG_SPL_PAD_TO 0
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SYS_BAUDRATE_TABLE
|
||||
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user