Skip to content

Commit a3c7ca2

Browse files
keesmasahir0y
authored andcommitted
sparc: Add missing "FORCE" target when using if_changed
Fix observed warning: /builds/linux/arch/sparc/boot/Makefile:35: FORCE prerequisite is missing Fixes: e1f86d7 ("kbuild: warn if FORCE is missing for if_changed(_dep,_rule) and filechk") Signed-off-by: Kees Cook <[email protected]> Acked-by: Nicolas Schier <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent fee762d commit a3c7ca2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/sparc/boot/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ifeq ($(CONFIG_SPARC64),y)
2222

2323
# Actual linking
2424

25-
$(obj)/zImage: $(obj)/image
25+
$(obj)/zImage: $(obj)/image FORCE
2626
$(call if_changed,gzip)
2727
@echo ' kernel: $@ is ready'
2828

@@ -31,7 +31,7 @@ $(obj)/vmlinux.aout: vmlinux FORCE
3131
@echo ' kernel: $@ is ready'
3232
else
3333

34-
$(obj)/zImage: $(obj)/image
34+
$(obj)/zImage: $(obj)/image FORCE
3535
$(call if_changed,strip)
3636
@echo ' kernel: $@ is ready'
3737

@@ -44,7 +44,7 @@ OBJCOPYFLAGS_image.bin := -S -O binary -R .note -R .comment
4444
$(obj)/image.bin: $(obj)/image FORCE
4545
$(call if_changed,objcopy)
4646

47-
$(obj)/image.gz: $(obj)/image.bin
47+
$(obj)/image.gz: $(obj)/image.bin FORCE
4848
$(call if_changed,gzip)
4949

5050
UIMAGE_LOADADDR = $(CONFIG_UBOOT_LOAD_ADDR)
@@ -56,7 +56,7 @@ quiet_cmd_uimage.o = UIMAGE.O $@
5656
-r -b binary $@ -o $@.o
5757

5858
targets += uImage
59-
$(obj)/uImage: $(obj)/image.gz
59+
$(obj)/uImage: $(obj)/image.gz FORCE
6060
$(call if_changed,uimage)
6161
$(call if_changed,uimage.o)
6262
@echo ' Image $@ is ready'

0 commit comments

Comments
 (0)