[PATCH 14/35] common: Drop CONFIG_HAS_POST

Tom Rini trini at konsulko.com
Thu Dec 12 14:59:31 CET 2019


On Wed, Dec 11, 2019 at 05:47:33PM -0700, Simon Glass wrote:
> This only exists to control whether the post/ directory is build. It is
> just as easy to check this in the Makefile. Remove CONFIG_HAS_POST and use
> an ifdef in the Makefile instead.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  Makefile         | 4 +++-
>  include/common.h | 4 ----
>  2 files changed, 3 insertions(+), 5 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 0766f78dcb..6b7d80139e 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -762,7 +762,9 @@ libs-y += cmd/
>  libs-y += common/
>  libs-y += env/
>  libs-$(CONFIG_API) += api/
> -libs-$(CONFIG_HAS_POST) += post/
> +ifdef CONFIG_POST
> +libs-y += post/
> +endif

Why isn't this just libs-$(CONFIG_POST) += post/ ?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191212/725eea38/attachment.sig>


More information about the U-Boot mailing list