summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch')
-rw-r--r--meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch
new file mode 100644
index 0000000000..381b505d1e
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch
@@ -0,0 +1,36 @@
1From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001
2From: Masahiro Yamada <yamada.m@jp.panasonic.com>
3Date: Wed, 3 Dec 2014 10:22:50 +0900
4Subject: [PATCH] tools: env: fix build error
5
6Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig,
7tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG
8is defined.
9(I do not think this is the right way to fix the problem, but
10for now I do not have enough time to take a close look.)
11
12Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/]
13
14Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
15Reported-by: Denys Dmytriyenko <denys@ti.com>
16---
17 tools/env/fw_env.c | 3 +++
18 1 file changed, 3 insertions(+)
19
20diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
21index 1173eea..698fe51 100644
22--- a/tools/env/fw_env.c
23+++ b/tools/env/fw_env.c
24@@ -8,6 +8,9 @@
25 * SPDX-License-Identifier: GPL-2.0+
26 */
27
28+/* FIXME: Do not include this */
29+#include <linux/kconfig.h>
30+
31 #include <errno.h>
32 #include <env_flags.h>
33 #include <fcntl.h>
34--
352.2.0
36