aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMister Oyster <oysterized@gmail.com>2017-05-04 20:27:15 +0200
committerMister Oyster <oysterized@gmail.com>2017-05-04 21:00:01 +0200
commitea6fa640194430b19f89eb886b56da203ceeec5c (patch)
tree110f1f7919894b2fcdb907b206b347ddb0a7f35b /Makefile
parente8e03e0f974b43ca47b8a0d8fa817889e012cc81 (diff)
um: fix build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 319e05aeb..7d49509b8 100644
--- a/Makefile
+++ b/Makefile
@@ -369,6 +369,7 @@ LINUXINCLUDE := \
KBUILD_CPPFLAGS := -D__KERNEL__
+ifdef CONFIG_ARM64
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
@@ -378,6 +379,15 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-mtune=cortex-a53 \
-march=armv8-a \
-std=gnu89
+else
+KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
+ -fno-strict-aliasing -fno-common \
+ -Werror-implicit-function-declaration \
+ -Wno-format-security \
+ -fno-delete-null-pointer-checks \
+ -Werror=format -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast \
+ -std=gnu89
+endif
KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=