Commit c860bf51 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: cleanup drivers/scsi firmware generation, part 2

Preprocess the input files directly instead of first copying
them to a different name.
parent 602beafe
......@@ -129,36 +129,29 @@ a100u2w-objs := inia100.o i60uscsi.o
cpqfc-objs := cpqfcTSinit.o cpqfcTScontrol.o cpqfcTSi2c.o \
cpqfcTSworker.o cpqfcTStrigger.o
EXTRA_TARGETS := 53c8xx_d.h 53c7xx_d.h sim710_d.h 53c700_d.h
include $(TOPDIR)/Rules.make
53c7,8xx.o: 53c8xx_d.h 53c8xx_u.h
53c7xx.o: 53c7xx_d.h 53c7xx_u.h
sim710.o: sim710_d.h
53c700.o: 53c700_d.h
53c8xx_d.h: 53c7,8xx.scr script_asm.pl
ln -sf 53c7,8xx.scr fake8.c
$(CPP) $(CPPFLAGS) -traditional -DCHIP=810 fake8.c | grep -v '^#' | $(PERL) script_asm.pl $@ $(@:_d.h=_u.h)
rm fake8.c
$(CPP) -traditional -DCHIP=810 - < $< | grep -v '^#' | $(PERL) script_asm.pl $@ $(@:_d.h=_u.h)
53c8xx_u.h: 53c8xx_d.h
53c7,8xx.o: 53c8xx_u.h
53c7xx_d.h: 53c7xx.scr script_asm.pl
ln -sf $< fake7.c
$(CPP) $(CPPFLAGS) -traditional -DCHIP=710 fake7.c | grep -v '^#' | $(PERL) -s script_asm.pl -ncr7x0_family $@ $(@:_d.h=_u.h)
rm fake7.c
$(CPP) -traditional -DCHIP=710 - < $< | grep -v '^#' | $(PERL) -s script_asm.pl -ncr7x0_family $@ $(@:_d.h=_u.h)
53c7xx_u.h: 53c7xx_d.h
53c7xx.o : 53c7xx_d.h
sim710_d.h: sim710.scr script_asm.pl
ln -sf $< fake7.c
$(CPP) $(CPPFLAGS) -traditional -DCHIP=710 fake7.c | grep -v '^#' | $(PERL) -s script_asm.pl -ncr7x0_family $@ $(@:_d.h=_u.h)
rm fake7.c
$(CPP) -traditional -DCHIP=710 - < $< | grep -v '^#' | $(PERL) -s script_asm.pl -ncr7x0_family $@ $(@:_d.h=_u.h)
sim710_u.h: sim710_d.h
sim710.o : sim710_d.h
53c700_d.h: 53c700.scr script_asm.pl
$(PERL) -s script_asm.pl -ncr7x0_family $@ $(@:_d.h=_u.h) < $<
53c700.o: 53c700_d.h
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