Browse Source

tools/env: Correct include kconfig

While we move some config macros to Kconfig, kconfig header is needed
to avoid compiling error if not already included.

Signed-off-by: York Sun <york.sun@nxp.com>
tags/2020-06-01
York Sun 4 years ago
parent
commit
f33f3e07f3
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      common/env_embedded.c
  2. +2
    -0
      tools/envcrc.c

+ 2
- 0
common/env_embedded.c View File

@@ -5,6 +5,8 @@
* SPDX-License-Identifier: GPL-2.0+
*/

#include <linux/kconfig.h>

#ifndef __ASSEMBLY__
#define __ASSEMBLY__ /* Dirty trick to get only #defines */
#endif


+ 2
- 0
tools/envcrc.c View File

@@ -12,6 +12,8 @@
#include <string.h>
#include <unistd.h>

#include <linux/kconfig.h>

#ifndef __ASSEMBLY__
#define __ASSEMBLY__ /* Dirty trick to get only #defines */
#endif