X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fenv_embedded.c;h=b368fdaa80967d8d7d0383ea1d4cd7f3b9e440a8;hb=4b5b0fcd212bb4f2cb4c8f9d4f3699c999dfbd2d;hp=91d8ba308d2e9e68aaa800587b1995e71b8b3999;hpb=aaf5e825606a70ddc8fca8e366d8c16a6fd3cc7c;p=oweals%2Fu-boot.git diff --git a/common/env_embedded.c b/common/env_embedded.c index 91d8ba308d..b368fdaa80 100644 --- a/common/env_embedded.c +++ b/common/env_embedded.c @@ -2,9 +2,11 @@ * (C) Copyright 2001 * Erik Theisen, Wave 7 Optics, etheisen@mindspring.com. * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ +#include + #ifndef __ASSEMBLY__ #define __ASSEMBLY__ /* Dirty trick to get only #defines */ #endif @@ -33,7 +35,7 @@ * a seperate section. Note that ENV_CRC is only defined when building * U-Boot itself. */ -#if (defined(CONFIG_SYS_USE_PPCENV) || defined(CONFIG_NAND_U_BOOT)) && \ +#if defined(CONFIG_SYS_USE_PPCENV) && \ defined(ENV_CRC) /* Environment embedded in U-Boot .ppcenv section */ /* XXX - This only works with GNU C */ # define __PPCENV__ __attribute__ ((section(".ppcenv")))