]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - MAKEALL
Patch by Raghu Krishnaprasad, 7 Aug 2003:
[karo-tx-uboot.git] / MAKEALL
1 #!/bin/sh
2
3 if [ "${CROSS_COMPILE}" ] ; then
4         MAKE="make CROSS_COMPILE=${CROSS_COMPILE}"
5 else
6         MAKE=make
7 fi
8
9 [ -d LOG ] || mkdir LOG || exit 1
10
11 LIST=""
12
13 #########################################################################
14 ## MPC5xx Systems
15 #########################################################################
16
17 LIST_5xx="      \
18         cmi_mpc5xx                                                      \
19 "
20
21 #########################################################################
22 ## MPC5xxx Systems
23 #########################################################################
24
25 LIST_5xxx="     \
26         IceCube_5100    IceCube_5200                                    \
27 "
28
29 #########################################################################
30 ## MPC8xx Systems
31 #########################################################################
32
33 LIST_8xx="      \
34         AdderII         ADS860          AMX860          c2mon           \
35         CCM             cogent_mpc8xx   ESTEEM192E      ETX094          \
36         ELPT860         FADS823         FADS850SAR      FADS860T        \
37         FLAGADM         FPS850L         GEN860T         GEN860T_SC      \
38         GENIETV         GTH             hermes          IAD210          \
39         ICU862_100MHz   IP860           IVML24          IVML24_128      \
40         IVML24_256      IVMS8           IVMS8_128       IVMS8_256       \
41         KUP4K           LANTEC          lwmon           MBX             \
42         MBX860T         MHPC            MPC86xADS       MVS1            \
43         NETVIA          NETVIA_V2       NX823           pcu_e           \
44         R360MPI         RBC823          rmu             RPXClassic      \
45         RPXlite         RRvision        SM850           SPD823TS        \
46         svm_sc8xx       SXNI855T        TOP860          TQM823L         \
47         TQM823L_LCD     TQM850L         TQM855L         TQM860L         \
48         v37                                                             \
49 "
50
51 #########################################################################
52 ## PPC4xx Systems
53 #########################################################################
54
55 LIST_4xx="      \
56         ADCIOP          AR405           ASH405          BUBINGA405EP    \
57         CANBT           CPCI405         CPCI4052        CPCI405AB       \
58         CPCI440         CPCIISER4       CRAYL1          DASA_SIM        \
59         DU405           EBONY           ERIC            EXBITGEN        \
60         MIP405          MIP405T         ML2             OCRTC           \
61         ORSG            PCI405          PIP405          PMC405          \
62         W7OLMC          W7OLMG          WALNUT405                       \
63 "
64
65 #########################################################################
66 ## MPC824x Systems
67 #########################################################################
68
69 LIST_824x="     \
70         A3000           BMW             CPC45           CU824           \
71         MOUSSE          MUSENKI         OXC             PN62            \
72         Sandpoint8240   Sandpoint8245   SL8245          utx8245         \
73 "
74
75 #########################################################################
76 ## MPC8260 Systems (includes 8250, 8255 etc.)
77 #########################################################################
78
79 LIST_8260="     \
80         atc             cogent_mpc8260  CPU86           ep8260          \
81         gw8260          hymod           IPHASE4539      MPC8260ADS      \
82         MPC8266ADS      PM826           ppmc8260        RPXsuper        \
83         rsdproto        sacsng          sbc8260         SCM             \
84         TQM8260_AC      TQM8260_AD      TQM8260_AE                      \
85 "
86
87 #########################################################################
88 ## 74xx/7xx Systems
89 #########################################################################
90
91 LIST_74xx="     \
92         EVB64260        PCIPPC2         PCIPPC6         ZUMA            \
93 "
94
95 LIST_7xx="      \
96         BAB7xx          ELPPC                                           \
97 "
98
99 LIST_ppc="${LIST_5xx}  ${LIST_5xxx} \
100           ${LIST_8xx}  \
101           ${LIST_824x} ${LIST_8260} \
102           ${LIST_4xx}               \
103           ${LIST_74xx} ${LIST_7xx}"
104
105 #########################################################################
106 ## StrongARM Systems
107 #########################################################################
108
109 LIST_SA="dnp1110 lart shannon"
110
111 #########################################################################
112 ## ARM7 Systems
113 #########################################################################
114
115 LIST_ARM7="ep7312 impa7"
116
117 #########################################################################
118 ## ARM9 Systems
119 #########################################################################
120
121 LIST_ARM9="     \
122         at91rm9200dk    omap1510inn     omap1610inn                     \
123         smdk2400        smdk2410        trab                            \
124         VCMA9                                                           \
125 "
126
127 #########################################################################
128 ## Xscale Systems
129 #########################################################################
130
131 LIST_pxa="cradle csb226 innokom lubbock wepep250"
132
133
134 LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_pxa}"
135
136 #########################################################################
137 ## MIPS 4Kc Systems
138 #########################################################################
139
140 LIST_mips4kc="incaip"
141
142 LIST_mips5kc="purple"
143
144 LIST_mips="${LIST_mips4kc} ${LIST_mips5kc}"
145
146 #########################################################################
147 ## i386 Systems
148 #########################################################################
149
150 LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel"
151
152 LIST_x86="${LIST_I486}"
153
154 #-----------------------------------------------------------------------
155
156 #----- for now, just run PPC by default -----
157 [ $# = 0 ] && set $LIST_ppc
158
159 #-----------------------------------------------------------------------
160
161 build_target() {
162         target=$1
163
164         ${MAKE} distclean >/dev/null
165         ${MAKE} ${target}_config
166         ${MAKE} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR
167         ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG
168 }
169
170 #-----------------------------------------------------------------------
171
172
173 for arg in $@
174 do
175         case "$arg" in
176         5xx|5xxx|8xx|824x|8260|4xx|7xx|74xx|SA|ARM7|ARM9|ppc|arm|pxa|mips|I486|x86)
177                         for target in `eval echo '$LIST_'${arg}`
178                         do
179                                 build_target ${target}
180                         done
181                         ;;
182         *)              build_target ${arg}
183                         ;;
184         esac
185 done