Skip to contentSkip to conversation

(no subject)

U-Boot In review Peter Robinson 2 participants 3 messages Dec 9, 2015 – Dec 15, 2015

lore
Share & tools
lore
#0 lore raw

In Fedora with gcc 5.2 and 5.3 the fw_env is FTB due to a missing include. The following small patch fixes building it on Fedora with gcc 5.3.1

Regards,
Peter

#1 lore raw

PATCH 1/1 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.

---
 tools/env/fw_env.c | 1 +
 1 file changed, 1 insertion(+)
tools/env/fw_env.c +1 -0
index ba11f77..39f7333 100644
@@ -10,6 +10,7 @@
 
 #define _GNU_SOURCE
 
+#include <compiler.h>
 #include <errno.h>
 #include <env_flags.h>
 #include <fcntl.h>
Signature · 1 line
2.5.0
#2 lore raw

[U-Boot] tools: env: include compiler.h

Quoted 4 lines · Peter Robinson

With gcc 5.2 and later we get a bunch of "error: unknown type name" for 'uint8_t', 'uint32_t' and friends.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151215/61b575ba/attachment.sig>