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 | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 29 | " |
| 30 | |
| 31 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 32 | ## MPC8xx Systems |
| 33 | ######################################################################### |
| 34 | |
| 35 | LIST_8xx=" \ |
wdenk | c4e854f | 2004-06-07 23:46:25 +0000 | [diff] [blame] | 36 | ADS860 ICU862_100MHz NETPHONE SPD823TS \ |
| 37 | AMX860 IP860 NETTA SXNI855T \ |
| 38 | AdderII IVML24 NETTA2 TOP860 \ |
| 39 | CCM IVML24_128 NETTA_ISDN TQM823L \ |
| 40 | ELPT860 IVML24_256 NETVIA TQM823L_LCD \ |
| 41 | ESTEEM192E IVMS8 NETVIA_V2 TQM850L \ |
| 42 | ETX094 IVMS8_128 NX823 TQM855L \ |
| 43 | FADS823 IVMS8_256 QS823 TQM860L \ |
| 44 | FADS850SAR KUP4K QS850 c2mon \ |
| 45 | FADS860T KUP4X QS860T cogent_mpc8xx \ |
| 46 | FLAGADM LANTEC R360MPI hermes \ |
| 47 | FPS850L MBX RBC823 lwmon \ |
| 48 | GEN860T MBX860T RPXClassic pcu_e \ |
| 49 | GEN860T_SC MHPC RPXlite rmu \ |
| 50 | GENIETV MPC86xADS RRvision svm_sc8xx \ |
| 51 | GTH MPC885ADS SM850 v37 \ |
| 52 | IAD210 MVS1 |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 53 | " |
| 54 | |
| 55 | ######################################################################### |
| 56 | ## PPC4xx Systems |
| 57 | ######################################################################### |
| 58 | |
| 59 | LIST_4xx=" \ |
wdenk | f70cbb2 | 2004-02-23 20:48:38 +0000 | [diff] [blame] | 60 | ADCIOP AR405 ASH405 BUBINGA405EP \ |
| 61 | CANBT CPCI405 CPCI4052 CPCI405AB \ |
| 62 | CPCI440 CPCIISER4 CRAYL1 csb272 \ |
wdenk | 7e920de | 2004-06-09 12:47:02 +0000 | [diff] [blame^] | 63 | csb472 DASA_SIM DP405 DU405 \ |
| 64 | EBONY ERIC EXBITGEN HUB405 \ |
| 65 | JSE MIP405 MIP405T ML2 \ |
| 66 | ml300 OCOTEA OCRTC ORSG \ |
| 67 | PCI405 PIP405 PLU405 PMC405 \ |
| 68 | PPChameleonEVB VOH405 W7OLMC W7OLMG \ |
| 69 | WALNUT405 XPEDITE1K \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 70 | " |
| 71 | |
| 72 | ######################################################################### |
| 73 | ## MPC824x Systems |
| 74 | ######################################################################### |
| 75 | |
| 76 | LIST_824x=" \ |
wdenk | f70cbb2 | 2004-02-23 20:48:38 +0000 | [diff] [blame] | 77 | A3000 BMW CPC45 CU824 \ |
wdenk | 5f49575 | 2004-02-26 23:46:20 +0000 | [diff] [blame] | 78 | debris eXalion MOUSSE MUSENKI \ |
| 79 | MVBLUE OXC PN62 Sandpoint8240 \ |
| 80 | Sandpoint8245 SL8245 utx8245 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 81 | " |
wdenk | dbae504 | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 82 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 83 | ######################################################################### |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 84 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 85 | ######################################################################### |
| 86 | |
| 87 | LIST_8260=" \ |
wdenk | aa60336 | 2003-05-12 21:50:16 +0000 | [diff] [blame] | 88 | atc cogent_mpc8260 CPU86 ep8260 \ |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 89 | gw8260 hymod IPHASE4539 MPC8260ADS \ |
wdenk | 3902d70 | 2004-04-15 18:22:41 +0000 | [diff] [blame] | 90 | MPC8266ADS MPC8272ADS PM826 PM828 \ |
| 91 | ppmc8260 PQ2FADS RPXsuper rsdproto \ |
| 92 | sacsng sbc8260 SCM TQM8260_AC \ |
| 93 | TQM8260_AD TQM8260_AE ZPC1900 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 94 | " |
| 95 | |
| 96 | ######################################################################### |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 97 | ## MPC85xx Systems (includes 8540, 8560 etc.) |
| 98 | ######################################################################### |
| 99 | |
| 100 | LIST_85xx=" \ |
wdenk | 78924a7 | 2004-04-18 21:45:42 +0000 | [diff] [blame] | 101 | MPC8540ADS MPC8560ADS stxgp3 \ |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 102 | " |
| 103 | |
| 104 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 105 | ## 74xx/7xx Systems |
| 106 | ######################################################################### |
| 107 | |
| 108 | LIST_74xx=" \ |
wdenk | 5da7f2f | 2004-01-03 00:43:19 +0000 | [diff] [blame] | 109 | DB64360 DB64460 EVB64260 P3G4 \ |
| 110 | PCIPPC2 PCIPPC6 ZUMA \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 111 | " |
| 112 | |
| 113 | LIST_7xx=" \ |
| 114 | BAB7xx ELPPC \ |
| 115 | " |
| 116 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 117 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
| 118 | ${LIST_8xx} \ |
wdenk | 359733b | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 119 | ${LIST_824x} ${LIST_8260} \ |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 120 | ${LIST_85xx} \ |
wdenk | 359733b | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 121 | ${LIST_4xx} \ |
| 122 | ${LIST_74xx} ${LIST_7xx}" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 123 | |
| 124 | ######################################################################### |
| 125 | ## StrongARM Systems |
| 126 | ######################################################################### |
| 127 | |
wdenk | e5cda75 | 2004-04-15 23:23:39 +0000 | [diff] [blame] | 128 | LIST_SA="assabet dnp1110 gcplus lart shannon" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 129 | |
| 130 | ######################################################################### |
| 131 | ## ARM7 Systems |
| 132 | ######################################################################### |
| 133 | |
wdenk | b98ac28 | 2004-02-24 00:16:43 +0000 | [diff] [blame] | 134 | LIST_ARM7="B2 ep7312 impa7" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 135 | |
| 136 | ######################################################################### |
| 137 | ## ARM9 Systems |
| 138 | ######################################################################### |
| 139 | |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 140 | LIST_ARM9=" \ |
wdenk | 4989f87 | 2004-03-14 15:06:13 +0000 | [diff] [blame] | 141 | at91rm9200dk integratorcp integratorap \ |
| 142 | omap1510inn omap1610h2 omap1610inn \ |
wdenk | e3a0680 | 2004-06-06 23:13:55 +0000 | [diff] [blame] | 143 | omap730p2 smdk2400 smdk2410 \ |
| 144 | trab VCMA9 versatile \ |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 145 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 146 | |
| 147 | ######################################################################### |
| 148 | ## Xscale Systems |
| 149 | ######################################################################### |
| 150 | |
wdenk | c12081a | 2004-03-23 20:18:25 +0000 | [diff] [blame] | 151 | LIST_pxa="cradle csb226 innokom lubbock wepep250 xm250" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 152 | |
wdenk | bd1575f | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 153 | LIST_ixp="ixdp425" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 154 | |
wdenk | bd1575f | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 155 | |
| 156 | LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_pxa} ${LIST_ixp}" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 157 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 158 | ######################################################################### |
wdenk | 9b7f384 | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 159 | ## MIPS Systems |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 160 | ######################################################################### |
| 161 | |
| 162 | LIST_mips4kc="incaip" |
| 163 | |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 164 | LIST_mips5kc="purple" |
| 165 | |
wdenk | 4ea537d | 2003-12-07 18:32:37 +0000 | [diff] [blame] | 166 | LIST_au1x00="dbau1000 dbau1100 dbau1500" |
wdenk | 9b7f384 | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 167 | |
| 168 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1x00}" |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 169 | |
wdenk | abda5ca | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 170 | ######################################################################### |
| 171 | ## i386 Systems |
| 172 | ######################################################################### |
| 173 | |
| 174 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" |
| 175 | |
| 176 | LIST_x86="${LIST_I486}" |
| 177 | |
wdenk | 3be717f | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 178 | ######################################################################### |
| 179 | ## NIOS Systems |
| 180 | ######################################################################### |
| 181 | |
| 182 | LIST_nios=" \ |
wdenk | e28cf63 | 2004-03-14 15:20:55 +0000 | [diff] [blame] | 183 | ADNPESC1 ADNPESC1_base_32 \ |
| 184 | ADNPESC1_DNPEVA2_base_32 \ |
wdenk | 3be717f | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 185 | DK1C20 DK1C20_standard_32 \ |
wdenk | c0bc2e1 | 2004-02-09 23:12:24 +0000 | [diff] [blame] | 186 | DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \ |
wdenk | 3be717f | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 187 | " |
| 188 | |
wdenk | abda5ca | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 189 | #----------------------------------------------------------------------- |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 190 | |
| 191 | #----- for now, just run PPC by default ----- |
| 192 | [ $# = 0 ] && set $LIST_ppc |
| 193 | |
| 194 | #----------------------------------------------------------------------- |
| 195 | |
| 196 | build_target() { |
| 197 | target=$1 |
| 198 | |
| 199 | ${MAKE} distclean >/dev/null |
| 200 | ${MAKE} ${target}_config |
wdenk | c0aa5c5 | 2003-12-06 19:49:23 +0000 | [diff] [blame] | 201 | ${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 202 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
| 203 | } |
| 204 | |
| 205 | #----------------------------------------------------------------------- |
| 206 | |
| 207 | |
| 208 | for arg in $@ |
| 209 | do |
| 210 | case "$arg" in |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 211 | ppc|5xx|5xxx|8xx|824x|8260|85xx|4xx|7xx|74xx| \ |
wdenk | bd1575f | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 212 | arm|SA|ARM7|ARM9|pxa|ixp| \ |
| 213 | mips| \ |
wdenk | 3be717f | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 214 | nios| \ |
wdenk | bd1575f | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 215 | x86|I486) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 216 | for target in `eval echo '$LIST_'${arg}` |
| 217 | do |
| 218 | build_target ${target} |
| 219 | done |
| 220 | ;; |
| 221 | *) build_target ${arg} |
| 222 | ;; |
| 223 | esac |
| 224 | done |