Dear Fabio, In message <caomzo5ceeerzl2mmpktmgov5tyxgymzb954fnhambsp60sc...@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 -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de He had quite a powerful intellect, but it was as powerful like a locomotive, and ran on rails and was therefore almost impossible to steer. - Terry Pratchett, _Lords and Ladies_ _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot