Peter Tyser | a5a27b9 | 2009-12-06 23:58:28 -0600 | [diff] [blame] | 1 | #!/bin/bash |
Wolfgang Denk | 7b74fec | 2010-10-17 12:26:48 +0200 | [diff] [blame] | 2 | # Tool mainly for U-Boot Quality Assurance: build one or more board |
| 3 | # configurations with minimal verbosity, showing only warnings and |
| 4 | # errors. |
Mike Frysinger | ed63998 | 2011-04-21 22:01:43 +0000 | [diff] [blame] | 5 | |
| 6 | usage() |
| 7 | { |
| 8 | # if exiting with 0, write to stdout, else write to stderr |
| 9 | local ret=${1:-0} |
| 10 | [ "${ret}" -eq 1 ] && exec 1>&2 |
| 11 | cat <<-EOF |
| 12 | Usage: MAKEALL [options] [--] [boards-to-build] |
| 13 | |
| 14 | Options: |
| 15 | -a ARCH, --arch ARCH Build all boards with arch ARCH |
| 16 | -c CPU, --cpu CPU Build all boards with cpu CPU |
| 17 | -v VENDOR, --vendor VENDOR Build all boards with vendor VENDOR |
| 18 | -s SOC, --soc SOC Build all boards with soc SOC |
Marek Vasut | cc3e1cb | 2011-12-02 21:32:03 +0000 | [diff] [blame] | 19 | -l, --list List all targets to be built |
Marek Vasut | 4f21ade | 2012-03-05 15:10:51 +0000 | [diff] [blame] | 20 | -m, --maintainers List all targets and maintainer email |
| 21 | -M, --mails List all targets and all affilated emails |
Mike Frysinger | ed63998 | 2011-04-21 22:01:43 +0000 | [diff] [blame] | 22 | -h, --help This help output |
| 23 | |
| 24 | Selections by these options are logically ANDed; if the same option |
| 25 | is used repeatedly, such selections are ORed. So "-v FOO -v BAR" |
| 26 | will select all configurations where the vendor is either FOO or |
| 27 | BAR. Any additional arguments specified on the command line are |
| 28 | always build additionally. See the boards.cfg file for more info. |
Wolfgang Denk | 7b74fec | 2010-10-17 12:26:48 +0200 | [diff] [blame] | 29 | |
Mike Frysinger | ed63998 | 2011-04-21 22:01:43 +0000 | [diff] [blame] | 30 | If no boards are specified, then the default is "powerpc". |
| 31 | |
| 32 | Environment variables: |
| 33 | BUILD_NCPUS number of parallel make jobs (default: auto) |
| 34 | CROSS_COMPILE cross-compiler toolchain prefix (default: "") |
| 35 | MAKEALL_LOGDIR output all logs to here (default: ./LOG/) |
| 36 | BUILD_DIR output build directory (default: ./) |
| 37 | |
| 38 | Examples: |
| 39 | - build all Power Architecture boards: |
| 40 | MAKEALL -a powerpc |
| 41 | MAKEALL --arch powerpc |
| 42 | MAKEALL powerpc |
| 43 | - build all PowerPC boards manufactured by vendor "esd": |
| 44 | MAKEALL -a powerpc -v esd |
| 45 | - build all PowerPC boards manufactured either by "keymile" or "siemens": |
| 46 | MAKEALL -a powerpc -v keymile -v siemens |
| 47 | - build all Freescale boards with MPC83xx CPUs, plus all 4xx boards: |
| 48 | MAKEALL -c mpc83xx -v freescale 4xx |
| 49 | EOF |
| 50 | exit ${ret} |
| 51 | } |
| 52 | |
Marek Vasut | 4f21ade | 2012-03-05 15:10:51 +0000 | [diff] [blame] | 53 | SHORT_OPTS="ha:c:v:s:lmM" |
| 54 | LONG_OPTS="help,arch:,cpu:,vendor:,soc:,list,maintainers,mails" |
Wolfgang Denk | 7b74fec | 2010-10-17 12:26:48 +0200 | [diff] [blame] | 55 | |
| 56 | # Option processing based on util-linux-2.13/getopt-parse.bash |
| 57 | |
Wolfgang Denk | 1136f69 | 2010-10-27 22:48:30 +0200 | [diff] [blame] | 58 | # Note that we use `"$@"' to let each command-line parameter expand to a |
Wolfgang Denk | 7b74fec | 2010-10-17 12:26:48 +0200 | [diff] [blame] | 59 | # separate word. The quotes around `$@' are essential! |
| 60 | # We need TEMP as the `eval set --' would nuke the return value of |
| 61 | # getopt. |
| 62 | TEMP=`getopt -o ${SHORT_OPTS} --long ${LONG_OPTS} \ |
| 63 | -n 'MAKEALL' -- "$@"` |
| 64 | |
Mike Frysinger | ed63998 | 2011-04-21 22:01:43 +0000 | [diff] [blame] | 65 | [ $? != 0 ] && usage 1 |
Wolfgang Denk | 7b74fec | 2010-10-17 12:26:48 +0200 | [diff] [blame] | 66 | |
| 67 | # Note the quotes around `$TEMP': they are essential! |
| 68 | eval set -- "$TEMP" |
| 69 | |
| 70 | SELECTED='' |
Marek Vasut | cc3e1cb | 2011-12-02 21:32:03 +0000 | [diff] [blame] | 71 | ONLY_LIST='' |
Marek Vasut | 4f21ade | 2012-03-05 15:10:51 +0000 | [diff] [blame] | 72 | PRINT_MAINTS='' |
| 73 | MAINTAINERS_ONLY='' |
Wolfgang Denk | 7b74fec | 2010-10-17 12:26:48 +0200 | [diff] [blame] | 74 | |
| 75 | while true ; do |
| 76 | case "$1" in |
| 77 | -a|--arch) |
| 78 | # echo "Option ARCH: argument \`$2'" |
| 79 | if [ "$opt_a" ] ; then |
| 80 | opt_a="${opt_a%)} || \$2 == \"$2\")" |
| 81 | else |
| 82 | opt_a="(\$2 == \"$2\")" |
| 83 | fi |
| 84 | SELECTED='y' |
| 85 | shift 2 ;; |
| 86 | -c|--cpu) |
| 87 | # echo "Option CPU: argument \`$2'" |
| 88 | if [ "$opt_c" ] ; then |
| 89 | opt_c="${opt_c%)} || \$3 == \"$2\")" |
| 90 | else |
| 91 | opt_c="(\$3 == \"$2\")" |
| 92 | fi |
| 93 | SELECTED='y' |
| 94 | shift 2 ;; |
| 95 | -s|--soc) |
| 96 | # echo "Option SoC: argument \`$2'" |
| 97 | if [ "$opt_s" ] ; then |
| 98 | opt_s="${opt_s%)} || \$6 == \"$2\")" |
| 99 | else |
| 100 | opt_s="(\$6 == \"$2\")" |
| 101 | fi |
| 102 | SELECTED='y' |
| 103 | shift 2 ;; |
| 104 | -v|--vendor) |
| 105 | # echo "Option VENDOR: argument \`$2'" |
| 106 | if [ "$opt_v" ] ; then |
| 107 | opt_v="${opt_v%)} || \$5 == \"$2\")" |
| 108 | else |
| 109 | opt_v="(\$5 == \"$2\")" |
| 110 | fi |
| 111 | SELECTED='y' |
| 112 | shift 2 ;; |
Marek Vasut | cc3e1cb | 2011-12-02 21:32:03 +0000 | [diff] [blame] | 113 | -l|--list) |
| 114 | ONLY_LIST='y' |
| 115 | shift ;; |
Marek Vasut | 4f21ade | 2012-03-05 15:10:51 +0000 | [diff] [blame] | 116 | -m|--maintainers) |
| 117 | ONLY_LIST='y' |
| 118 | PRINT_MAINTS='y' |
| 119 | MAINTAINERS_ONLY='y' |
| 120 | shift ;; |
| 121 | -M|--mails) |
| 122 | ONLY_LIST='y' |
| 123 | PRINT_MAINTS='y' |
| 124 | shift ;; |
Mike Frysinger | ed63998 | 2011-04-21 22:01:43 +0000 | [diff] [blame] | 125 | -h|--help) |
| 126 | usage ;; |
Wolfgang Denk | 7b74fec | 2010-10-17 12:26:48 +0200 | [diff] [blame] | 127 | --) |
| 128 | shift ; break ;; |
| 129 | *) |
| 130 | echo "Internal error!" >&2 ; exit 1 ;; |
| 131 | esac |
| 132 | done |
| 133 | # echo "Remaining arguments:" |
| 134 | # for arg do echo '--> '"\`$arg'" ; done |
| 135 | |
| 136 | FILTER="\$1 !~ /^#/" |
| 137 | [ "$opt_a" ] && FILTER="${FILTER} && $opt_a" |
| 138 | [ "$opt_c" ] && FILTER="${FILTER} && $opt_c" |
| 139 | [ "$opt_s" ] && FILTER="${FILTER} && $opt_s" |
| 140 | [ "$opt_v" ] && FILTER="${FILTER} && $opt_v" |
| 141 | |
| 142 | if [ "$SELECTED" ] ; then |
| 143 | SELECTED=$(awk '('"$FILTER"') { print $1 }' boards.cfg) |
Peter Tyser | 2f88760 | 2010-10-29 17:59:06 -0500 | [diff] [blame] | 144 | |
| 145 | # Make sure some boards from boards.cfg are actually found |
| 146 | if [ -z "$SELECTED" ] ; then |
| 147 | echo "Error: No boards selected, invalid arguments" |
| 148 | exit 1 |
| 149 | fi |
Wolfgang Denk | 7b74fec | 2010-10-17 12:26:48 +0200 | [diff] [blame] | 150 | fi |
| 151 | |
| 152 | ######################################################################### |
| 153 | |
Peter Tyser | 23240d2 | 2009-09-21 12:04:32 -0500 | [diff] [blame] | 154 | # Print statistics when we exit |
| 155 | trap exit 1 2 3 15 |
| 156 | trap print_stats 0 |
| 157 | |
Wolfgang Denk | de5d660 | 2008-12-09 00:39:08 +0100 | [diff] [blame] | 158 | # Determine number of CPU cores if no default was set |
| 159 | : ${BUILD_NCPUS:="`getconf _NPROCESSORS_ONLN`"} |
| 160 | |
| 161 | if [ "$BUILD_NCPUS" -gt 1 ] |
| 162 | then |
Peter Tyser | 8a07f9a | 2009-09-21 12:04:33 -0500 | [diff] [blame] | 163 | JOBS="-j $((BUILD_NCPUS + 1))" |
Wolfgang Denk | de5d660 | 2008-12-09 00:39:08 +0100 | [diff] [blame] | 164 | else |
| 165 | JOBS="" |
| 166 | fi |
| 167 | |
wdenk | c0aa5c5 | 2003-12-06 19:49:23 +0000 | [diff] [blame] | 168 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 169 | if [ "${CROSS_COMPILE}" ] ; then |
| 170 | MAKE="make CROSS_COMPILE=${CROSS_COMPILE}" |
| 171 | else |
| 172 | MAKE=make |
| 173 | fi |
| 174 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 175 | if [ "${MAKEALL_LOGDIR}" ] ; then |
| 176 | LOG_DIR=${MAKEALL_LOGDIR} |
| 177 | else |
| 178 | LOG_DIR="LOG" |
| 179 | fi |
Stefan Roese | 42fbddd | 2006-09-07 11:51:23 +0200 | [diff] [blame] | 180 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 181 | if [ ! "${BUILD_DIR}" ] ; then |
| 182 | BUILD_DIR="." |
| 183 | fi |
| 184 | |
Marian Balakowicz | 7f783cb | 2006-09-07 12:05:53 +0200 | [diff] [blame] | 185 | [ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1 |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 186 | |
| 187 | LIST="" |
| 188 | |
Peter Tyser | 23240d2 | 2009-09-21 12:04:32 -0500 | [diff] [blame] | 189 | # Keep track of the number of builds and errors |
| 190 | ERR_CNT=0 |
| 191 | ERR_LIST="" |
| 192 | TOTAL_CNT=0 |
Peter Tyser | a5a27b9 | 2009-12-06 23:58:28 -0600 | [diff] [blame] | 193 | RC=0 |
Peter Tyser | 23240d2 | 2009-09-21 12:04:32 -0500 | [diff] [blame] | 194 | |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 195 | # Helper funcs for parsing boards.cfg |
| 196 | boards_by_field() |
| 197 | { |
| 198 | awk \ |
| 199 | -v field="$1" \ |
| 200 | -v select="$2" \ |
| 201 | '($1 !~ /^#/ && $field == select) { print $1 }' \ |
| 202 | boards.cfg |
| 203 | } |
| 204 | boards_by_arch() { boards_by_field 2 "$@" ; } |
| 205 | boards_by_cpu() { boards_by_field 3 "$@" ; } |
Andreas Bießmann | bb96a8e | 2010-11-30 09:45:04 +0000 | [diff] [blame] | 206 | boards_by_soc() { boards_by_field 6 "$@" ; } |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 207 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 208 | ######################################################################### |
wdenk | 359733b | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 209 | ## MPC5xx Systems |
| 210 | ######################################################################### |
| 211 | |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 212 | LIST_5xx="$(boards_by_cpu mpc5xx)" |
wdenk | 359733b | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 213 | |
| 214 | ######################################################################### |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 215 | ## MPC5xxx Systems |
| 216 | ######################################################################### |
| 217 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 218 | LIST_5xxx="$(boards_by_cpu mpc5xxx)" |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 219 | |
| 220 | ######################################################################### |
Rafal Jaworowski | d3a02c3 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 221 | ## MPC512x Systems |
| 222 | ######################################################################### |
| 223 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 224 | LIST_512x="$(boards_by_cpu mpc512x)" |
Rafal Jaworowski | d3a02c3 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 225 | |
| 226 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 227 | ## MPC8xx Systems |
| 228 | ######################################################################### |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 229 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 230 | LIST_8xx="$(boards_by_cpu mpc8xx)" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 231 | |
| 232 | ######################################################################### |
| 233 | ## PPC4xx Systems |
| 234 | ######################################################################### |
| 235 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 236 | LIST_4xx="$(boards_by_cpu ppc4xx)" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 237 | |
| 238 | ######################################################################### |
wdenk | 337f565 | 2004-10-28 00:09:35 +0000 | [diff] [blame] | 239 | ## MPC8220 Systems |
| 240 | ######################################################################### |
| 241 | |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 242 | LIST_8220="$(boards_by_cpu mpc8220)" |
wdenk | 337f565 | 2004-10-28 00:09:35 +0000 | [diff] [blame] | 243 | |
| 244 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 245 | ## MPC824x Systems |
| 246 | ######################################################################### |
| 247 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 248 | LIST_824x="$(boards_by_cpu mpc824x)" |
wdenk | dbae504 | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 249 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 250 | ######################################################################### |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 251 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 252 | ######################################################################### |
| 253 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 254 | LIST_8260="$(boards_by_cpu mpc8260)" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 255 | |
| 256 | ######################################################################### |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 257 | ## MPC83xx Systems (includes 8349, etc.) |
| 258 | ######################################################################### |
| 259 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 260 | LIST_83xx="$(boards_by_cpu mpc83xx)" |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 261 | |
| 262 | ######################################################################### |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 263 | ## MPC85xx Systems (includes 8540, 8560 etc.) |
| 264 | ######################################################################### |
| 265 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 266 | LIST_85xx="$(boards_by_cpu mpc85xx)" |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 267 | |
| 268 | ######################################################################### |
Jon Loeliger | 5fe3449 | 2007-05-23 14:09:46 -0500 | [diff] [blame] | 269 | ## MPC86xx Systems |
| 270 | ######################################################################### |
| 271 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 272 | LIST_86xx="$(boards_by_cpu mpc86xx)" |
Jon Loeliger | 5fe3449 | 2007-05-23 14:09:46 -0500 | [diff] [blame] | 273 | |
| 274 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 275 | ## 74xx/7xx Systems |
| 276 | ######################################################################### |
| 277 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 278 | LIST_74xx_7xx="$(boards_by_cpu 74xx_7xx)" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 279 | |
Wolfgang Denk | 66549bd | 2008-04-20 15:35:52 -0700 | [diff] [blame] | 280 | ######################################################################### |
| 281 | ## PowerPC groups |
| 282 | ######################################################################### |
| 283 | |
| 284 | LIST_TSEC=" \ |
| 285 | ${LIST_83xx} \ |
| 286 | ${LIST_85xx} \ |
| 287 | ${LIST_86xx} \ |
| 288 | " |
| 289 | |
Stefan Roese | 88fbf93 | 2010-04-15 16:07:28 +0200 | [diff] [blame] | 290 | LIST_powerpc=" \ |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 291 | ${LIST_5xx} \ |
Jean-Christophe PLAGNIOL-VILLARD | 0912d31 | 2007-11-25 22:39:25 +0100 | [diff] [blame] | 292 | ${LIST_512x} \ |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 293 | ${LIST_5xxx} \ |
| 294 | ${LIST_8xx} \ |
| 295 | ${LIST_8220} \ |
| 296 | ${LIST_824x} \ |
| 297 | ${LIST_8260} \ |
| 298 | ${LIST_83xx} \ |
| 299 | ${LIST_85xx} \ |
| 300 | ${LIST_86xx} \ |
| 301 | ${LIST_4xx} \ |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 302 | ${LIST_74xx_7xx}\ |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 303 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 304 | |
Stefan Roese | 88fbf93 | 2010-04-15 16:07:28 +0200 | [diff] [blame] | 305 | # Alias "ppc" -> "powerpc" to not break compatibility with older scripts |
| 306 | # still using "ppc" instead of "powerpc" |
| 307 | LIST_ppc=" \ |
| 308 | ${LIST_powerpc} \ |
| 309 | " |
| 310 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 311 | ######################################################################### |
| 312 | ## StrongARM Systems |
| 313 | ######################################################################### |
| 314 | |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 315 | LIST_SA="$(boards_by_cpu sa1100)" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 316 | |
| 317 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 318 | ## ARM9 Systems |
| 319 | ######################################################################### |
| 320 | |
Wolfgang Denk | 1076619 | 2011-09-08 05:01:24 +0000 | [diff] [blame] | 321 | LIST_ARM9="$(boards_by_cpu arm920t) \ |
| 322 | $(boards_by_cpu arm926ejs) \ |
| 323 | $(boards_by_cpu arm925t) \ |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 324 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 325 | |
| 326 | ######################################################################### |
wdenk | f806271 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 327 | ## ARM11 Systems |
| 328 | ######################################################################### |
Wolfgang Denk | 1076619 | 2011-09-08 05:01:24 +0000 | [diff] [blame] | 329 | LIST_ARM11="$(boards_by_cpu arm1136) \ |
Guennadi Liakhovetski | b093d8d | 2009-03-25 11:36:50 +0100 | [diff] [blame] | 330 | imx31_phycore \ |
| 331 | imx31_phycore_eet \ |
Magnus Lilja | 6eeb6f7 | 2009-07-01 01:07:55 +0200 | [diff] [blame] | 332 | mx31pdk \ |
Guennadi Liakhovetski | b093d8d | 2009-03-25 11:36:50 +0100 | [diff] [blame] | 333 | smdk6400 \ |
Wolfgang Denk | adf20a1 | 2005-09-25 01:48:28 +0200 | [diff] [blame] | 334 | " |
wdenk | f806271 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 335 | |
| 336 | ######################################################################### |
Steve Sakoman | 6329a8f | 2010-06-17 21:50:01 -0700 | [diff] [blame] | 337 | ## ARMV7 Systems |
Dirk Behme | 2781f80 | 2009-01-27 18:19:12 +0100 | [diff] [blame] | 338 | ######################################################################### |
Dirk Behme | 1b787e3 | 2011-08-05 20:48:32 +0000 | [diff] [blame] | 339 | |
| 340 | LIST_ARMV7="$(boards_by_cpu armv7)" |
Dirk Behme | 2781f80 | 2009-01-27 18:19:12 +0100 | [diff] [blame] | 341 | |
| 342 | ######################################################################### |
Jean-Christophe PLAGNIOL-VILLARD | 9a88fd1 | 2008-05-24 12:47:46 +0200 | [diff] [blame] | 343 | ## AT91 Systems |
| 344 | ######################################################################### |
| 345 | |
Thomas Petazzoni | a5e8576 | 2011-08-04 11:08:50 +0000 | [diff] [blame] | 346 | LIST_at91="$(boards_by_soc at91)" |
Jean-Christophe PLAGNIOL-VILLARD | 9a88fd1 | 2008-05-24 12:47:46 +0200 | [diff] [blame] | 347 | |
| 348 | ######################################################################### |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 349 | ## Xscale Systems |
| 350 | ######################################################################### |
| 351 | |
Marek Vasut | 4ccaaef | 2010-10-04 00:21:51 +0200 | [diff] [blame] | 352 | LIST_pxa="$(boards_by_cpu pxa)" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 353 | |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 354 | LIST_ixp="$(boards_by_cpu ixp) |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 355 | pdnb3 \ |
| 356 | scpu \ |
| 357 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 358 | |
Wolfgang Denk | 66549bd | 2008-04-20 15:35:52 -0700 | [diff] [blame] | 359 | ######################################################################### |
| 360 | ## ARM groups |
| 361 | ######################################################################### |
wdenk | bd1575f | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 362 | |
Dirk Behme | 2781f80 | 2009-01-27 18:19:12 +0100 | [diff] [blame] | 363 | LIST_arm=" \ |
| 364 | ${LIST_SA} \ |
Dirk Behme | 2781f80 | 2009-01-27 18:19:12 +0100 | [diff] [blame] | 365 | ${LIST_ARM9} \ |
| 366 | ${LIST_ARM10} \ |
| 367 | ${LIST_ARM11} \ |
Steve Sakoman | 6329a8f | 2010-06-17 21:50:01 -0700 | [diff] [blame] | 368 | ${LIST_ARMV7} \ |
Dirk Behme | 2781f80 | 2009-01-27 18:19:12 +0100 | [diff] [blame] | 369 | ${LIST_at91} \ |
| 370 | ${LIST_pxa} \ |
| 371 | ${LIST_ixp} \ |
wdenk | f806271 | 2005-01-09 23:16:25 +0000 | [diff] [blame] | 372 | " |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 373 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 374 | ######################################################################### |
Wolfgang Denk | bc8c500 | 2005-08-14 00:27:00 +0200 | [diff] [blame] | 375 | ## MIPS Systems (default = big endian) |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 376 | ######################################################################### |
| 377 | |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 378 | LIST_mips4kc=" \ |
| 379 | incaip \ |
Vlad Lungu | 635e76c | 2008-01-16 19:27:51 +0200 | [diff] [blame] | 380 | qemu_mips \ |
Stefan Roese | ee7a6ba | 2009-01-21 17:25:01 +0100 | [diff] [blame] | 381 | vct_platinum \ |
| 382 | vct_platinum_small \ |
| 383 | vct_platinum_onenand \ |
| 384 | vct_platinum_onenand_small \ |
| 385 | vct_platinumavc \ |
| 386 | vct_platinumavc_small \ |
| 387 | vct_platinumavc_onenand \ |
| 388 | vct_platinumavc_onenand_small \ |
| 389 | vct_premium \ |
| 390 | vct_premium_small \ |
| 391 | vct_premium_onenand \ |
| 392 | vct_premium_onenand_small \ |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 393 | " |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 394 | |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 395 | LIST_au1xx0=" \ |
| 396 | dbau1000 \ |
| 397 | dbau1100 \ |
| 398 | dbau1500 \ |
| 399 | dbau1550 \ |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 400 | gth2 \ |
| 401 | " |
wdenk | 9b7f384 | 2003-10-09 20:09:04 +0000 | [diff] [blame] | 402 | |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 403 | LIST_mips=" \ |
| 404 | ${LIST_mips4kc} \ |
| 405 | ${LIST_mips5kc} \ |
| 406 | ${LIST_au1xx0} \ |
| 407 | " |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 408 | |
wdenk | abda5ca | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 409 | ######################################################################### |
Wolfgang Denk | bc8c500 | 2005-08-14 00:27:00 +0200 | [diff] [blame] | 410 | ## MIPS Systems (little endian) |
| 411 | ######################################################################### |
| 412 | |
Daniel Schwierzeck | a10aa18 | 2011-11-24 03:57:56 +0000 | [diff] [blame] | 413 | LIST_xburst_el=" \ |
Xiangfu Liu | 7306ccb | 2011-10-12 12:24:06 +0800 | [diff] [blame] | 414 | qi_lb60 \ |
| 415 | " |
Wolfgang Denk | bc8c500 | 2005-08-14 00:27:00 +0200 | [diff] [blame] | 416 | |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 417 | LIST_au1xx0_el=" \ |
| 418 | dbau1550_el \ |
Shinya Kuribayashi | 2437cfb | 2007-10-27 15:00:25 +0900 | [diff] [blame] | 419 | pb1000 \ |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 420 | " |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 421 | LIST_mips_el=" \ |
Daniel Schwierzeck | a10aa18 | 2011-11-24 03:57:56 +0000 | [diff] [blame] | 422 | ${LIST_xburst_el} \ |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 423 | ${LIST_au1xx0_el} \ |
| 424 | " |
Stefan Kristiansson | c69cb3e | 2011-11-18 19:21:37 +0000 | [diff] [blame] | 425 | ######################################################################### |
| 426 | ## OpenRISC Systems |
| 427 | ######################################################################### |
| 428 | |
| 429 | LIST_openrisc="$(boards_by_arch openrisc)" |
Wolfgang Denk | bc8c500 | 2005-08-14 00:27:00 +0200 | [diff] [blame] | 430 | |
| 431 | ######################################################################### |
Graeme Russ | cbfce1d | 2011-04-13 19:43:28 +1000 | [diff] [blame] | 432 | ## x86 Systems |
wdenk | abda5ca | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 433 | ######################################################################### |
| 434 | |
Graeme Russ | cbfce1d | 2011-04-13 19:43:28 +1000 | [diff] [blame] | 435 | LIST_x86="$(boards_by_arch x86)" |
wdenk | abda5ca | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 436 | |
wdenk | 3be717f | 2004-01-03 19:43:48 +0000 | [diff] [blame] | 437 | ######################################################################### |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 438 | ## Nios-II Systems |
| 439 | ######################################################################### |
| 440 | |
Mike Frysinger | da6aa7c | 2011-06-26 23:00:19 -0400 | [diff] [blame] | 441 | LIST_nios2="$(boards_by_arch nios2)" |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 442 | |
| 443 | ######################################################################### |
wdenk | 20a6122 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 444 | ## MicroBlaze Systems |
| 445 | ######################################################################### |
| 446 | |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 447 | LIST_microblaze="$(boards_by_arch microblaze)" |
wdenk | 20a6122 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 448 | |
Zachary P. Landau | 1c3c096 | 2006-01-26 17:38:46 -0500 | [diff] [blame] | 449 | ######################################################################### |
| 450 | ## ColdFire Systems |
| 451 | ######################################################################### |
| 452 | |
Mike Frysinger | 6a9c023 | 2011-09-25 19:27:19 +0000 | [diff] [blame] | 453 | LIST_m68k="$(boards_by_arch m68k) |
Kim Phillips | 8c0c893 | 2007-08-10 15:34:48 -0500 | [diff] [blame] | 454 | EB+MCF-EV123 \ |
| 455 | EB+MCF-EV123_internal \ |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 456 | M52277EVB \ |
TsiChungLiew | b859ef1 | 2007-08-16 19:23:50 -0500 | [diff] [blame] | 457 | M5235EVB \ |
TsiChung Liew | 3cdc00a | 2008-08-11 13:41:49 +0000 | [diff] [blame] | 458 | M54451EVB \ |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 459 | M54455EVB \ |
Heiko Schocher | ac1956e | 2006-04-20 08:42:42 +0200 | [diff] [blame] | 460 | " |
Mike Frysinger | 6a9c023 | 2011-09-25 19:27:19 +0000 | [diff] [blame] | 461 | LIST_coldfire=${LIST_m68k} |
Zachary P. Landau | 1c3c096 | 2006-01-26 17:38:46 -0500 | [diff] [blame] | 462 | |
Wolfgang Denk | 994ad96 | 2006-10-24 14:42:37 +0200 | [diff] [blame] | 463 | ######################################################################### |
| 464 | ## AVR32 Systems |
| 465 | ######################################################################### |
| 466 | |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 467 | LIST_avr32="$(boards_by_arch avr32)" |
Wolfgang Denk | 994ad96 | 2006-10-24 14:42:37 +0200 | [diff] [blame] | 468 | |
Aubrey.Li | 450c23e | 2007-03-09 13:40:56 +0800 | [diff] [blame] | 469 | ######################################################################### |
| 470 | ## Blackfin Systems |
| 471 | ######################################################################### |
| 472 | |
Mike Frysinger | dd18ab6 | 2010-10-19 02:41:26 -0400 | [diff] [blame] | 473 | LIST_blackfin="$(boards_by_arch blackfin)" |
Aubrey.Li | 450c23e | 2007-03-09 13:40:56 +0800 | [diff] [blame] | 474 | |
Jean-Christophe PLAGNIOL-VILLARD | ceee338 | 2007-11-27 09:44:53 +0100 | [diff] [blame] | 475 | ######################################################################### |
| 476 | ## SH Systems |
| 477 | ######################################################################### |
| 478 | |
Nobuhiro Iwamatsu | 0c4bcc7 | 2010-10-20 01:22:25 +0900 | [diff] [blame] | 479 | LIST_sh2="$(boards_by_cpu sh2)" |
Nobuhiro Iwamatsu | 06ea8cf | 2010-10-20 01:28:29 +0900 | [diff] [blame] | 480 | LIST_sh3="$(boards_by_cpu sh3)" |
Nobuhiro Iwamatsu | c4c6234 | 2010-10-20 01:35:28 +0900 | [diff] [blame] | 481 | LIST_sh4="$(boards_by_cpu sh4)" |
Jean-Christophe PLAGNIOL-VILLARD | ceee338 | 2007-11-27 09:44:53 +0100 | [diff] [blame] | 482 | |
Nobuhiro Iwamatsu | c4c6234 | 2010-10-20 01:35:28 +0900 | [diff] [blame] | 483 | LIST_sh="$(boards_by_arch sh)" |
Jean-Christophe PLAGNIOL-VILLARD | ceee338 | 2007-11-27 09:44:53 +0100 | [diff] [blame] | 484 | |
Daniel Hellstrom | 9d7c6b2 | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 485 | ######################################################################### |
| 486 | ## SPARC Systems |
| 487 | ######################################################################### |
| 488 | |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 489 | LIST_sparc="$(boards_by_arch sparc)" |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 490 | |
Macpaul Lin | e0eb35a | 2011-10-19 20:41:10 +0000 | [diff] [blame] | 491 | ######################################################################### |
| 492 | ## NDS32 Systems |
| 493 | ######################################################################### |
| 494 | |
| 495 | LIST_nds32="$(boards_by_arch nds32)" |
| 496 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 497 | #----------------------------------------------------------------------- |
| 498 | |
Marek Vasut | 4f21ade | 2012-03-05 15:10:51 +0000 | [diff] [blame] | 499 | get_target_location() { |
| 500 | local target=$1 |
| 501 | local BOARD_NAME="" |
| 502 | local CONFIG_NAME="" |
| 503 | local board="" |
| 504 | local vendor="" |
| 505 | |
| 506 | # Automatic mode |
| 507 | local line=`egrep -i "^[[:space:]]*${target}[[:space:]]" boards.cfg` |
| 508 | |
| 509 | if [ -z "${line}" ] ; then echo "" ; return ; fi |
| 510 | |
| 511 | set ${line} |
| 512 | |
| 513 | # add default board name if needed |
| 514 | [ $# = 3 ] && set ${line} ${1} |
| 515 | |
| 516 | CONFIG_NAME="${1%_config}" |
| 517 | |
| 518 | [ "${BOARD_NAME}" ] || BOARD_NAME="${1%_config}" |
| 519 | |
| 520 | if [ "$4" = "-" ] ; then |
| 521 | board=${BOARD_NAME} |
| 522 | else |
| 523 | board="$4" |
| 524 | fi |
| 525 | |
| 526 | [ $# -gt 4 ] && [ "$5" != "-" ] && vendor="$5" |
| 527 | [ $# -gt 6 ] && [ "$7" != "-" ] && { |
| 528 | tmp="${7%:*}" |
| 529 | if [ "$tmp" ] ; then |
| 530 | CONFIG_NAME="$tmp" |
| 531 | fi |
| 532 | } |
| 533 | |
| 534 | # Assign board directory to BOARDIR variable |
| 535 | if [ -z "${vendor}" ] ; then |
| 536 | BOARDDIR=${board} |
| 537 | else |
| 538 | BOARDDIR=${vendor}/${board} |
| 539 | fi |
| 540 | |
| 541 | echo "${CONFIG_NAME}:${BOARDDIR}" |
| 542 | } |
| 543 | |
| 544 | get_target_maintainers() { |
| 545 | local name=`echo $1 | cut -d : -f 1` |
| 546 | |
| 547 | if ! grep -qsi "[[:blank:]]${name}[[:blank:]]" MAINTAINERS ; then |
| 548 | echo "" |
| 549 | return ; |
| 550 | fi |
| 551 | |
| 552 | local line=`tac MAINTAINERS | grep -ni "[[:blank:]]${name}[[:blank:]]" | cut -d : -f 1` |
| 553 | local mail=`tac MAINTAINERS | tail -n +${line} | \ |
| 554 | sed -n ":start /.*@.*/ { b mail } ; n ; b start ; :mail /.*@.*/ { p ; n ; b mail } ; q" | \ |
| 555 | sed "s/^.*<//;s/>.*$//"` |
| 556 | echo "$mail" |
| 557 | } |
| 558 | |
| 559 | list_target() { |
| 560 | if [ "$PRINT_MAINTS" != 'y' ] ; then |
| 561 | echo "$1" |
| 562 | return |
| 563 | fi |
| 564 | |
| 565 | echo -n "$1:" |
| 566 | |
| 567 | local loc=`get_target_location $1` |
| 568 | |
| 569 | if [ -z "${loc}" ] ; then echo "ERROR" ; return ; fi |
| 570 | |
| 571 | local maintainers_result=`get_target_maintainers ${loc} | tr " " "\n"` |
| 572 | |
| 573 | if [ "$MAINTAINERS_ONLY" != 'y' ] ; then |
| 574 | |
| 575 | local dir=`echo ${loc} | cut -d ":" -f 2` |
| 576 | local cfg=`echo ${loc} | cut -d ":" -f 1` |
| 577 | local git_result=`git log --format=%aE board/${dir} \ |
| 578 | include/configs/${cfg}.h | grep "@"` |
| 579 | local git_result_recent=`echo ${git_result} | tr " " "\n" | \ |
| 580 | head -n 3` |
| 581 | local git_result_top=`echo ${git_result} | tr " " "\n" | \ |
| 582 | sort | uniq -c | sort -nr | head -n 3 | \ |
| 583 | sed "s/^ \+[0-9]\+ \+//"` |
| 584 | |
| 585 | echo -e "$git_result_recent\n$git_result_top\n$maintainers_result" | \ |
| 586 | sort -u | tr "\n" " " | sed "s/ $//" ; |
| 587 | else |
| 588 | echo -e "$maintainers_result" | sort -u | tr "\n" " " | \ |
| 589 | sed "s/ $//" ; |
| 590 | fi |
| 591 | |
| 592 | echo "" |
| 593 | } |
| 594 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 595 | build_target() { |
| 596 | target=$1 |
| 597 | |
Marek Vasut | cc3e1cb | 2011-12-02 21:32:03 +0000 | [diff] [blame] | 598 | if [ "$ONLY_LIST" == 'y' ] ; then |
Marek Vasut | 4f21ade | 2012-03-05 15:10:51 +0000 | [diff] [blame] | 599 | list_target ${target} |
Marek Vasut | cc3e1cb | 2011-12-02 21:32:03 +0000 | [diff] [blame] | 600 | return |
| 601 | fi |
| 602 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 603 | ${MAKE} distclean >/dev/null |
Kim Phillips | 5ac3c12 | 2010-09-14 14:48:16 -0500 | [diff] [blame] | 604 | ${MAKE} -s ${target}_config |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 605 | |
| 606 | ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \ |
| 607 | | tee ${LOG_DIR}/$target.ERR |
Peter Tyser | a5a27b9 | 2009-12-06 23:58:28 -0600 | [diff] [blame] | 608 | |
| 609 | # Check for 'make' errors |
| 610 | if [ ${PIPESTATUS[0]} -ne 0 ] ; then |
| 611 | RC=1 |
| 612 | fi |
| 613 | |
Peter Tyser | 23240d2 | 2009-09-21 12:04:32 -0500 | [diff] [blame] | 614 | if [ -s ${LOG_DIR}/$target.ERR ] ; then |
| 615 | ERR_CNT=$((ERR_CNT + 1)) |
| 616 | ERR_LIST="${ERR_LIST} $target" |
| 617 | else |
| 618 | rm ${LOG_DIR}/$target.ERR |
| 619 | fi |
| 620 | |
| 621 | TOTAL_CNT=$((TOTAL_CNT + 1)) |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 622 | |
Scott Wood | f8b3e23 | 2012-02-20 12:56:25 +0000 | [diff] [blame] | 623 | OBJS=${BUILD_DIR}/u-boot |
| 624 | if [ -e ${BUILD_DIR}/spl/u-boot-spl ]; then |
| 625 | OBJS="${OBJS} ${BUILD_DIR}/spl/u-boot-spl" |
| 626 | fi |
| 627 | |
| 628 | ${CROSS_COMPILE}size ${OBJS} | tee -a ${LOG_DIR}/$target.MAKELOG |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 629 | } |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 630 | build_targets() { |
| 631 | for t in "$@" ; do |
| 632 | # If a LIST_xxx var exists, use it. But avoid variable |
| 633 | # expansion in the eval when a board name contains certain |
| 634 | # characters that the shell interprets. |
| 635 | case ${t} in |
| 636 | *[-+=]*) list= ;; |
| 637 | *) list=$(eval echo '${LIST_'$t'}') ;; |
| 638 | esac |
| 639 | if [ -n "${list}" ] ; then |
| 640 | build_targets ${list} |
| 641 | else |
| 642 | build_target ${t} |
| 643 | fi |
| 644 | done |
| 645 | } |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 646 | |
| 647 | #----------------------------------------------------------------------- |
| 648 | |
Peter Tyser | 23240d2 | 2009-09-21 12:04:32 -0500 | [diff] [blame] | 649 | print_stats() { |
Marek Vasut | cc3e1cb | 2011-12-02 21:32:03 +0000 | [diff] [blame] | 650 | if [ "$ONLY_LIST" == 'y' ] ; then return ; fi |
Peter Tyser | 23240d2 | 2009-09-21 12:04:32 -0500 | [diff] [blame] | 651 | echo "" |
| 652 | echo "--------------------- SUMMARY ----------------------------" |
| 653 | echo "Boards compiled: ${TOTAL_CNT}" |
| 654 | if [ ${ERR_CNT} -gt 0 ] ; then |
| 655 | echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )" |
| 656 | fi |
| 657 | echo "----------------------------------------------------------" |
Peter Tyser | a5a27b9 | 2009-12-06 23:58:28 -0600 | [diff] [blame] | 658 | |
| 659 | exit $RC |
Peter Tyser | 23240d2 | 2009-09-21 12:04:32 -0500 | [diff] [blame] | 660 | } |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 661 | |
Peter Tyser | 23240d2 | 2009-09-21 12:04:32 -0500 | [diff] [blame] | 662 | #----------------------------------------------------------------------- |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 663 | |
Wolfgang Denk | 7b74fec | 2010-10-17 12:26:48 +0200 | [diff] [blame] | 664 | # Build target groups selected by options, plus any command line args |
| 665 | set -- ${SELECTED} "$@" |
| 666 | # run PowerPC by default |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 667 | [ $# = 0 ] && set -- powerpc |
Mike Frysinger | b374bdb | 2010-08-19 13:05:06 -0400 | [diff] [blame] | 668 | build_targets "$@" |