Skip to contentSkip to conversation

aic7xxx_Makefile fix

TRIVIAL Rusty Trivial Russell 2 participants 3 messages Dec 16, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

From: [email protected]

Patch against 2.4.19. If you are in a (good) habit of making all the upstream sources read-only before starting your build, generation of the firmware code fails because it tries to write into read-only files. This bites only in configurations where CONFIG_AIC7XXX_BUILD_FIRMWARE is set to 'y'.

drivers/scsi/aic7xxx/Makefile renamed from drivers/scsi/aic7xxx/Makefile.orig +1 -0
@@ -39,6 +39,7 @@
 $(obj-aic7xxx): aic7xxx_reg.h
 
 aic7xxx_seq.h aic7xxx_reg.h: aic7xxx.seq aic7xxx.reg aicasm/aicasm
+	rm -f aic7xxx_seq.h aic7xxx_reg.h
 	aicasm/aicasm -I. -r aic7xxx_reg.h -o aic7xxx_seq.h aic7xxx.seq
 endif
 
Signature · 2 lines
  Don't blame me: the Monkey is driving
  File: [email protected]: [TRIVIAL] aic7xxx_Makefile fix
#1 lore raw
Quoted 12 lines · Rusty Trivial Russell

From: [email protected]

Patch against 2.4.19. If you are in a (good) habit of making all the upstream sources read-only before starting your build, generation of the firmware code fails because it tries to write into read-only files. This bites only in configurations where CONFIG_AIC7XXX_BUILD_FIRMWARE is set to 'y'.

drivers/scsi/aic7xxx/Makefile line 44

Quoted 6 lines
drivers/scsi/aic7xxx/Makefile renamed from drivers/scsi/aic7xxx/Makefile.orig +1 -0
@@ -39,6 +39,7 @@
 $(obj-aic7xxx): aic7xxx_reg.h
 
 aic7xxx_seq.h aic7xxx_reg.h: aic7xxx.seq aic7xxx.reg aicasm/aicasm
+	rm -f aic7xxx_seq.h aic7xxx_reg.h
 	aicasm/aicasm -I. -r aic7xxx_reg.h -o aic7xxx_seq.h aic7xxx.seq
 endif

This is 2.4, so I don't feel authorative for that ;) Anyhow, this is not a right fix (it's fixed properly in 2.5). Overwriting shipped files should never happen, the "rm" may fix the symptoms for some cases, but SCS as e.g. bitkeeper will generally not be happy with that kind of behavior.

--Kai

#2 lore raw

In message <[email protected]> y ou write:

Quoted 16 lines · Rusty Trivial Russell
Quoted 15 lines

From: [email protected]

Patch against 2.4.19. If you are in a (good) habit of making all the upstream sources read-only before starting your build, generation of the firmware code fails because it tries to write into read-only files. This bites only in configurations where CONFIG_AIC7XXX_BUILD_FIRMWARE is set to 'y'.

drivers/scsi/aic7xxx/Makefile renamed from drivers/scsi/aic7xxx/Makefile.orig +0 -0
@@ -39,6 +39,7 @@
 $(obj-aic7xxx): aic7xxx_reg.h
 
Quoted 9 lines

drivers/scsi/aic7xxx/Makefile line 44

Quoted 4 lines
drivers/scsi/aic7xxx/Makefile renamed from drivers/scsi/aic7xxx/Makefile.orig +1 -0
 aic7xxx_seq.h aic7xxx_reg.h: aic7xxx.seq aic7xxx.reg aicasm/aicasm
+	rm -f aic7xxx_seq.h aic7xxx_reg.h
 	aicasm/aicasm -I. -r aic7xxx_reg.h -o aic7xxx_seq.h aic7xxx.seq
 endif

This is 2.4, so I don't feel authorative for that ;) Anyhow, this is not a right fix (it's fixed properly in 2.5). Overwriting shipped files should never happen, the "rm" may fix the symptoms for some cases, but SCS as e.g. bitkeeper will generally not be happy with that kind of behavior.

Thanks Kai, I've closed it pending someone doing a backport from 2.5.

Cheers,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.