diff options
author | Chas Williams <chas@cmf.nrl.navy.mil> | 2008-06-17 19:23:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-17 19:23:11 -0400 |
commit | e92481f95375aa2702ea5018b0295792ae0fa9c1 (patch) | |
tree | 9e3415425daa7a39935c012d1decb8f257ee708d /drivers/atm/Makefile | |
parent | 7255ca3f3c928fec6d9ce607fed7d0a4f4fca6f7 (diff) |
atm: [fore200e] convert to use request_firmware()
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/Makefile')
-rw-r--r-- | drivers/atm/Makefile | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/drivers/atm/Makefile b/drivers/atm/Makefile index e4fa99658699..0bfb31748ecf 100644 --- a/drivers/atm/Makefile +++ b/drivers/atm/Makefile | |||
@@ -3,14 +3,6 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | fore_200e-objs := fore200e.o | 5 | fore_200e-objs := fore200e.o |
6 | hostprogs-y := fore200e_mkfirm | ||
7 | |||
8 | # Files generated that shall be removed upon make clean | ||
9 | clean-files := atmsar11.bin atmsar11.bin1 atmsar11.bin2 pca200e.bin \ | ||
10 | pca200e.bin1 pca200e.bin2 pca200e_ecd.bin pca200e_ecd.bin1 \ | ||
11 | pca200e_ecd.bin2 sba200e_ecd.bin sba200e_ecd.bin1 sba200e_ecd.bin2 | ||
12 | # Firmware generated that shall be removed upon make clean | ||
13 | clean-files += fore200e_pca_fw.c fore200e_sba_fw.c | ||
14 | 6 | ||
15 | obj-$(CONFIG_ATM_ZATM) += zatm.o uPD98402.o | 7 | obj-$(CONFIG_ATM_ZATM) += zatm.o uPD98402.o |
16 | obj-$(CONFIG_ATM_NICSTAR) += nicstar.o | 8 | obj-$(CONFIG_ATM_NICSTAR) += nicstar.o |
@@ -36,38 +28,7 @@ obj-$(CONFIG_ATM_TCP) += atmtcp.o | |||
36 | obj-$(CONFIG_ATM_FIRESTREAM) += firestream.o | 28 | obj-$(CONFIG_ATM_FIRESTREAM) += firestream.o |
37 | obj-$(CONFIG_ATM_LANAI) += lanai.o | 29 | obj-$(CONFIG_ATM_LANAI) += lanai.o |
38 | 30 | ||
39 | ifeq ($(CONFIG_ATM_FORE200E_PCA),y) | ||
40 | fore_200e-objs += fore200e_pca_fw.o | ||
41 | # guess the target endianess to choose the right PCA-200E firmware image | ||
42 | ifeq ($(CONFIG_ATM_FORE200E_PCA_DEFAULT_FW),y) | ||
43 | byteorder.h := include$(if $(patsubst $(srctree),,$(objtree)),2)/asm/byteorder.h | ||
44 | CONFIG_ATM_FORE200E_PCA_FW := $(obj)/pca200e$(if $(shell $(CC) $(KBUILD_CPPFLAGS) -E -dM $(byteorder.h) | grep ' __LITTLE_ENDIAN '),.bin,_ecd.bin2) | ||
45 | endif | ||
46 | endif | ||
47 | |||
48 | ifeq ($(CONFIG_ATM_FORE200E_SBA),y) | ||
49 | fore_200e-objs += fore200e_sba_fw.o | ||
50 | ifeq ($(CONFIG_ATM_FORE200E_SBA_DEFAULT_FW),y) | ||
51 | CONFIG_ATM_FORE200E_SBA_FW := $(obj)/sba200e_ecd.bin2 | ||
52 | endif | ||
53 | endif | ||
54 | obj-$(CONFIG_ATM_HE) += he.o | 31 | obj-$(CONFIG_ATM_HE) += he.o |
55 | ifeq ($(CONFIG_ATM_HE_USE_SUNI),y) | 32 | ifeq ($(CONFIG_ATM_HE_USE_SUNI),y) |
56 | obj-$(CONFIG_ATM_HE) += suni.o | 33 | obj-$(CONFIG_ATM_HE) += suni.o |
57 | endif | 34 | endif |
58 | |||
59 | # FORE Systems 200E-series firmware magic | ||
60 | $(obj)/fore200e_pca_fw.c: $(patsubst "%", %, $(CONFIG_ATM_FORE200E_PCA_FW)) \ | ||
61 | $(obj)/fore200e_mkfirm | ||
62 | $(obj)/fore200e_mkfirm -k -b _fore200e_pca_fw \ | ||
63 | -i $(CONFIG_ATM_FORE200E_PCA_FW) -o $@ | ||
64 | |||
65 | $(obj)/fore200e_sba_fw.c: $(patsubst "%", %, $(CONFIG_ATM_FORE200E_SBA_FW)) \ | ||
66 | $(obj)/fore200e_mkfirm | ||
67 | $(obj)/fore200e_mkfirm -k -b _fore200e_sba_fw \ | ||
68 | -i $(CONFIG_ATM_FORE200E_SBA_FW) -o $@ | ||
69 | |||
70 | # deal with the various suffixes of the binary firmware images | ||
71 | $(obj)/%.bin $(obj)/%.bin1 $(obj)/%.bin2: $(src)/%.data | ||
72 | objcopy -Iihex $< -Obinary $@.gz | ||
73 | gzip -n -df $@.gz | ||