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