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=" \ |
| 47 | ADCIOP AR405 CANBT CPCI405 \ |
| 48 | CPCI4052 CPCI440 CPCIISER4 CRAYL1 \ |
| 49 | DASA_SIM DU405 EBONY ERIC \ |
| 50 | MIP405 ML2 OCRTC ORSG \ |
| 51 | PCI405 PIP405 W7OLMC W7OLMG \ |
| 52 | WALNUT405 \ |
| 53 | " |
| 54 | |
| 55 | ######################################################################### |
| 56 | ## MPC824x Systems |
| 57 | ######################################################################### |
| 58 | |
| 59 | LIST_824x=" \ |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 60 | BMW CPC45 CU824 MOUSSE \ |
| 61 | MUSENKI OXC PN62 Sandpoint8240 \ |
| 62 | Sandpoint8245 utx8245 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 63 | " |
| 64 | |
| 65 | ######################################################################### |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 66 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 67 | ######################################################################### |
| 68 | |
| 69 | LIST_8260=" \ |
wdenk | 45219c4 | 2003-05-12 21:50:16 +0000 | [diff] [blame^] | 70 | atc cogent_mpc8260 CPU86 ep8260 \ |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 71 | gw8260 hymod IPHASE4539 MPC8260ADS \ |
| 72 | MPC8266ADS PM826 ppmc8260 RPXsuper \ |
| 73 | rsdproto sacsng sbc8260 SCM \ |
| 74 | TQM8260 \ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 75 | " |
| 76 | |
| 77 | ######################################################################### |
| 78 | ## 74xx/7xx Systems |
| 79 | ######################################################################### |
| 80 | |
| 81 | LIST_74xx=" \ |
| 82 | EVB64260 PCIPPC2 PCIPPC6 ZUMA \ |
| 83 | " |
| 84 | |
| 85 | LIST_7xx=" \ |
| 86 | BAB7xx ELPPC \ |
| 87 | " |
| 88 | |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 89 | LIST_ppc="${LIST_5xx} ${LIST_8xx} \ |
| 90 | ${LIST_824x} ${LIST_8260} \ |
| 91 | ${LIST_4xx} \ |
| 92 | ${LIST_74xx} ${LIST_7xx}" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 93 | |
| 94 | ######################################################################### |
| 95 | ## StrongARM Systems |
| 96 | ######################################################################### |
| 97 | |
wdenk | 85ec0bc | 2003-03-31 16:34:49 +0000 | [diff] [blame] | 98 | LIST_SA="dnp1110 lart shannon" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 99 | |
| 100 | ######################################################################### |
| 101 | ## ARM7 Systems |
| 102 | ######################################################################### |
| 103 | |
wdenk | dc7c9a1 | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 104 | LIST_ARM7="ep7312 impa7" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 105 | |
| 106 | ######################################################################### |
| 107 | ## ARM9 Systems |
| 108 | ######################################################################### |
| 109 | |
wdenk | 85ec0bc | 2003-03-31 16:34:49 +0000 | [diff] [blame] | 110 | LIST_ARM9="at91rm9200dk smdk2400 smdk2410 trab VCMA9" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 111 | |
| 112 | ######################################################################### |
| 113 | ## Xscale Systems |
| 114 | ######################################################################### |
| 115 | |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 116 | LIST_xscale="cradle csb226 innokom lubbock wepep250" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 117 | |
| 118 | |
| 119 | LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_xscale}" |
| 120 | |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 121 | ######################################################################### |
| 122 | ## MIPS 4Kc Systems |
| 123 | ######################################################################### |
| 124 | |
| 125 | LIST_mips4kc="incaip" |
| 126 | |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 127 | LIST_mips5kc="purple" |
| 128 | |
| 129 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc}" |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 130 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 131 | |
| 132 | #----- for now, just run PPC by default ----- |
| 133 | [ $# = 0 ] && set $LIST_ppc |
| 134 | |
| 135 | #----------------------------------------------------------------------- |
| 136 | |
| 137 | build_target() { |
| 138 | target=$1 |
| 139 | |
| 140 | ${MAKE} distclean >/dev/null |
| 141 | ${MAKE} ${target}_config |
| 142 | ${MAKE} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
| 143 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
| 144 | } |
| 145 | |
| 146 | #----------------------------------------------------------------------- |
| 147 | |
| 148 | |
| 149 | for arg in $@ |
| 150 | do |
| 151 | case "$arg" in |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 152 | 5xx|8xx|824x|8260|4xx|7xx|74xx|SA|ARM7|ARM9|ppc|arm|xscale|mips) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 153 | for target in `eval echo '$LIST_'${arg}` |
| 154 | do |
| 155 | build_target ${target} |
| 156 | done |
| 157 | ;; |
| 158 | *) build_target ${arg} |
| 159 | ;; |
| 160 | esac |
| 161 | done |