aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/Makefile
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-08-01 17:18:34 -0400
committerKees Cook <keescook@chromium.org>2016-08-01 17:27:24 -0400
commite50bd2354ced2018eff1c7e06e7db4db1f5ce745 (patch)
tree604c2f7960f51c1d7ea78facb41368b26b886945 /drivers/misc/Makefile
parent300108740b659c2380a731f147dd85ca0365db4f (diff)
lkdtm: Fix targets for objcopy usage
The targets for lkdtm's objcopy were missing which caused them to always be rebuilt. This corrects the problem. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers/misc/Makefile')
-rw-r--r--drivers/misc/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index 4387ccb79e64..7410c6d9a34d 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -69,5 +69,6 @@ OBJCOPYFLAGS :=
69OBJCOPYFLAGS_lkdtm_rodata_objcopy.o := \ 69OBJCOPYFLAGS_lkdtm_rodata_objcopy.o := \
70 --set-section-flags .text=alloc,readonly \ 70 --set-section-flags .text=alloc,readonly \
71 --rename-section .text=.rodata 71 --rename-section .text=.rodata
72$(obj)/lkdtm_rodata_objcopy.o: $(obj)/lkdtm_rodata.o 72targets += lkdtm_rodata.o lkdtm_rodata_objcopy.o
73$(obj)/lkdtm_rodata_objcopy.o: $(obj)/lkdtm_rodata.o FORCE
73 $(call if_changed,objcopy) 74 $(call if_changed,objcopy)