add patch to fix build of tools/env

This commit is contained in:
Peter Robinson 2015-12-09 07:01:29 +00:00
parent b5af79c725
commit f66035fa95
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From 329a4c60af68861f40802076495f6892b5403933 Mon Sep 17 00:00:00 2001
From: Peter Robinson <pbrobinson@gmail.com>
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 <pbrobinson@gmail.com>
---
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 <compiler.h>
#include <errno.h>
#include <env_flags.h>
#include <fcntl.h>
--
2.5.0

View File

@ -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