scsi: fix missing FORCE for scsi_devinfo_tbl.c build rule
PATCH 1/1 scsi: fix missing FORCE for scsi_devinfo_tbl.c build rule
Add FORCE so that if_changed can detect the command line change. scsi_devinfo_tbl.c must be added to 'targets' too.
Signed-off-by Masahiro Yamada <[email protected]>
---
drivers/scsi/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/scsi/Makefile +4 -2
@@ -183,7 +183,7 @@ CFLAGS_ncr53c8xx.o := $(ncr53c8xx-flags-y) $(ncr53c8xx-flags-m) zalon7xx-objs := zalon.o ncr53c8xx.o # Files generated that shall be removed upon make clean -clean-files := 53c700_d.h 53c700_u.h scsi_devinfo_tbl.c +clean-files := 53c700_d.h 53c700_u.h $(obj)/53c700.o: $(obj)/53c700_d.h
@@ -192,9 +192,11 @@ $(obj)/scsi_sysfs.o: $(obj)/scsi_devinfo_tbl.c quiet_cmd_bflags = GEN $@ cmd_bflags = sed -n 's/.*define *BLIST_\([A-Z0-9_]*\) *.*/BLIST_FLAG_NAME(\1),/p' $< > $@ -$(obj)/scsi_devinfo_tbl.c: include/scsi/scsi_devinfo.h +$(obj)/scsi_devinfo_tbl.c: include/scsi/scsi_devinfo.h FORCE $(call if_changed,bflags) +targets += scsi_devinfo_tbl.c + # If you want to play with the firmware, uncomment # GENERATE_FIRMWARE := 1
Signature · 1 line
2.30.2
Martin K. Petersen
AppliedMasahiro,
Quoted 2 lines
Add FORCE so that
if_changedcan detect the command line change.scsi_devinfo_tbl.cmust be added to 'targets' too.
Applied to 5.15/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 6 lines · Masahiro Yamada
Add FORCE so that
if_changedcan detect the command line change.scsi_devinfo_tbl.cmust be added to 'targets' too.
Applied to 5.15/scsi-queue, thanks!
[1/1] scsi: fix missing FORCE for scsi_devinfo_tbl.c build rule
https://git.kernel.org/mkp/scsi/c/98079418c53f
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering