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