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