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