summaryrefslogtreecommitdiffstats
path: root/drivers/misc/Makefile
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-02-22 23:05:44 +0100
committerKees Cook <keescook@chromium.org>2016-06-11 00:57:48 +0200
commit9e197e2f894c0270ffabd314d73c7730b09ac63c (patch)
tree5f5b14a533d9b472121152d796a7dc856a9f7372 /drivers/misc/Makefile
parentMerge branch 'for-linus-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff)
downloadlinux-9e197e2f894c0270ffabd314d73c7730b09ac63c.tar.xz
linux-9e197e2f894c0270ffabd314d73c7730b09ac63c.zip
lkdtm: split build into multiple source files
Kbuild lacks a way to do in-place objcopy or other modifications of built targets, so in order to move functions into non-text sections without renaming the kernel module, the build of lkdtm must be split into separate source files. This renames lkdtm.c to lkdtm_core.c in preparation for adding the source file for the .rodata section. Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers/misc/Makefile')
-rw-r--r--drivers/misc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index b2fb6dbffcef..c3cb6ad8cc37 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -57,3 +57,5 @@ obj-$(CONFIG_ECHO) += echo/
obj-$(CONFIG_VEXPRESS_SYSCFG) += vexpress-syscfg.o
obj-$(CONFIG_CXL_BASE) += cxl/
obj-$(CONFIG_PANEL) += panel.o
+
+lkdtm-$(CONFIG_LKDTM) += lkdtm_core.o