| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
USB_FW = USB_FW.hex USB_FW.201.hex USB_RECOV.hex |
| 5 |
FPGA_FW = FPGA_FXS.hex FPGA_1141.hex FPGA_1151.hex FPGA_1161.hex \ |
| 6 |
FPGA_1161.201.hex FPGA_1161.202.hex |
| 7 |
PIC_FW = PIC_TYPE_1.hex PIC_TYPE_2.hex PIC_TYPE_3.hex PIC_TYPE_4.hex \ |
| 8 |
PIC_TYPE_6.hex |
| 9 |
OCT_FW = $(wildcard OCT6104E-256D.ima) |
| 10 |
FIRMWARES = $(USB_FW) $(FPGA_FW) $(PIC_FW) $(OCT_FW) |
| 11 |
PROTO_VER = 30 |
| 12 |
SCRIPTS_BASE = $(patsubst %,init_card_%_$(PROTO_VER),1 2 3 4 5 6) |
| 13 |
SCRIPTS = $(SCRIPTS_BASE:%=../%) |
| 14 |
TARGET = $(DESTDIR)/usr/share/dahdi |
| 15 |
|
| 16 |
all: |
| 17 |
|
| 18 |
clean: |
| 19 |
|
| 20 |
install: |
| 21 |
mkdir -p $(TARGET) |
| 22 |
install $(SCRIPTS) $(TARGET)/ |
| 23 |
install -m 644 ../XppConfig.pm $(FIRMWARES) $(TARGET)/ |
| 24 |
for id in 202 203; do \ |
| 25 |
if [ ! -r $(TARGET)/USB_FW.$$id.hex ]; then \ |
| 26 |
ln -s USB_FW.201.hex $(TARGET)/USB_FW.$$id.hex;\ |
| 27 |
fi; \ |
| 28 |
done |
| 29 |
if [ ! -r $(TARGET)/FPGA_1161.203.hex ]; then \ |
| 30 |
ln -s FPGA_1161.201.hex $(TARGET)/FPGA_1161.203.hex;\ |
| 31 |
fi |
| 32 |
|