From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 6 Mar 2013 16:06:20 -0500 Subject: [U-Boot] [PATCH v9 15/30] autoconfig.mk: Make it possible to define configs from other configs In-Reply-To: <1362596377-5827-15-git-send-email-benoit.thebaudeau@advansee.com> References: <1362596377-5827-1-git-send-email-benoit.thebaudeau@advansee.com> <1362596377-5827-15-git-send-email-benoit.thebaudeau@advansee.com> Message-ID: <5137AFCC.8070601@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de -----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 Reviewed-by: Tom Rini - -- 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-----