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=" \ |
wdenk | e35745b | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 28 | icecube_5100 icecube_5200 EVAL5200 PM520 \ |
wdenk | 8f0b7cb | 2005-03-27 23:41:39 +0000 | [diff] [blame] | 29 | Total5100 Total5200 Total5200_Rev2 TQM5200_auto \ |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 30 | " |
| 31 | |
| 32 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 33 | ## MPC8xx Systems |
| 34 | ######################################################################### |
| 35 | |
| 36 | LIST_8xx=" \ |
wdenk | da93ed8 | 2004-09-29 11:02:56 +0000 | [diff] [blame] | 37 | Adder87x GENIETV MBX860T R360MPI \ |
| 38 | AdderII GTH MHPC RBC823 \ |
| 39 | ADS860 hermes MPC86xADS rmu \ |
| 40 | AMX860 IAD210 MPC885ADS RPXClassic \ |
| 41 | c2mon ICU862_100MHz MVS1 RPXlite \ |
| 42 | CCM IP860 NETPHONE RPXlite_DW \ |
| 43 | cogent_mpc8xx IVML24 NETTA RRvision \ |
| 44 | ELPT860 IVML24_128 NETTA2 SM850 \ |
| 45 | ESTEEM192E IVML24_256 NETTA_ISDN SPD823TS \ |
| 46 | ETX094 IVMS8 NETVIA svm_sc8xx \ |
| 47 | FADS823 IVMS8_128 NETVIA_V2 SXNI855T \ |
| 48 | FADS850SAR IVMS8_256 NX823 TOP860 \ |
| 49 | FADS860T KUP4K pcu_e TQM823L \ |
| 50 | FLAGADM KUP4X QS823 TQM823L_LCD \ |
| 51 | FPS850L LANTEC QS850 TQM850L \ |
| 52 | GEN860T lwmon QS860T TQM855L \ |
| 53 | GEN860T_SC MBX quantum TQM860L \ |
wdenk | ec0aee7 | 2004-12-19 09:58:11 +0000 | [diff] [blame] | 54 | uc100 \ |
| 55 | v37 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 56 | " |
| 57 | |
| 58 | ######################################################################### |
| 59 | ## PPC4xx Systems |
| 60 | ######################################################################### |
| 61 | |
| 62 | LIST_4xx=" \ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 63 | ADCIOP AR405 ASH405 bubinga \ |
wdenk | cd0a9de | 2004-02-23 20:48:38 +0000 | [diff] [blame] | 64 | CANBT CPCI405 CPCI4052 CPCI405AB \ |
| 65 | CPCI440 CPCIISER4 CRAYL1 csb272 \ |
wdenk | aa24509 | 2004-06-09 12:47:02 +0000 | [diff] [blame] | 66 | csb472 DASA_SIM DP405 DU405 \ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 67 | ebony ERIC EXBITGEN HUB405 \ |
wdenk | aa24509 | 2004-06-09 12:47:02 +0000 | [diff] [blame] | 68 | JSE MIP405 MIP405T ML2 \ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 69 | ml300 ocotea OCRTC ORSG \ |
wdenk | aa24509 | 2004-06-09 12:47:02 +0000 | [diff] [blame] | 70 | PCI405 PIP405 PLU405 PMC405 \ |
| 71 | PPChameleonEVB VOH405 W7OLMC W7OLMG \ |
Stefan Roese | 8a316c9 | 2005-08-01 16:49:12 +0200 | [diff] [blame] | 72 | walnut WUH405 XPEDITE1K yellowstone \ |
| 73 | yosemite \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 74 | " |
| 75 | |
| 76 | ######################################################################### |
wdenk | 983fda8 | 2004-10-28 00:09:35 +0000 | [diff] [blame] | 77 | ## MPC8220 Systems |
| 78 | ######################################################################### |
| 79 | |
| 80 | LIST_8220=" \ |
| 81 | Alaska8220 Yukon8220 \ |
| 82 | " |
| 83 | |
| 84 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 85 | ## MPC824x Systems |
| 86 | ######################################################################### |
| 87 | |
| 88 | LIST_824x=" \ |
wdenk | cd0a9de | 2004-02-23 20:48:38 +0000 | [diff] [blame] | 89 | A3000 BMW CPC45 CU824 \ |
wdenk | 756f586 | 2005-04-03 15:51:42 +0000 | [diff] [blame] | 90 | debris eXalion HIDDEN_DRAGON MOUSSE \ |
| 91 | MUSENKI MVBLUE OXC PN62 \ |
| 92 | Sandpoint8240 Sandpoint8245 SL8245 utx8245 \ |
| 93 | sbc8240 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 94 | " |
wdenk | 592c5ca | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 95 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 96 | ######################################################################### |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 97 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 98 | ######################################################################### |
| 99 | |
| 100 | LIST_8260=" \ |
wdenk | 384cc68 | 2005-04-03 22:35:21 +0000 | [diff] [blame] | 101 | atc cogent_mpc8260 CPU86 CPU87 \ |
wdenk | 8b0bfc6 | 2005-04-03 23:11:38 +0000 | [diff] [blame] | 102 | ep8260 gw8260 hymod IPHASE4539 \ |
wdenk | 384cc68 | 2005-04-03 22:35:21 +0000 | [diff] [blame] | 103 | ISPAN MPC8260ADS MPC8266ADS MPC8272ADS \ |
wdenk | 8b0bfc6 | 2005-04-03 23:11:38 +0000 | [diff] [blame] | 104 | PM826 PM828 ppmc8260 Rattler8248 \ |
| 105 | RPXsuper rsdproto sacsng sbc8260 \ |
| 106 | SCM TQM8260_AC TQM8260_AD TQM8260_AE \ |
| 107 | ZPC1900 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 108 | " |
| 109 | |
| 110 | ######################################################################### |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 111 | ## MPC85xx Systems (includes 8540, 8560 etc.) |
| 112 | ######################################################################### |
| 113 | |
| 114 | LIST_85xx=" \ |
wdenk | 03f5c55 | 2004-10-10 21:21:55 +0000 | [diff] [blame] | 115 | MPC8540ADS MPC8541CDS MPC8555CDS MPC8560ADS \ |
wdenk | 384cc68 | 2005-04-03 22:35:21 +0000 | [diff] [blame] | 116 | PM854 sbc8540 sbc8560 stxgp3 \ |
| 117 | TQM8540 \ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 118 | " |
| 119 | |
| 120 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 121 | ## 74xx/7xx Systems |
| 122 | ######################################################################### |
| 123 | |
| 124 | LIST_74xx=" \ |
wdenk | 3a473b2 | 2004-01-03 00:43:19 +0000 | [diff] [blame] | 125 | DB64360 DB64460 EVB64260 P3G4 \ |
| 126 | PCIPPC2 PCIPPC6 ZUMA \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 127 | " |
| 128 | |
| 129 | LIST_7xx=" \ |
stroese | c419d1d | 2004-12-16 18:44:40 +0000 | [diff] [blame] | 130 | BAB7xx CPCI750 ELPPC \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 131 | " |
| 132 | |
wdenk | 342717f | 2005-06-27 13:30:03 +0000 | [diff] [blame] | 133 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
| 134 | ${LIST_8xx} \ |
| 135 | ${LIST_8220} ${LIST_824x} ${LIST_8260} \ |
| 136 | ${LIST_85xx} \ |
| 137 | ${LIST_4xx} \ |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 138 | ${LIST_74xx} ${LIST_7xx}" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 139 | |
| 140 | ######################################################################### |
| 141 | ## StrongARM Systems |
| 142 | ######################################################################### |
| 143 | |
wdenk | ea66bc8 | 2004-04-15 23:23:39 +0000 | [diff] [blame] | 144 | LIST_SA="assabet dnp1110 gcplus lart shannon" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 145 | |
| 146 | ######################################################################### |
| 147 | ## ARM7 Systems |
| 148 | ######################################################################### |
| 149 | |
wdenk | 3953988 | 2004-07-01 16:30:44 +0000 | [diff] [blame] | 150 | LIST_ARM7="B2 ep7312 evb4510 impa7 modnet50" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 151 | |
| 152 | ######################################################################### |
| 153 | ## ARM9 Systems |
| 154 | ######################################################################### |
| 155 | |
wdenk | 6f21347 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 156 | LIST_ARM9=" \ |
wdenk | cf33678 | 2004-10-10 20:23:57 +0000 | [diff] [blame] | 157 | at91rm9200dk cmc_pu2 integratorcp integratorap \ |
| 158 | lpd7a400 mx1ads mx1fs2 omap1510inn \ |
| 159 | omap1610h2 omap1610inn omap730p2 scb9328 \ |
| 160 | smdk2400 smdk2410 trab VCMA9 \ |
wdenk | 3c2b3d4 | 2005-04-05 23:32:21 +0000 | [diff] [blame] | 161 | versatile voiceblue \ |
wdenk | 6f21347 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 162 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 163 | |
| 164 | ######################################################################### |
wdenk | 8ed9604 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 165 | ## ARM11 Systems |
| 166 | ######################################################################### |
| 167 | LIST_ARM11="omap2420h4" |
| 168 | |
| 169 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 170 | ## Xscale Systems |
| 171 | ######################################################################### |
| 172 | |
wdenk | 4ec3a7f | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 173 | LIST_pxa=" \ |
wdenk | 20787e2 | 2005-04-06 00:04:16 +0000 | [diff] [blame] | 174 | adsvix cerf250 cradle csb226 \ |
| 175 | innokom lubbock wepep250 xaeniax \ |
| 176 | xm250 xsengine \ |
wdenk | 4ec3a7f | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 177 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 178 | |
wdenk | 2d5b561 | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 179 | LIST_ixp="ixdp425" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 180 | |
wdenk | 2d5b561 | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 181 | |
wdenk | 8ed9604 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 182 | LIST_arm=" \ |
| 183 | ${LIST_SA} \ |
| 184 | ${LIST_ARM7} ${LIST_ARM9} ${LIST_ARM11} \ |
| 185 | ${LIST_pxa} ${LIST_ixp} \ |
| 186 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 187 | |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 188 | ######################################################################### |
wdenk | 5da627a | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 189 | ## MIPS Systems |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 190 | ######################################################################### |
| 191 | |
| 192 | LIST_mips4kc="incaip" |
| 193 | |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 194 | LIST_mips5kc="purple" |
| 195 | |
wdenk | ff36fd8 | 2005-01-09 22:28:56 +0000 | [diff] [blame] | 196 | LIST_au1xx0="dbau1000 dbau1100 dbau1500 dbau1550 dbau1550_el" |
wdenk | 5da627a | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 197 | |
wdenk | ff36fd8 | 2005-01-09 22:28:56 +0000 | [diff] [blame] | 198 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1xx0}" |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 199 | |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 200 | ######################################################################### |
| 201 | ## i386 Systems |
| 202 | ######################################################################### |
| 203 | |
| 204 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" |
| 205 | |
| 206 | LIST_x86="${LIST_I486}" |
| 207 | |
wdenk | c935d3b | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 208 | ######################################################################### |
| 209 | ## NIOS Systems |
| 210 | ######################################################################### |
| 211 | |
| 212 | LIST_nios=" \ |
wdenk | aaf224a | 2004-03-14 15:20:55 +0000 | [diff] [blame] | 213 | ADNPESC1 ADNPESC1_base_32 \ |
| 214 | ADNPESC1_DNPEVA2_base_32 \ |
wdenk | c935d3b | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 215 | DK1C20 DK1C20_standard_32 \ |
wdenk | ec4c544 | 2004-02-09 23:12:24 +0000 | [diff] [blame] | 216 | DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \ |
wdenk | c935d3b | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 217 | " |
| 218 | |
wdenk | 857cad3 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 219 | ######################################################################### |
wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 220 | ## Nios-II Systems |
| 221 | ######################################################################### |
| 222 | |
| 223 | LIST_nios2="PCI5441 PK1C20" |
| 224 | |
| 225 | ######################################################################### |
wdenk | 857cad3 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 226 | ## MicroBlaze Systems |
| 227 | ######################################################################### |
| 228 | |
| 229 | LIST_microblaze="suzaku" |
| 230 | |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 231 | #----------------------------------------------------------------------- |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 232 | |
| 233 | #----- for now, just run PPC by default ----- |
| 234 | [ $# = 0 ] && set $LIST_ppc |
| 235 | |
| 236 | #----------------------------------------------------------------------- |
| 237 | |
| 238 | build_target() { |
| 239 | target=$1 |
| 240 | |
| 241 | ${MAKE} distclean >/dev/null |
| 242 | ${MAKE} ${target}_config |
wdenk | a8c7c70 | 2003-12-06 19:49:23 +0000 | [diff] [blame] | 243 | ${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 244 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
| 245 | } |
| 246 | |
| 247 | #----------------------------------------------------------------------- |
| 248 | |
| 249 | |
| 250 | for arg in $@ |
| 251 | do |
| 252 | case "$arg" in |
wdenk | 983fda8 | 2004-10-28 00:09:35 +0000 | [diff] [blame] | 253 | ppc|5xx|5xxx|8xx|8220|824x|8260|85xx|4xx|7xx|74xx| \ |
wdenk | 8ed9604 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 254 | arm|SA|ARM7|ARM9|ARM11|pxa|ixp| \ |
wdenk | 857cad3 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 255 | microblaze| \ |
wdenk | 2d5b561 | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 256 | mips| \ |
wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 257 | nios|nios2| \ |
wdenk | 2d5b561 | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 258 | x86|I486) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 259 | for target in `eval echo '$LIST_'${arg}` |
| 260 | do |
| 261 | build_target ${target} |
| 262 | done |
| 263 | ;; |
| 264 | *) build_target ${arg} |
| 265 | ;; |
| 266 | esac |
| 267 | done |