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=" \ |
wdenk | e44b911 | 2004-04-18 23:32:11 +0000 | [diff] [blame] | 28 | icecube_5100 icecube_5200 EVAL5200 PM520 \ |
wdenk | a594888 | 2005-03-27 23:41:39 +0000 | [diff] [blame] | 29 | Total5100 Total5200 Total5200_Rev2 TQM5200_auto \ |
wdenk | 21136db | 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 | 7d1eb82 | 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 | 11392db | 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=" \ |
wdenk | f70cbb2 | 2004-02-23 20:48:38 +0000 | [diff] [blame] | 63 | ADCIOP AR405 ASH405 BUBINGA405EP \ |
| 64 | CANBT CPCI405 CPCI4052 CPCI405AB \ |
| 65 | CPCI440 CPCIISER4 CRAYL1 csb272 \ |
wdenk | 7e920de | 2004-06-09 12:47:02 +0000 | [diff] [blame] | 66 | csb472 DASA_SIM DP405 DU405 \ |
| 67 | EBONY ERIC EXBITGEN HUB405 \ |
| 68 | JSE MIP405 MIP405T ML2 \ |
| 69 | ml300 OCOTEA OCRTC ORSG \ |
| 70 | PCI405 PIP405 PLU405 PMC405 \ |
| 71 | PPChameleonEVB VOH405 W7OLMC W7OLMG \ |
stroese | 05b8891 | 2004-12-16 18:44:40 +0000 | [diff] [blame] | 72 | WALNUT405 WUH405 XPEDITE1K \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 73 | " |
| 74 | |
| 75 | ######################################################################### |
wdenk | 337f565 | 2004-10-28 00:09:35 +0000 | [diff] [blame] | 76 | ## MPC8220 Systems |
| 77 | ######################################################################### |
| 78 | |
| 79 | LIST_8220=" \ |
| 80 | Alaska8220 Yukon8220 \ |
| 81 | " |
| 82 | |
| 83 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 84 | ## MPC824x Systems |
| 85 | ######################################################################### |
| 86 | |
| 87 | LIST_824x=" \ |
wdenk | f70cbb2 | 2004-02-23 20:48:38 +0000 | [diff] [blame] | 88 | A3000 BMW CPC45 CU824 \ |
wdenk | e0c812a | 2005-04-03 15:51:42 +0000 | [diff] [blame] | 89 | debris eXalion HIDDEN_DRAGON MOUSSE \ |
| 90 | MUSENKI MVBLUE OXC PN62 \ |
| 91 | Sandpoint8240 Sandpoint8245 SL8245 utx8245 \ |
| 92 | sbc8240 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 93 | " |
wdenk | dbae504 | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 94 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 95 | ######################################################################### |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 96 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 97 | ######################################################################### |
| 98 | |
| 99 | LIST_8260=" \ |
wdenk | 6d3c6d1 | 2005-04-03 22:35:21 +0000 | [diff] [blame] | 100 | atc cogent_mpc8260 CPU86 CPU87 \ |
wdenk | bc3202a | 2005-04-03 23:11:38 +0000 | [diff] [blame] | 101 | ep8260 gw8260 hymod IPHASE4539 \ |
wdenk | 6d3c6d1 | 2005-04-03 22:35:21 +0000 | [diff] [blame] | 102 | ISPAN MPC8260ADS MPC8266ADS MPC8272ADS \ |
wdenk | bc3202a | 2005-04-03 23:11:38 +0000 | [diff] [blame] | 103 | PM826 PM828 ppmc8260 Rattler8248 \ |
| 104 | RPXsuper rsdproto sacsng sbc8260 \ |
| 105 | SCM TQM8260_AC TQM8260_AD TQM8260_AE \ |
| 106 | ZPC1900 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 107 | " |
| 108 | |
| 109 | ######################################################################### |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 110 | ## MPC85xx Systems (includes 8540, 8560 etc.) |
| 111 | ######################################################################### |
| 112 | |
| 113 | LIST_85xx=" \ |
wdenk | 0aeb853 | 2004-10-10 21:21:55 +0000 | [diff] [blame] | 114 | MPC8540ADS MPC8541CDS MPC8555CDS MPC8560ADS \ |
wdenk | 6d3c6d1 | 2005-04-03 22:35:21 +0000 | [diff] [blame] | 115 | PM854 sbc8540 sbc8560 stxgp3 \ |
| 116 | TQM8540 \ |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 117 | " |
| 118 | |
| 119 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 120 | ## 74xx/7xx Systems |
| 121 | ######################################################################### |
| 122 | |
| 123 | LIST_74xx=" \ |
wdenk | 5da7f2f | 2004-01-03 00:43:19 +0000 | [diff] [blame] | 124 | DB64360 DB64460 EVB64260 P3G4 \ |
| 125 | PCIPPC2 PCIPPC6 ZUMA \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 126 | " |
| 127 | |
| 128 | LIST_7xx=" \ |
stroese | 05b8891 | 2004-12-16 18:44:40 +0000 | [diff] [blame] | 129 | BAB7xx CPCI750 ELPPC \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 130 | " |
| 131 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 132 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
| 133 | ${LIST_8xx} \ |
wdenk | 359733b | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 134 | ${LIST_824x} ${LIST_8260} \ |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 135 | ${LIST_85xx} \ |
wdenk | 359733b | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 136 | ${LIST_4xx} \ |
| 137 | ${LIST_74xx} ${LIST_7xx}" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 138 | |
| 139 | ######################################################################### |
| 140 | ## StrongARM Systems |
| 141 | ######################################################################### |
| 142 | |
wdenk | e5cda75 | 2004-04-15 23:23:39 +0000 | [diff] [blame] | 143 | LIST_SA="assabet dnp1110 gcplus lart shannon" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 144 | |
| 145 | ######################################################################### |
| 146 | ## ARM7 Systems |
| 147 | ######################################################################### |
| 148 | |
wdenk | f2140d5 | 2004-07-01 16:30:44 +0000 | [diff] [blame] | 149 | LIST_ARM7="B2 ep7312 evb4510 impa7 modnet50" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 150 | |
| 151 | ######################################################################### |
| 152 | ## ARM9 Systems |
| 153 | ######################################################################### |
| 154 | |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 155 | LIST_ARM9=" \ |
wdenk | 0424e5d | 2004-10-10 20:23:57 +0000 | [diff] [blame] | 156 | at91rm9200dk cmc_pu2 integratorcp integratorap \ |
| 157 | lpd7a400 mx1ads mx1fs2 omap1510inn \ |
| 158 | omap1610h2 omap1610inn omap730p2 scb9328 \ |
| 159 | smdk2400 smdk2410 trab VCMA9 \ |
wdenk | e085e5b | 2005-04-05 23:32:21 +0000 | [diff] [blame] | 160 | versatile voiceblue \ |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 161 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 162 | |
| 163 | ######################################################################### |
wdenk | f806271 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 164 | ## ARM11 Systems |
| 165 | ######################################################################### |
| 166 | LIST_ARM11="omap2420h4" |
| 167 | |
| 168 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 169 | ## Xscale Systems |
| 170 | ######################################################################### |
| 171 | |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 172 | LIST_pxa=" \ |
wdenk | 2a83161 | 2005-04-06 00:04:16 +0000 | [diff] [blame^] | 173 | adsvix cerf250 cradle csb226 \ |
| 174 | innokom lubbock wepep250 xaeniax \ |
| 175 | xm250 xsengine \ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 176 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 177 | |
wdenk | bd1575f | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 178 | LIST_ixp="ixdp425" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 179 | |
wdenk | bd1575f | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 180 | |
wdenk | f806271 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 181 | LIST_arm=" \ |
| 182 | ${LIST_SA} \ |
| 183 | ${LIST_ARM7} ${LIST_ARM9} ${LIST_ARM11} \ |
| 184 | ${LIST_pxa} ${LIST_ixp} \ |
| 185 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 186 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 187 | ######################################################################### |
wdenk | 9b7f384 | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 188 | ## MIPS Systems |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 189 | ######################################################################### |
| 190 | |
| 191 | LIST_mips4kc="incaip" |
| 192 | |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 193 | LIST_mips5kc="purple" |
| 194 | |
wdenk | 96c7a8c | 2005-01-09 22:28:56 +0000 | [diff] [blame] | 195 | LIST_au1xx0="dbau1000 dbau1100 dbau1500 dbau1550 dbau1550_el" |
wdenk | 9b7f384 | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 196 | |
wdenk | 96c7a8c | 2005-01-09 22:28:56 +0000 | [diff] [blame] | 197 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1xx0}" |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 198 | |
wdenk | abda5ca | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 199 | ######################################################################### |
| 200 | ## i386 Systems |
| 201 | ######################################################################### |
| 202 | |
| 203 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" |
| 204 | |
| 205 | LIST_x86="${LIST_I486}" |
| 206 | |
wdenk | 3be717f | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 207 | ######################################################################### |
| 208 | ## NIOS Systems |
| 209 | ######################################################################### |
| 210 | |
| 211 | LIST_nios=" \ |
wdenk | e28cf63 | 2004-03-14 15:20:55 +0000 | [diff] [blame] | 212 | ADNPESC1 ADNPESC1_base_32 \ |
| 213 | ADNPESC1_DNPEVA2_base_32 \ |
wdenk | 3be717f | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 214 | DK1C20 DK1C20_standard_32 \ |
wdenk | c0bc2e1 | 2004-02-09 23:12:24 +0000 | [diff] [blame] | 215 | DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \ |
wdenk | 3be717f | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 216 | " |
| 217 | |
wdenk | 20a6122 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 218 | ######################################################################### |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 219 | ## Nios-II Systems |
| 220 | ######################################################################### |
| 221 | |
| 222 | LIST_nios2="PCI5441 PK1C20" |
| 223 | |
| 224 | ######################################################################### |
wdenk | 20a6122 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 225 | ## MicroBlaze Systems |
| 226 | ######################################################################### |
| 227 | |
| 228 | LIST_microblaze="suzaku" |
| 229 | |
wdenk | abda5ca | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 230 | #----------------------------------------------------------------------- |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 231 | |
| 232 | #----- for now, just run PPC by default ----- |
| 233 | [ $# = 0 ] && set $LIST_ppc |
| 234 | |
| 235 | #----------------------------------------------------------------------- |
| 236 | |
| 237 | build_target() { |
| 238 | target=$1 |
| 239 | |
| 240 | ${MAKE} distclean >/dev/null |
| 241 | ${MAKE} ${target}_config |
wdenk | c0aa5c5 | 2003-12-06 19:49:23 +0000 | [diff] [blame] | 242 | ${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 243 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
| 244 | } |
| 245 | |
| 246 | #----------------------------------------------------------------------- |
| 247 | |
| 248 | |
| 249 | for arg in $@ |
| 250 | do |
| 251 | case "$arg" in |
wdenk | 337f565 | 2004-10-28 00:09:35 +0000 | [diff] [blame] | 252 | ppc|5xx|5xxx|8xx|8220|824x|8260|85xx|4xx|7xx|74xx| \ |
wdenk | f806271 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 253 | arm|SA|ARM7|ARM9|ARM11|pxa|ixp| \ |
wdenk | 20a6122 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 254 | microblaze| \ |
wdenk | bd1575f | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 255 | mips| \ |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 256 | nios|nios2| \ |
wdenk | bd1575f | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 257 | x86|I486) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 258 | for target in `eval echo '$LIST_'${arg}` |
| 259 | do |
| 260 | build_target ${target} |
| 261 | done |
| 262 | ;; |
| 263 | *) build_target ${arg} |
| 264 | ;; |
| 265 | esac |
| 266 | done |