Skip to content

Commit

Permalink
kbuild: do not add $((generic-)offsets-file) to targets
Browse files Browse the repository at this point in the history
$(always) is added to targets by scripts/Makefile.build.
Moreover, filechk does not need .*.cmd files.

Adding these two files to targets is redundant.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y authored and trini committed Jul 27, 2015
1 parent 98bd0e0 commit ba84de9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ endef
generic-offsets-file := include/generated/generic-asm-offsets.h

always := $(generic-offsets-file)
targets := $(generic-offsets-file) lib/asm-offsets.s
targets := lib/asm-offsets.s

# We use internal kbuild rules to avoid the "is up to date" message from make
lib/asm-offsets.s: lib/asm-offsets.c FORCE
Expand All @@ -55,7 +55,6 @@ offsets-file := include/generated/asm-offsets.h
endif

always += $(offsets-file)
targets += $(offsets-file)
targets += arch/$(ARCH)/lib/asm-offsets.s

CFLAGS_asm-offsets.o := -DDO_DEPS_ONLY
Expand Down

0 comments on commit ba84de9

Please sign in to comment.