[U-Boot] [PATCH v9 15/30] autoconfig.mk: Make it possible to define configs from other configs

Tom Rini trini at ti.com
Wed Mar 6 22:06:20 CET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/06/2013 01:59 PM, Benoît Thébaudeau wrote:
> Give more flexibility to define configs that can be interpreted by
> make, e.g. to define fallback values of configs like in the example
> below.
> 
> Before this change, the config lines: #define CONFIG_SPL_MAX_SIZE
> 2048 #define CONFIG_SPL_PAD_TO	CONFIG_SPL_MAX_SIZE would have been
> changed in autoconfig.mk into: CONFIG_SPL_MAX_SIZE=2048 
> CONFIG_SPL_PAD_TO="CONFIG_SPL_MAX_SIZE"
> 
> Hence, a make recipe using as an argument to $(OBJCOPY): 
> --pad-to=$(CONFIG_SPL_PAD_TO) would have issued: 
> --pad-to="CONFIG_SPL_MAX_SIZE" which means nothing for $(OBJCOPY)
> and makes it fail.
> 
> Thanks to this change, the config lines above are changed in
> autoconfig.mk into: CONFIG_SPL_MAX_SIZE=2048 
> CONFIG_SPL_PAD_TO=$(CONFIG_SPL_MAX_SIZE)
> 
> Hence, the make recipe above now issues: --pad-to=2048 as expected
> from the defined config.
> 
> Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau at advansee.com>

Reviewed-by: Tom Rini <trini at ti.com>

- -- 
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRN6/MAAoJENk4IS6UOR1WACkQAJAPi/TwObDQvj+cUTlnkgju
51jVn9fgqENaTmDLtiq0yQrj50iIhCjHHJ9Bv6HK6lWjCDK9tjGStYoZsk6TH0Tp
M5rhRIUjEZBaceubShP9f9219xmtYVeIt/nC2E9w5QKAx3MHE3KpOMHw+pH3AC6g
Bayvt5+TlTrwRlxhUuANB9f5DOyF0FFpKzijWhF9iUzNp4S7hl+QqZpbh2qGSxVd
UgZmm43MTvPmhCf7JKjrYXCE/OLTW6poSkaLLEOUMhufipQ1JXAQkltFewmk2jDE
lBmQ16Kcwo68J9PMWLpGzpvAdCh2qkGCPPxr2zlwlpw2mSNLZTfKqguoX2BTvnZY
NJYQPOSZmBVhoF1+G6CJQE+8ukY4UxyBeG+gD2OPOL25oE4FSWLbMVWkx/slhIWt
ujcaW3pw0hGG/CjmQyO1O36raFZfFOkb3mGYwl5xH7cKnXPOMQcYGZ77JWbyyQRV
MTaeh9deyszgzecAJ5D6ZnqB7G6XvDKzcphZF3xPHuOMhKKn+03VHHz0vWS0GLT1
cEEymvSCtjID2fl7iRNp/WZ+EYS7EUb/9M9T8iaJ79wQHe6V0xikz62YbMe8NE6+
7DHuz8N00FdgFEGvtZFW33oXUpVEduTQbwCJwOVSo+tfJ60v48xdsVTvTbUM4QAo
Vf3gCKoyudLJtD67ffZs
=n8jq
-----END PGP SIGNATURE-----


More information about the U-Boot mailing list