summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-05-18 23:56:00 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-20 13:06:49 +0200
commitb9c2b5c1b4bc6775613164f7b5a0dd583a8032f8 (patch)
tree668f6bfc72c2073ab2acee6de974c64920d24285 /Makefile
parentc10b20dc83ac25b1d81c39eaad4529d9911813b1 (diff)
downloadbarebox-b9c2b5c1b4bc6775613164f7b5a0dd583a8032f8.tar.gz
barebox-b9c2b5c1b4bc6775613164f7b5a0dd583a8032f8.tar.xz
kbuild: add -std=gnu89 to KBUILD_CFLAGS
Barebox imports lots of code from Linux, so should use the same language standard as Linux. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7a620b5041..d477494d6c 100644
--- a/Makefile
+++ b/Makefile
@@ -416,7 +416,7 @@ KBUILD_CPPFLAGS := -D__KERNEL__ -D__BAREBOX__ $(LINUXINCLUDE) -fno-builti
KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-Werror=implicit-function-declaration -Werror=implicit-int \
- -Os -pipe -Wmissing-prototypes
+ -Os -pipe -Wmissing-prototypes -std=gnu89
KBUILD_AFLAGS := -D__ASSEMBLY__
LDFLAGS_barebox := -Map barebox.map