[PATCH v3 03/23] lib: crc32: prepare for CONFIG_IS_ENABLED changes

Tom Rini trini at konsulko.com
Thu May 11 21:30:49 CEST 2023


On Mon, Mar 13, 2023 at 02:31:25PM -0700, Troy Kisky wrote:

> We need to include <linux/kconfig.h> in order to include
> files that use CONFIG_IS_ENABLED. TO prepare for that
> be more direct with using defined(USE_HOSTCC).
> 
> Signed-off-by: Troy Kisky <troykiskyboundary at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
> 
> (no changes since v2)
> 
> Changes in v2:
> - delay include of linux/kconfig.h to do from Makefile
> - as suggested by Simon
> 
>  lib/crc32.c | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)

We end up with two problems with this (and all of the similar patches)
which is first, evb-ast2600 stops petting the watchdog in SPL, and then
the CONFIG_IS_ENABLED macros in host tools makes clang very unhappy.
I'm also not sure that introducing PET_WDT makes the code clearer than
it was before.

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


More information about the U-Boot mailing list