void-packages/srcpkgs/sun7i-kernel/patches/fix-cflags.patch

14 lines
670 B
Diff

Index: arch/arm/mach-sun7i/pm/standby/Makefile
===================================================================
--- a/arch/arm/mach-sun7i/pm/standby/Makefile.orig
+++ b/arch/arm/mach-sun7i/pm/standby/Makefile
@@ -15,6 +15,8 @@ LD_FILE = standby.xn
KBUILD_CFLAGS := $(LINUXINCLUDE) -I$(srctree)/arch/arm/mach-sun7i/pm -Os -g -c
KBUILD_CFLAGS += -nostdlib -march=armv7-a -marm -mlittle-endian -D__STANDBY_MODULE__
KBUILD_CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables
+KBUILD_CFLAGS += -fno-builtin -fno-tree-loop-distribute-patterns
+KBUILD_CFLAGS += -fno-stack-protector
KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__
LDFLAGS_standby.elf := -T