VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Feng Tang <feng.tang@intel.com> 2020-08-11 18:34:13 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-08-12 10:57:59 -0700 commit: 09c60546f04f732d194a171b3a4ccc9ae1e704ba parent: 8043fc147a97ec2eefc582487f344f2cbe86d12e
Commit Summary:
./Makefile: add debug option to enable function aligned on 32 bytes
Diffstat:
1 file changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 168dd19cad7c..254e80a96b23 100644
--- a/Makefile
+++ b/Makefile
@@ -893,6 +893,10 @@ KBUILD_CFLAGS	+= $(CC_FLAGS_SCS)
 export CC_FLAGS_SCS
 endif
 
+ifdef CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_32B
+KBUILD_CFLAGS += -falign-functions=32
+endif
+
 # arch Makefile may override CC so keep this after arch Makefile is included
 NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)