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