]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - MAKEALL
* Patch by Martin Winistoerfer, 23 Mar 2003
[karo-tx-uboot.git] / MAKEALL
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 ## MPC5xx Systems
15 #########################################################################
16
17 LIST_5xx="      \
18         cmi_mpc5xx                                                      \
19 "
20
21 #########################################################################
22 ## MPC8xx Systems
23 #########################################################################
24
25 LIST_8xx="      \
26         ADS860          AMX860          c2mon           CCM             \
27         cogent_mpc8xx   ESTEEM192E      ETX094          ELPT860         \
28         FADS823         FADS850SAR      FADS860T        FLAGADM         \
29         FPS850L         GEN860T         GENIETV         GTH             \
30         hermes          IAD210          ICU862_100MHz   IP860           \
31         IVML24          IVML24_128      IVML24_256      IVMS8           \
32         IVMS8_128       IVMS8_256       KUP4K           LANTEC          \
33         lwmon           MBX             MBX860T         MHPC            \
34         MVS1            NETVIA          NX823           pcu_e           \
35         R360MPI         RPXClassic      RPXlite         RRvision        \
36         SM850           SPD823TS        svm_sc8xx       SXNI855T        \
37         TOP860          TQM823L         TQM823L_LCD     TQM850L         \
38         TQM855L         TQM860L         TQM860L_FEC     TTTech          \
39         v37                                                             \
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="     \
60         BMW             CPC45           CU824           MOUSSE          \
61         MUSENKI         OXC             PN62            Sandpoint8240   \
62         Sandpoint8245   utx8245                                         \
63 "
64
65 #########################################################################
66 ## MPC8260 Systems
67 #########################################################################
68
69 LIST_8260="     \
70         cogent_mpc8260  CPU86           ep8260          gw8260          \
71         hymod           IPHASE4539      MPC8260ADS      MPC8266ADS      \
72         PM826           ppmc8260        RPXsuper        rsdproto        \
73         sacsng          sbc8260         SCM             TQM8260         \
74 "
75
76 #########################################################################
77 ## 74xx/7xx Systems
78 #########################################################################
79
80 LIST_74xx="     \
81         EVB64260        PCIPPC2         PCIPPC6         ZUMA            \
82 "
83
84 LIST_7xx="      \
85         BAB7xx          ELPPC                                           \
86 "
87
88 LIST_ppc="${LIST_5xx}  ${LIST_8xx}  \
89           ${LIST_824x} ${LIST_8260} \
90           ${LIST_4xx}               \
91           ${LIST_74xx} ${LIST_7xx}"
92
93 #########################################################################
94 ## StrongARM Systems
95 #########################################################################
96
97 LIST_SA="dnp1110 lart shannon"
98
99 #########################################################################
100 ## ARM7 Systems
101 #########################################################################
102
103 LIST_ARM7="ep7312 impa7"
104
105 #########################################################################
106 ## ARM9 Systems
107 #########################################################################
108
109 LIST_ARM9="at91rm9200dk smdk2400 smdk2410 trab VCMA9"
110
111 #########################################################################
112 ## Xscale Systems
113 #########################################################################
114
115 LIST_xscale="cradle csb226 innokom lubbock"
116
117
118 LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_xscale}"
119
120 #########################################################################
121 ## MIPS 4Kc Systems
122 #########################################################################
123
124 LIST_mips4kc="incaip"
125
126 LIST_mips="${LIST_mips4kc}"
127
128
129 #----- for now, just run PPC by default -----
130 [ $# = 0 ] && set $LIST_ppc
131
132 #-----------------------------------------------------------------------
133
134 build_target() {
135         target=$1
136
137         ${MAKE} distclean >/dev/null
138         ${MAKE} ${target}_config
139         ${MAKE} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR
140         ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG
141 }
142
143 #-----------------------------------------------------------------------
144
145
146 for arg in $@
147 do
148         case "$arg" in
149         5xx|8xx|824x|8260|4xx|7xx|74xx|SA|ARM7|ARM9|ppc|arm|xscale|mips)
150                         for target in `eval echo '$LIST_'${arg}`
151                         do
152                                 build_target ${target}
153                         done
154                         ;;
155         *)              build_target ${arg}
156                         ;;
157         esac
158 done