
Dear Fabio,
In message CAOMZO5CEeErzL2MMpktmgoV5TyXGyMZB954fNhAMBSP60scD7g@mail.gmail.com you wrote:
Can you please try somthing like this (only minimally tested):
I tried it, thanks, but unfortunately It does not work for me.
Here is the complete patch I used, which consists of your proposal plus my changes: http://dark-code.bulix.org/nhg8l0-515675
Then when I build the pico-imx7d_defconfig target I get the following error:
/bin/sh: 1: printf: CONFIG_ENV_OFFSET - (69 * 1024): expected numeric value
I see -yes, this does not work as you are referencing a CPP macro here which does not get resolved. I don't see a trivial way around this, though - for the Makefile we would need $(CONFIG_ENV_OFFSET), but CPP would barf on this...
Can you live with something like this:
#define CONFIG_ENV_OFFSET (768 * 1024) #define CONFIG_BOARD_SIZE_LIMIT ((768 * 1024) - (69 * 1024))
[or maybe even ((768 - 69) * 1024) ?]
Best regards,
Wolfgang Denk