wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | if [ "${CROSS_COMPILE}" ] ; then |
| 4 | MAKE="make CROSS_COMPILE=${CROSS_COMPILE}" |
| 5 | else |
| 6 | MAKE=make |
| 7 | fi |
| 8 | |
| 9 | [ -d LOG ] || mkdir LOG || exit 1 |
| 10 | |
| 11 | LIST="" |
| 12 | |
| 13 | ######################################################################### |
wdenk | 359733b | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 14 | ## MPC5xx Systems |
| 15 | ######################################################################### |
| 16 | |
| 17 | LIST_5xx=" \ |
| 18 | cmi_mpc5xx \ |
| 19 | " |
| 20 | |
| 21 | ######################################################################### |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 22 | ## MPC5xxx Systems |
| 23 | ######################################################################### |
| 24 | |
| 25 | LIST_5xxx=" \ |
| 26 | IceCube_5100 IceCube_5200 \ |
| 27 | " |
| 28 | |
| 29 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 30 | ## MPC8xx Systems |
| 31 | ######################################################################### |
| 32 | |
| 33 | LIST_8xx=" \ |
wdenk | 84650f5 | 2003-08-30 00:05:50 +0000 | [diff] [blame] | 34 | AdderII ADS860 AMX860 c2mon \ |
| 35 | CCM cogent_mpc8xx ESTEEM192E ETX094 \ |
| 36 | ELPT860 FADS823 FADS850SAR FADS860T \ |
| 37 | FLAGADM FPS850L GEN860T GEN860T_SC \ |
| 38 | GENIETV GTH hermes IAD210 \ |
| 39 | ICU862_100MHz IP860 IVML24 IVML24_128 \ |
| 40 | IVML24_256 IVMS8 IVMS8_128 IVMS8_256 \ |
| 41 | KUP4K LANTEC lwmon MBX \ |
| 42 | MBX860T MHPC MPC86xADS MVS1 \ |
| 43 | NETVIA NETVIA_V2 NX823 pcu_e \ |
| 44 | R360MPI RBC823 rmu RPXClassic \ |
| 45 | RPXlite RRvision SM850 SPD823TS \ |
| 46 | svm_sc8xx SXNI855T TOP860 TQM823L \ |
| 47 | TQM823L_LCD TQM850L TQM855L TQM860L \ |
| 48 | v37 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 49 | " |
| 50 | |
| 51 | ######################################################################### |
| 52 | ## PPC4xx Systems |
| 53 | ######################################################################### |
| 54 | |
| 55 | LIST_4xx=" \ |
stroese | bfcc82b | 2003-05-23 11:41:44 +0000 | [diff] [blame] | 56 | ADCIOP AR405 ASH405 BUBINGA405EP \ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 57 | CANBT CPCI405 CPCI4052 CPCI405AB \ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 58 | CPCI440 CPCIISER4 CRAYL1 DASA_SIM \ |
stroese | 3361eb7 | 2003-09-12 08:57:15 +0000 | [diff] [blame] | 59 | DP405 DU405 EBONY ERIC \ |
| 60 | EXBITGEN HUB405 MIP405 MIP405T \ |
| 61 | ML2 OCRTC ORSG PCI405 \ |
| 62 | PIP405 PLU405 PMC405 PPChameleonEVB \ |
| 63 | VOH405 W7OLMC W7OLMG WALNUT405 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 64 | " |
| 65 | |
| 66 | ######################################################################### |
| 67 | ## MPC824x Systems |
| 68 | ######################################################################### |
| 69 | |
| 70 | LIST_824x=" \ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 71 | A3000 BMW CPC45 CU824 \ |
wdenk | 9f83793 | 2003-10-09 19:00:25 +0000 | [diff] [blame] | 72 | debris MOUSSE MUSENKI OXC \ |
| 73 | PN62 Sandpoint8240 Sandpoint8245 SL8245 \ |
| 74 | utx8245 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 75 | " |
wdenk | dbae504 | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 76 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 77 | ######################################################################### |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 78 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 79 | ######################################################################### |
| 80 | |
| 81 | LIST_8260=" \ |
wdenk | aa60336 | 2003-05-12 21:50:16 +0000 | [diff] [blame] | 82 | atc cogent_mpc8260 CPU86 ep8260 \ |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 83 | gw8260 hymod IPHASE4539 MPC8260ADS \ |
| 84 | MPC8266ADS PM826 ppmc8260 RPXsuper \ |
| 85 | rsdproto sacsng sbc8260 SCM \ |
wdenk | 2f0812d | 2003-10-08 22:45:44 +0000 | [diff] [blame] | 86 | TQM8260_AC TQM8260_AD TQM8260_AE ZPC1900 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 87 | " |
| 88 | |
| 89 | ######################################################################### |
| 90 | ## 74xx/7xx Systems |
| 91 | ######################################################################### |
| 92 | |
| 93 | LIST_74xx=" \ |
wdenk | 232fe0b | 2003-09-02 22:48:03 +0000 | [diff] [blame] | 94 | EVB64260 P3G4 PCIPPC2 PCIPPC6 \ |
| 95 | ZUMA \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 96 | " |
| 97 | |
| 98 | LIST_7xx=" \ |
| 99 | BAB7xx ELPPC \ |
| 100 | " |
| 101 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 102 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
| 103 | ${LIST_8xx} \ |
wdenk | 359733b | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 104 | ${LIST_824x} ${LIST_8260} \ |
| 105 | ${LIST_4xx} \ |
| 106 | ${LIST_74xx} ${LIST_7xx}" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 107 | |
| 108 | ######################################################################### |
| 109 | ## StrongARM Systems |
| 110 | ######################################################################### |
| 111 | |
wdenk | 8dba050 | 2003-03-31 16:34:49 +0000 | [diff] [blame] | 112 | LIST_SA="dnp1110 lart shannon" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 113 | |
| 114 | ######################################################################### |
| 115 | ## ARM7 Systems |
| 116 | ######################################################################### |
| 117 | |
wdenk | c8434db | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 118 | LIST_ARM7="ep7312 impa7" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 119 | |
| 120 | ######################################################################### |
| 121 | ## ARM9 Systems |
| 122 | ######################################################################### |
| 123 | |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 124 | LIST_ARM9=" \ |
| 125 | at91rm9200dk omap1510inn omap1610inn \ |
| 126 | smdk2400 smdk2410 trab \ |
| 127 | VCMA9 \ |
| 128 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 129 | |
| 130 | ######################################################################### |
| 131 | ## Xscale Systems |
| 132 | ######################################################################### |
| 133 | |
wdenk | 0463e04 | 2003-05-23 12:36:20 +0000 | [diff] [blame] | 134 | LIST_pxa="cradle csb226 innokom lubbock wepep250" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 135 | |
| 136 | |
wdenk | 0463e04 | 2003-05-23 12:36:20 +0000 | [diff] [blame] | 137 | LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_pxa}" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 138 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 139 | ######################################################################### |
wdenk | 9b7f384 | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 140 | ## MIPS Systems |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 141 | ######################################################################### |
| 142 | |
| 143 | LIST_mips4kc="incaip" |
| 144 | |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 145 | LIST_mips5kc="purple" |
| 146 | |
wdenk | 9b7f384 | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 147 | LIST_au1x00="dbau1x00" |
| 148 | |
| 149 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1x00}" |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 150 | |
wdenk | abda5ca | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 151 | ######################################################################### |
| 152 | ## i386 Systems |
| 153 | ######################################################################### |
| 154 | |
| 155 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" |
| 156 | |
| 157 | LIST_x86="${LIST_I486}" |
| 158 | |
| 159 | #----------------------------------------------------------------------- |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 160 | |
| 161 | #----- for now, just run PPC by default ----- |
| 162 | [ $# = 0 ] && set $LIST_ppc |
| 163 | |
| 164 | #----------------------------------------------------------------------- |
| 165 | |
| 166 | build_target() { |
| 167 | target=$1 |
| 168 | |
| 169 | ${MAKE} distclean >/dev/null |
| 170 | ${MAKE} ${target}_config |
| 171 | ${MAKE} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
| 172 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
| 173 | } |
| 174 | |
| 175 | #----------------------------------------------------------------------- |
| 176 | |
| 177 | |
| 178 | for arg in $@ |
| 179 | do |
| 180 | case "$arg" in |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 181 | 5xx|5xxx|8xx|824x|8260|4xx|7xx|74xx|SA|ARM7|ARM9|ppc|arm|pxa|mips|I486|x86) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 182 | for target in `eval echo '$LIST_'${arg}` |
| 183 | do |
| 184 | build_target ${target} |
| 185 | done |
| 186 | ;; |
| 187 | *) build_target ${arg} |
| 188 | ;; |
| 189 | esac |
| 190 | done |