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