wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
wdenk | a8c7c70 | 2003-12-06 19:49:23 +0000 | [diff] [blame] | 3 | : ${JOBS:=} |
| 4 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 5 | if [ "${CROSS_COMPILE}" ] ; then |
| 6 | MAKE="make CROSS_COMPILE=${CROSS_COMPILE}" |
| 7 | else |
| 8 | MAKE=make |
| 9 | fi |
| 10 | |
| 11 | [ -d LOG ] || mkdir LOG || exit 1 |
| 12 | |
| 13 | LIST="" |
| 14 | |
| 15 | ######################################################################### |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 16 | ## MPC5xx Systems |
| 17 | ######################################################################### |
| 18 | |
| 19 | LIST_5xx=" \ |
| 20 | cmi_mpc5xx \ |
| 21 | " |
| 22 | |
| 23 | ######################################################################### |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 24 | ## MPC5xxx Systems |
| 25 | ######################################################################### |
| 26 | |
| 27 | LIST_5xxx=" \ |
dzu@denx.de | 6ca24c6 | 2006-04-21 18:30:47 +0200 | [diff] [blame] | 28 | BC3450 cpci5200 EVAL5200 icecube_5100 \ |
| 29 | icecube_5200 lite5200b mcc200 o2dnt \ |
| 30 | pf5200 PM520 Total5100 Total5200 \ |
| 31 | Total5200_Rev2 TQM5200_auto \ |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 32 | " |
| 33 | |
| 34 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 35 | ## MPC8xx Systems |
| 36 | ######################################################################### |
| 37 | |
| 38 | LIST_8xx=" \ |
wdenk | da93ed8 | 2004-09-29 11:02:56 +0000 | [diff] [blame] | 39 | Adder87x GENIETV MBX860T R360MPI \ |
| 40 | AdderII GTH MHPC RBC823 \ |
| 41 | ADS860 hermes MPC86xADS rmu \ |
| 42 | AMX860 IAD210 MPC885ADS RPXClassic \ |
| 43 | c2mon ICU862_100MHz MVS1 RPXlite \ |
| 44 | CCM IP860 NETPHONE RPXlite_DW \ |
| 45 | cogent_mpc8xx IVML24 NETTA RRvision \ |
| 46 | ELPT860 IVML24_128 NETTA2 SM850 \ |
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 47 | EP88x IVML24_256 NETTA_ISDN SPD823TS \ |
| 48 | ESTEEM192E IVMS8 NETVIA svm_sc8xx \ |
| 49 | ETX094 IVMS8_128 NETVIA_V2 SXNI855T \ |
| 50 | FADS823 IVMS8_256 NX823 TOP860 \ |
| 51 | FADS850SAR KUP4K pcu_e TQM823L \ |
| 52 | FADS860T KUP4X QS823 TQM823L_LCD \ |
| 53 | FLAGADM LANTEC QS850 TQM850L \ |
| 54 | FPS850L lwmon QS860T TQM855L \ |
| 55 | GEN860T MBX quantum TQM860L \ |
| 56 | GEN860T_SC uc100 \ |
wdenk | ec0aee7 | 2004-12-19 09:58:11 +0000 | [diff] [blame] | 57 | v37 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 58 | " |
| 59 | |
| 60 | ######################################################################### |
| 61 | ## PPC4xx Systems |
| 62 | ######################################################################### |
| 63 | |
| 64 | LIST_4xx=" \ |
Wolfgang Denk | 7521af1 | 2005-10-09 01:04:33 +0200 | [diff] [blame] | 65 | ADCIOP AP1000 AR405 ASH405 \ |
Stefan Roese | feaedfc | 2005-11-15 10:35:59 +0100 | [diff] [blame] | 66 | bubinga CANBT CMS700 CPCI2DP \ |
| 67 | CPCI405 CPCI4052 CPCI405AB CPCI405DT \ |
| 68 | CPCI440 CPCIISER4 CRAYL1 csb272 \ |
| 69 | csb472 DASA_SIM DP405 DU405 \ |
| 70 | ebony ERIC EXBITGEN G2000 \ |
| 71 | HH405 HUB405 JSE KAREF \ |
Stefan Roese | 6e7fb6e | 2005-11-29 18:18:21 +0100 | [diff] [blame] | 72 | luan METROBOX MIP405 MIP405T \ |
| 73 | ML2 ml300 ocotea OCRTC \ |
| 74 | ORSG p3p440 PCI405 PIP405 \ |
| 75 | PLU405 PMC405 PPChameleonEVB sbc405 \ |
| 76 | VOH405 VOM405 W7OLMC W7OLMG \ |
| 77 | walnut WUH405 XPEDITE1K yellowstone \ |
| 78 | yosemite \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 79 | " |
| 80 | |
| 81 | ######################################################################### |
wdenk | 983fda8 | 2004-10-28 00:09:35 +0000 | [diff] [blame] | 82 | ## MPC8220 Systems |
| 83 | ######################################################################### |
| 84 | |
| 85 | LIST_8220=" \ |
| 86 | Alaska8220 Yukon8220 \ |
| 87 | " |
| 88 | |
| 89 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 90 | ## MPC824x Systems |
| 91 | ######################################################################### |
| 92 | |
| 93 | LIST_824x=" \ |
Wolfgang Denk | 8e6f1a8 | 2005-09-25 18:59:36 +0200 | [diff] [blame] | 94 | A3000 barco BMW CPC45 \ |
| 95 | CU824 debris eXalion HIDDEN_DRAGON \ |
| 96 | MOUSSE MUSENKI MVBLUE OXC \ |
| 97 | PN62 Sandpoint8240 Sandpoint8245 sbc8240 \ |
| 98 | SL8245 utx8245 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 99 | " |
wdenk | 592c5ca | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 100 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 101 | ######################################################################### |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 102 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 103 | ######################################################################### |
| 104 | |
| 105 | LIST_8260=" \ |
wdenk | 384cc68 | 2005-04-03 22:35:21 +0000 | [diff] [blame] | 106 | atc cogent_mpc8260 CPU86 CPU87 \ |
Wolfgang Denk | f901a83 | 2005-08-06 01:42:58 +0200 | [diff] [blame] | 107 | ep8248 ep8260 gw8260 hymod \ |
| 108 | IPHASE4539 ISPAN MPC8260ADS MPC8266ADS \ |
| 109 | MPC8272ADS PM826 PM828 ppmc8260 \ |
| 110 | Rattler8248 RPXsuper rsdproto sacsng \ |
| 111 | sbc8260 SCM TQM8260_AC TQM8260_AD \ |
| 112 | TQM8260_AE ZPC1900 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 113 | " |
| 114 | |
| 115 | ######################################################################### |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 116 | ## MPC83xx Systems (includes 8349, etc.) |
| 117 | ######################################################################### |
| 118 | |
| 119 | LIST_83xx=" \ |
Marian Balakowicz | 991425f | 2006-03-14 16:24:38 +0100 | [diff] [blame] | 120 | MPC8349ADS TQM834x MPC8349EMDS \ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 121 | " |
| 122 | |
| 123 | |
| 124 | ######################################################################### |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 125 | ## MPC85xx Systems (includes 8540, 8560 etc.) |
| 126 | ######################################################################### |
| 127 | |
| 128 | LIST_85xx=" \ |
Lunsheng Wang | b0e3294 | 2005-07-29 10:20:29 -0500 | [diff] [blame] | 129 | MPC8540ADS MPC8540EVAL MPC8541CDS MPC8548CDS \ |
Wolfgang Denk | b4f15fd | 2005-08-05 20:03:38 +0200 | [diff] [blame] | 130 | MPC8555CDS MPC8560ADS PM854 PM856 \ |
| 131 | sbc8540 sbc8560 stxgp3 TQM8540 \ |
Stefan Roese | d96f41e | 2005-11-30 13:06:40 +0100 | [diff] [blame] | 132 | TQM8541 TQM8555 TQM8560 \ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 133 | " |
| 134 | |
| 135 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 136 | ## 74xx/7xx Systems |
| 137 | ######################################################################### |
| 138 | |
| 139 | LIST_74xx=" \ |
wdenk | 3a473b2 | 2004-01-03 00:43:19 +0000 | [diff] [blame] | 140 | DB64360 DB64460 EVB64260 P3G4 \ |
| 141 | PCIPPC2 PCIPPC6 ZUMA \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 142 | " |
| 143 | |
| 144 | LIST_7xx=" \ |
stroese | c419d1d | 2004-12-16 18:44:40 +0000 | [diff] [blame] | 145 | BAB7xx CPCI750 ELPPC \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 146 | " |
| 147 | |
wdenk | 342717f | 2005-06-27 13:30:03 +0000 | [diff] [blame] | 148 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
| 149 | ${LIST_8xx} \ |
| 150 | ${LIST_8220} ${LIST_824x} ${LIST_8260} \ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 151 | ${LIST_83xx} \ |
wdenk | 342717f | 2005-06-27 13:30:03 +0000 | [diff] [blame] | 152 | ${LIST_85xx} \ |
| 153 | ${LIST_4xx} \ |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 154 | ${LIST_74xx} ${LIST_7xx}" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 155 | |
| 156 | ######################################################################### |
| 157 | ## StrongARM Systems |
| 158 | ######################################################################### |
| 159 | |
wdenk | ea66bc8 | 2004-04-15 23:23:39 +0000 | [diff] [blame] | 160 | LIST_SA="assabet dnp1110 gcplus lart shannon" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 161 | |
| 162 | ######################################################################### |
| 163 | ## ARM7 Systems |
| 164 | ######################################################################### |
| 165 | |
Wolfgang Denk | 74f4304 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 166 | LIST_ARM7=" \ |
Wolfgang Denk | c570b2f | 2005-09-26 01:06:33 +0200 | [diff] [blame] | 167 | armadillo B2 ep7312 evb4510 \ |
Wolfgang Denk | 87cb686 | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 168 | impa7 integratorap ap7 ap720t \ |
Wolfgang Denk | 74f4304 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 169 | modnet50 \ |
| 170 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 171 | |
| 172 | ######################################################################### |
| 173 | ## ARM9 Systems |
| 174 | ######################################################################### |
| 175 | |
wdenk | 6f21347 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 176 | LIST_ARM9=" \ |
Wolfgang Denk | 87cb686 | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 177 | at91rm9200dk cmc_pu2 \ |
| 178 | ap920t ap922_XA10 ap926ejs ap946es \ |
| 179 | ap966 cp920t cp922_XA10 cp926ejs \ |
| 180 | cp946es cp966 lpd7a400 mp2usb \ |
Bartlomiej Sieka | addb2e1 | 2006-03-05 18:57:33 +0100 | [diff] [blame] | 181 | mx1ads mx1fs2 netstar omap1510inn \ |
| 182 | omap1610h2 omap1610inn omap730p2 scb9328 \ |
| 183 | smdk2400 smdk2410 trab VCMA9 \ |
| 184 | versatile versatileab versatilepb voiceblue |
wdenk | 6f21347 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 185 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 186 | |
| 187 | ######################################################################### |
Wolfgang Denk | 74f4304 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 188 | ## ARM10 Systems |
| 189 | ######################################################################### |
| 190 | LIST_ARM10=" \ |
Wolfgang Denk | 87cb686 | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 191 | integratorcp cp1026 \ |
Wolfgang Denk | 74f4304 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 192 | " |
| 193 | |
| 194 | ######################################################################### |
wdenk | 8ed9604 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 195 | ## ARM11 Systems |
| 196 | ######################################################################### |
Wolfgang Denk | 74f4304 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 197 | LIST_ARM11=" \ |
Wolfgang Denk | 87cb686 | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 198 | cp1136 omap2420h4 \ |
Wolfgang Denk | 74f4304 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 199 | " |
wdenk | 8ed9604 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 200 | |
| 201 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 202 | ## Xscale Systems |
| 203 | ######################################################################### |
| 204 | |
wdenk | 4ec3a7f | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 205 | LIST_pxa=" \ |
wdenk | 20787e2 | 2005-04-06 00:04:16 +0000 | [diff] [blame] | 206 | adsvix cerf250 cradle csb226 \ |
Wolfgang Denk | 0be248f | 2006-03-07 00:22:36 +0100 | [diff] [blame] | 207 | delta innokom lubbock pxa255_idp \ |
| 208 | wepep250 xaeniax xm250 xsengine \ |
| 209 | zylonite \ |
wdenk | 4ec3a7f | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 210 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 211 | |
wdenk | 2d5b561 | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 212 | LIST_ixp="ixdp425" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 213 | |
wdenk | 2d5b561 | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 214 | |
wdenk | 8ed9604 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 215 | LIST_arm=" \ |
| 216 | ${LIST_SA} \ |
Wolfgang Denk | 74f4304 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 217 | ${LIST_ARM7} ${LIST_ARM9} ${LIST_ARM10} ${LIST_ARM11} \ |
wdenk | 8ed9604 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 218 | ${LIST_pxa} ${LIST_ixp} \ |
| 219 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 220 | |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 221 | ######################################################################### |
Wolfgang Denk | b62bdff | 2005-08-14 00:27:00 +0200 | [diff] [blame] | 222 | ## MIPS Systems (default = big endian) |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 223 | ######################################################################### |
| 224 | |
| 225 | LIST_mips4kc="incaip" |
| 226 | |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 227 | LIST_mips5kc="purple" |
| 228 | |
wdenk | ff36fd8 | 2005-01-09 22:28:56 +0000 | [diff] [blame] | 229 | LIST_au1xx0="dbau1000 dbau1100 dbau1500 dbau1550 dbau1550_el" |
wdenk | 5da627a | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 230 | |
wdenk | ff36fd8 | 2005-01-09 22:28:56 +0000 | [diff] [blame] | 231 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1xx0}" |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 232 | |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 233 | ######################################################################### |
Wolfgang Denk | b62bdff | 2005-08-14 00:27:00 +0200 | [diff] [blame] | 234 | ## MIPS Systems (little endian) |
| 235 | ######################################################################### |
| 236 | |
| 237 | LIST_mips4kc_el="" |
| 238 | |
| 239 | LIST_mips5kc_el="" |
| 240 | |
| 241 | LIST_au1xx0_el="dbau1550_el" |
| 242 | |
| 243 | LIST_mips_el="${LIST_mips4kc_el} ${LIST_mips5kc_el} ${LIST_au1xx0_el}" |
| 244 | |
| 245 | ######################################################################### |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 246 | ## i386 Systems |
| 247 | ######################################################################### |
| 248 | |
| 249 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" |
| 250 | |
| 251 | LIST_x86="${LIST_I486}" |
| 252 | |
wdenk | c935d3b | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 253 | ######################################################################### |
| 254 | ## NIOS Systems |
| 255 | ######################################################################### |
| 256 | |
| 257 | LIST_nios=" \ |
wdenk | aaf224a | 2004-03-14 15:20:55 +0000 | [diff] [blame] | 258 | ADNPESC1 ADNPESC1_base_32 \ |
| 259 | ADNPESC1_DNPEVA2_base_32 \ |
wdenk | c935d3b | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 260 | DK1C20 DK1C20_standard_32 \ |
wdenk | ec4c544 | 2004-02-09 23:12:24 +0000 | [diff] [blame] | 261 | DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \ |
wdenk | c935d3b | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 262 | " |
| 263 | |
wdenk | 857cad3 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 264 | ######################################################################### |
wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 265 | ## Nios-II Systems |
| 266 | ######################################################################### |
| 267 | |
| 268 | LIST_nios2="PCI5441 PK1C20" |
| 269 | |
| 270 | ######################################################################### |
wdenk | 857cad3 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 271 | ## MicroBlaze Systems |
| 272 | ######################################################################### |
| 273 | |
| 274 | LIST_microblaze="suzaku" |
| 275 | |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 276 | #----------------------------------------------------------------------- |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 277 | |
| 278 | #----- for now, just run PPC by default ----- |
| 279 | [ $# = 0 ] && set $LIST_ppc |
| 280 | |
| 281 | #----------------------------------------------------------------------- |
| 282 | |
| 283 | build_target() { |
| 284 | target=$1 |
| 285 | |
| 286 | ${MAKE} distclean >/dev/null |
| 287 | ${MAKE} ${target}_config |
wdenk | a8c7c70 | 2003-12-06 19:49:23 +0000 | [diff] [blame] | 288 | ${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 289 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
| 290 | } |
| 291 | |
| 292 | #----------------------------------------------------------------------- |
| 293 | |
| 294 | |
| 295 | for arg in $@ |
| 296 | do |
| 297 | case "$arg" in |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 298 | ppc|5xx|5xxx|8xx|8220|824x|8260|83xx|85xx|4xx|7xx|74xx| \ |
Wolfgang Denk | 74f4304 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 299 | arm|SA|ARM7|ARM9|ARM10|ARM11|pxa|ixp| \ |
wdenk | 857cad3 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 300 | microblaze| \ |
Wolfgang Denk | b62bdff | 2005-08-14 00:27:00 +0200 | [diff] [blame] | 301 | mips|mips_el| \ |
wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 302 | nios|nios2| \ |
wdenk | 2d5b561 | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 303 | x86|I486) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 304 | for target in `eval echo '$LIST_'${arg}` |
| 305 | do |
| 306 | build_target ${target} |
| 307 | done |
| 308 | ;; |
| 309 | *) build_target ${arg} |
| 310 | ;; |
| 311 | esac |
| 312 | done |