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