diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-01-16 01:28:54 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-01-16 01:28:54 +0000 |
commit | 76f1e96f8dc1882f9e992bdf80489929aa746a88 (patch) | |
tree | 6197c933e076ba1c8d2c9ad625c03648217afd6d /wct4xxp/vpm450m.c | |
parent | 1c8d37674171447cb9529db2f0c6b2e12abe3bc8 (diff) |
eliminate the fw2h tool, and instead use objcopy to directly make object files from the firmware binary files
pass HOTPLUG_FIRMWARE down to the module build so that we can avoid various compiler warnings
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1818 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp/vpm450m.c')
-rw-r--r-- | wct4xxp/vpm450m.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/wct4xxp/vpm450m.c b/wct4xxp/vpm450m.c index 8c3ac83..5eb40eb 100644 --- a/wct4xxp/vpm450m.c +++ b/wct4xxp/vpm450m.c @@ -13,8 +13,10 @@ #ifdef HOTPLUG_FIRMWARE #include <linux/firmware.h> #else -#include "vpmoct128_fw.h" -#include "vpmoct064_fw.h" +extern unsigned char _binary_OCT6114_64D_ima_start; +extern unsigned int _binary_OCT6114_64D_ima_size; +extern unsigned char _binary_OCT6114_128D_ima_start; +extern unsigned int _binary_OCT6114_128D_ima_size; #endif #include "oct6100api/oct6100_api.h" @@ -409,11 +411,11 @@ struct vpm450m *init_vpm450m(void *wc, int *isalaw, int numspans) ChipOpen.ulImageSize = firmware->size; #else if (vpm450m->numchans > 64) { - ChipOpen.pbyImageFile = vpmoct128_fw; - ChipOpen.ulImageSize = sizeof(vpmoct128_fw); + ChipOpen.pbyImageFile = &_binary_OCT6114_128D_ima_start; + ChipOpen.ulImageSize = _binary_OCT6114_128D_ima_size; } else { - ChipOpen.pbyImageFile = vpmoct064_fw; - ChipOpen.ulImageSize = sizeof(vpmoct064_fw); + ChipOpen.pbyImageFile = &_binary_OCT6114_64D_ima_start; + ChipOpen.ulImageSize = _binary_OCT6114_64D_ima_size; } #endif |