Skip to content

Commit e50bd23

Browse files
committed
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 <[email protected]> Signed-off-by: Kees Cook <[email protected]>
1 parent 3001087 commit e50bd23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/misc/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ OBJCOPYFLAGS :=
6969
OBJCOPYFLAGS_lkdtm_rodata_objcopy.o := \
7070
--set-section-flags .text=alloc,readonly \
7171
--rename-section .text=.rodata
72-
$(obj)/lkdtm_rodata_objcopy.o: $(obj)/lkdtm_rodata.o
72+
targets += lkdtm_rodata.o lkdtm_rodata_objcopy.o
73+
$(obj)/lkdtm_rodata_objcopy.o: $(obj)/lkdtm_rodata.o FORCE
7374
$(call if_changed,objcopy)

0 commit comments

Comments
 (0)