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 | d4ca31c | 2004-01-02 14:00:00 +0000 | [diff] [blame] | 28 | IceCube_5100 IceCube_5200 EVAL5200 \ |
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 \ |
| 43 | IVMS8_256 KUP4K LANTEC lwmon \ |
| 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=" \ |
stroese | 549826e | 2003-05-23 11:41:44 +0000 | [diff] [blame] | 59 | ADCIOP AR405 ASH405 BUBINGA405EP \ |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 60 | CANBT CPCI405 CPCI4052 CPCI405AB \ |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 61 | CPCI440 CPCIISER4 CRAYL1 DASA_SIM \ |
stroese | 72cd5aa | 2003-09-12 08:57:15 +0000 | [diff] [blame] | 62 | DP405 DU405 EBONY ERIC \ |
| 63 | EXBITGEN HUB405 MIP405 MIP405T \ |
| 64 | ML2 OCRTC ORSG PCI405 \ |
| 65 | PIP405 PLU405 PMC405 PPChameleonEVB \ |
| 66 | VOH405 W7OLMC W7OLMG WALNUT405 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 67 | " |
| 68 | |
| 69 | ######################################################################### |
| 70 | ## MPC824x Systems |
| 71 | ######################################################################### |
| 72 | |
| 73 | LIST_824x=" \ |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 74 | A3000 BMW CPC45 CU824 \ |
wdenk | b4676a2 | 2003-12-07 19:24:00 +0000 | [diff] [blame] | 75 | debris MOUSSE MUSENKI MVBLUE \ |
| 76 | OXC PN62 Sandpoint8240 Sandpoint8245 \ |
| 77 | SL8245 utx8245 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 78 | " |
wdenk | 592c5ca | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 79 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 80 | ######################################################################### |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 81 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 82 | ######################################################################### |
| 83 | |
| 84 | LIST_8260=" \ |
wdenk | 45219c4 | 2003-05-12 21:50:16 +0000 | [diff] [blame] | 85 | atc cogent_mpc8260 CPU86 ep8260 \ |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 86 | gw8260 hymod IPHASE4539 MPC8260ADS \ |
| 87 | MPC8266ADS PM826 ppmc8260 RPXsuper \ |
| 88 | rsdproto sacsng sbc8260 SCM \ |
wdenk | 54387ac | 2003-10-08 22:45:44 +0000 | [diff] [blame] | 89 | TQM8260_AC TQM8260_AD TQM8260_AE ZPC1900 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 90 | " |
| 91 | |
| 92 | ######################################################################### |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 93 | ## MPC85xx Systems (includes 8540, 8560 etc.) |
| 94 | ######################################################################### |
| 95 | |
| 96 | LIST_85xx=" \ |
| 97 | MPC8540ADS MPC8560ADS \ |
| 98 | " |
| 99 | |
| 100 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 101 | ## 74xx/7xx Systems |
| 102 | ######################################################################### |
| 103 | |
| 104 | LIST_74xx=" \ |
wdenk | 3a473b2 | 2004-01-03 00:43:19 +0000 | [diff] [blame] | 105 | DB64360 DB64460 EVB64260 P3G4 \ |
| 106 | PCIPPC2 PCIPPC6 ZUMA \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 107 | " |
| 108 | |
| 109 | LIST_7xx=" \ |
| 110 | BAB7xx ELPPC \ |
| 111 | " |
| 112 | |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 113 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
| 114 | ${LIST_8xx} \ |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 115 | ${LIST_824x} ${LIST_8260} \ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 116 | ${LIST_85xx} \ |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 117 | ${LIST_4xx} \ |
| 118 | ${LIST_74xx} ${LIST_7xx}" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 119 | |
| 120 | ######################################################################### |
| 121 | ## StrongARM Systems |
| 122 | ######################################################################### |
| 123 | |
wdenk | 85ec0bc | 2003-03-31 16:34:49 +0000 | [diff] [blame] | 124 | LIST_SA="dnp1110 lart shannon" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 125 | |
| 126 | ######################################################################### |
| 127 | ## ARM7 Systems |
| 128 | ######################################################################### |
| 129 | |
wdenk | dc7c9a1 | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 130 | LIST_ARM7="ep7312 impa7" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 131 | |
| 132 | ######################################################################### |
| 133 | ## ARM9 Systems |
| 134 | ######################################################################### |
| 135 | |
wdenk | 6f21347 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 136 | LIST_ARM9=" \ |
| 137 | at91rm9200dk omap1510inn omap1610inn \ |
| 138 | smdk2400 smdk2410 trab \ |
| 139 | VCMA9 \ |
| 140 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 141 | |
| 142 | ######################################################################### |
| 143 | ## Xscale Systems |
| 144 | ######################################################################### |
| 145 | |
wdenk | 4c3b21a | 2003-05-23 12:36:20 +0000 | [diff] [blame] | 146 | LIST_pxa="cradle csb226 innokom lubbock wepep250" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 147 | |
wdenk | 2d5b561 | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 148 | LIST_ixp="ixdp425" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 149 | |
wdenk | 2d5b561 | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 150 | |
| 151 | LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_pxa} ${LIST_ixp}" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 152 | |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 153 | ######################################################################### |
wdenk | 5da627a | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 154 | ## MIPS Systems |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 155 | ######################################################################### |
| 156 | |
| 157 | LIST_mips4kc="incaip" |
| 158 | |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 159 | LIST_mips5kc="purple" |
| 160 | |
wdenk | a2663ea | 2003-12-07 18:32:37 +0000 | [diff] [blame] | 161 | LIST_au1x00="dbau1000 dbau1100 dbau1500" |
wdenk | 5da627a | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 162 | |
| 163 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1x00}" |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 164 | |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 165 | ######################################################################### |
| 166 | ## i386 Systems |
| 167 | ######################################################################### |
| 168 | |
| 169 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" |
| 170 | |
| 171 | LIST_x86="${LIST_I486}" |
| 172 | |
wdenk | c935d3b | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 173 | ######################################################################### |
| 174 | ## NIOS Systems |
| 175 | ######################################################################### |
| 176 | |
| 177 | LIST_nios=" \ |
| 178 | DK1C20 DK1C20_standard_32 \ |
| 179 | DK1S10 DK1S10_standard_32 \ |
| 180 | " |
| 181 | |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 182 | #----------------------------------------------------------------------- |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 183 | |
| 184 | #----- for now, just run PPC by default ----- |
| 185 | [ $# = 0 ] && set $LIST_ppc |
| 186 | |
| 187 | #----------------------------------------------------------------------- |
| 188 | |
| 189 | build_target() { |
| 190 | target=$1 |
| 191 | |
| 192 | ${MAKE} distclean >/dev/null |
| 193 | ${MAKE} ${target}_config |
wdenk | a8c7c70 | 2003-12-06 19:49:23 +0000 | [diff] [blame] | 194 | ${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 195 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
| 196 | } |
| 197 | |
| 198 | #----------------------------------------------------------------------- |
| 199 | |
| 200 | |
| 201 | for arg in $@ |
| 202 | do |
| 203 | case "$arg" in |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 204 | ppc|5xx|5xxx|8xx|824x|8260|85xx|4xx|7xx|74xx| \ |
wdenk | 2d5b561 | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 205 | arm|SA|ARM7|ARM9|pxa|ixp| \ |
| 206 | mips| \ |
wdenk | c935d3b | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 207 | nios| \ |
wdenk | 2d5b561 | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 208 | x86|I486) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 209 | for target in `eval echo '$LIST_'${arg}` |
| 210 | do |
| 211 | build_target ${target} |
| 212 | done |
| 213 | ;; |
| 214 | *) build_target ${arg} |
| 215 | ;; |
| 216 | esac |
| 217 | done |