pico-imx7d: Increase the CONFIG_ENV_OFFSET size
authorFabio Estevam <festevam@gmail.com>
Fri, 30 Nov 2018 14:52:13 +0000 (12:52 -0200)
committerStefano Babic <sbabic@denx.de>
Tue, 1 Jan 2019 13:12:18 +0000 (14:12 +0100)
commit57d2beb91d705bccdfee5e9e5fd267f5e363a100
treeac62242005584a9a2288e742c0a7b0849fc6a1bc
parentacdf10e17937f4b23fb2613e148caf25aac62c37
pico-imx7d: Increase the CONFIG_ENV_OFFSET size

U-Boot binary has grown in such a way that it goes beyond the reserved
area for the environment variables.

Running "saveenv" causes U-Boot to hang because of this overlap.

Fix this problem by increasing the CONFIG_ENV_OFFSET size.

Also, in order to prevent this same problem in the future, use
CONFIG_BOARD_SIZE_LIMIT, which will detect the overlap in build-time.

CONFIG_BOARD_SIZE_LIMIT does not accept math expressions, so declare
CONFIG_ENV_OFFSET with its direct value instead.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
include/configs/pico-imx7d.h