From f66035fa951aa1add79b657d6712e1c8a55153ef Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Wed, 9 Dec 2015 07:01:29 +0000 Subject: [PATCH] add patch to fix build of tools/env --- 0001-tools-env-include-compiler.h.patch | 28 +++++++++++++++++++++++++ uboot-tools.spec | 1 + 2 files changed, 29 insertions(+) create mode 100644 0001-tools-env-include-compiler.h.patch diff --git a/0001-tools-env-include-compiler.h.patch b/0001-tools-env-include-compiler.h.patch new file mode 100644 index 0000000..113a99a --- /dev/null +++ b/0001-tools-env-include-compiler.h.patch @@ -0,0 +1,28 @@ +From 329a4c60af68861f40802076495f6892b5403933 Mon Sep 17 00:00:00 2001 +From: Peter Robinson +Date: Wed, 9 Dec 2015 06:42:17 +0000 +Subject: [PATCH] tools: env: include compiler.h + +With gcc 5.2 and later we get a bunch of "error: unknown type name" for +'uint8_t', 'uint32_t' and friends. + +Signed-off-by: Peter Robinson +--- + tools/env/fw_env.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c +index ba11f77..39f7333 100644 +--- a/tools/env/fw_env.c ++++ b/tools/env/fw_env.c +@@ -10,6 +10,7 @@ + + #define _GNU_SOURCE + ++#include + #include + #include + #include +-- +2.5.0 + diff --git a/uboot-tools.spec b/uboot-tools.spec index e5d2654..b7e458f 100644 --- a/uboot-tools.spec +++ b/uboot-tools.spec @@ -13,6 +13,7 @@ Source1: armv7-boards Patch1: 0004-Add-BOOTENV_INIT_COMMAND-for-commands-that-may-be-ne.patch Patch2: 0005-port-utilite-to-distro-generic-boot-commands.patch +Patch3: 0001-tools-env-include-compiler.h.patch BuildRequires: bc BuildRequires: dtc