aboutsummaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-10-11 11:11:41 -0400
committerTom Rini <trini@konsulko.com>2021-10-19 11:25:25 -0400
commit4f03a4c7662e79634bc133a2975cc239486237da (patch)
tree46c2e388672c983236b4d7db7be4769297793be3 /tools/Makefile
parent1860bdca6a0198c23227588a817bd3b65754bf00 (diff)
downloadu-boot-4f03a4c7662e79634bc133a2975cc239486237da.zip
u-boot-4f03a4c7662e79634bc133a2975cc239486237da.tar.gz
u-boot-4f03a4c7662e79634bc133a2975cc239486237da.tar.bz2
tools: Stop re-defining -std= when building tools
While we intentionally set -std=gnu11 for building host tools, and have for quite some time, we never dropped -std=gnu99 from tools/Makefile. This resulted in passing -std=gnu11 ... -std=gnu99 when building, and gnu99 would win. This in turn would result now in warnings such as: tools/mkeficapsule.c:25:15: warning: redefinition of typedef 'u32' is a C11 feature [-Wtypedef-redefinition] typedef __u32 u32; ^ Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 999fd46..b45219e 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -295,8 +295,7 @@ HOST_EXTRACFLAGS += -include $(srctree)/include/compiler.h \
-I$(srctree)/tools \
-DUSE_HOSTCC \
-D__KERNEL_STRICT_NAMES \
- -D_GNU_SOURCE \
- -std=gnu99
+ -D_GNU_SOURCE
__build: $(LOGO-y)