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