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