]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - MAKEALL
Add support for CompactFlash on ATC board
[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         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                                                             \
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 (includes 8250, 8255 etc.)
67 #########################################################################
68
69 LIST_8260="     \
70         atc             cogent_mpc8260  CPU86           ep8260          \
71         gw8260          hymod           IPHASE4539      MPC8260ADS      \
72         MPC8266ADS      PM826           ppmc8260        RPXsuper        \
73         rsdproto        sacsng          sbc8260         SCM             \
74         TQM8260                                                         \
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
89 LIST_ppc="${LIST_5xx}  ${LIST_8xx}  \
90           ${LIST_824x} ${LIST_8260} \
91           ${LIST_4xx}               \
92           ${LIST_74xx} ${LIST_7xx}"
93
94 #########################################################################
95 ## StrongARM Systems
96 #########################################################################
97
98 LIST_SA="dnp1110 lart shannon"
99
100 #########################################################################
101 ## ARM7 Systems
102 #########################################################################
103
104 LIST_ARM7="ep7312 impa7"
105
106 #########################################################################
107 ## ARM9 Systems
108 #########################################################################
109
110 LIST_ARM9="at91rm9200dk smdk2400 smdk2410 trab VCMA9"
111
112 #########################################################################
113 ## Xscale Systems
114 #########################################################################
115
116 LIST_xscale="cradle csb226 innokom lubbock wepep250"
117
118
119 LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_xscale}"
120
121 #########################################################################
122 ## MIPS 4Kc Systems
123 #########################################################################
124
125 LIST_mips4kc="incaip"
126
127 LIST_mips5kc="purple"
128
129 LIST_mips="${LIST_mips4kc} ${LIST_mips5kc}"
130
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
152         5xx|8xx|824x|8260|4xx|7xx|74xx|SA|ARM7|ARM9|ppc|arm|xscale|mips)
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