Commit b3434820 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: aic7xxx firmware build should not overwrite shipped files

o Add dependencies on generated files explicitly to the
  aic7xxx Makefile - These cannot be figured out
  automatically
 
o Rename the precompiled firmware files to 
  shipped_aic7xxx_{reg,seq}.h, so that we don't overwrite 
  shipped files when regenerating the firmware
parent 5f044d28
......@@ -330,6 +330,8 @@ CLEAN_FILES += \
drivers/zorro/devlist.h drivers/zorro/gen-devlist \
sound/oss/bin2hex sound/oss/hex2hex \
drivers/atm/fore200e_mkfirm drivers/atm/{pca,sba}*{.bin,.bin1,.bin2} \
drivers/scsi/aic7xxx/aic7xxx_seq.h \
drivers/scsi/aic7xxx/aic7xxx_reg.h \
drivers/scsi/aic7xxx/aicasm/aicasm_gram.c \
drivers/scsi/aic7xxx/aicasm/aicasm_scan.c \
drivers/scsi/aic7xxx/aicasm/y.tab.h \
......
......@@ -24,9 +24,22 @@ endif
include $(TOPDIR)/Rules.make
# Dependencies for generated files need to be listed explicitly
aic7xxx_core.o: aic7xxx_seq.h
$(aic7xxx-objs): aic7xxx_reg.h
ifeq ($(CONFIG_AIC7XXX_BUILD_FIRMWARE),y)
aic7xxx_seq.h aic7xxx_reg.h: aic7xxx.seq aic7xxx.reg aicasm/aicasm
aicasm/aicasm -I. -r aic7xxx_reg.h -o aic7xxx_seq.h aic7xxx.seq
else
aic7xxx_seq.h aic7xxx_reg.h: %.h : shipped_%.h
cp $< $@
endif
aicasm/aicasm: aicasm/*.[chyl]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment