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