]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
lkdtm: split build into multiple source files
authorKees Cook <keescook@chromium.org>
Mon, 22 Feb 2016 22:05:44 +0000 (14:05 -0800)
committerKees Cook <keescook@chromium.org>
Fri, 10 Jun 2016 22:57:48 +0000 (15:57 -0700)
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>
drivers/misc/Makefile
drivers/misc/lkdtm_core.c [moved from drivers/misc/lkdtm.c with 100% similarity]

index b2fb6dbffcef0c4999439287b3e1c1a10bdcf264..c3cb6ad8cc3714d78027a5d503601fd3c7b4d6fc 100644 (file)
@@ -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