comparison nuc-fw/cfgmagic/post-target @ 113:3b2e941043d8

nuc-fw/bsp: niq32.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 20 Oct 2013 21:12:41 +0000
parents 45911ad957fd
children 1e41550feec5
comparison
equal deleted inserted replaced
112:4179acab05f7 113:3b2e941043d8
42 exit 1 42 exit 1
43 fi 43 fi
44 44
45 case "$DBB_type" in 45 case "$DBB_type" in
46 751992*) 46 751992*)
47 # This is the only Calypso variant we currently work with,
48 # and we have no authoritative knowledge of the correct
49 # CHIPSET number - only a current best guess.
50 CHIPSET=10 47 CHIPSET=10
51 # let's hope for the best 48 # Thanks to the Sotovik find, we now have authoritative
49 # knowledge that this number is correct.
52 ;; 50 ;;
53 *) 51 *)
54 echo "Error: unknown DBB_type=$DBB_type" 1>&2 52 echo "Error: unknown DBB_type=$DBB_type" 1>&2
55 exit 1 53 exit 1
56 ;; 54 ;;
75 exit 1 73 exit 1
76 ;; 74 ;;
77 esac 75 esac
78 export_to_c ANALOG 76 export_to_c ANALOG
79 77
78 if [ -z "$RF_type" ]
79 then
80 echo "Error: target.$TARGET failed to define RF_type" 1>&2
81 exit 1
82 fi
83
84 case "$RF_type" in
85 Rita*)
86 RF_FAM=12
87 ;;
88 *)
89 echo "Error: unknown RF_type=$RF_type" 1>&2
90 exit 1
91 ;;
92 esac
93 export_to_c RF_FAM
94
95 # !!! Dirty hack !!!
96 #
97 # All targets which we currently support or have realistic prospects of
98 # supporting are derived from TI's D-sample and/or Leonardo reference designs.
99 # TI's voodoo BOARD number for D-sample is 41, and Leonardo apparently
100 # shared D-sample's number instead of having its own.
101 # My initial hope was to keep those BOARD conditionals out of our code,
102 # but they are sprinkled so liberally throughout TI's code that it's
103 # too much extra work to reshape them into something cleaner.
104 # So for now let's export a #define BOARD 41 for all targets
105 # and leave it be.
106
107 BOARD=41
108 export_to_c BOARD
109
80 # Ensure that device_class is set - various feature configurations 110 # Ensure that device_class is set - various feature configurations
81 # will certainly depend on it. 111 # will certainly depend on it.
82 if [ -z "$device_class" ] 112 if [ -z "$device_class" ]
83 then 113 then
84 echo "Error: target.$TARGET failed to define device_class" 1>&2 114 echo "Error: target.$TARGET failed to define device_class" 1>&2