OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # This script generates the list of board overlays and variants. | 7 # This script generates the list of board overlays and variants. |
8 | 8 |
9 # Load common constants. This should be the first executable line. | 9 # Load common constants. This should be the first executable line. |
10 # The path to common.sh should be relative to your script's location. | 10 # The path to common.sh should be relative to your script's location. |
11 . "$(dirname "$0")/common.sh" | 11 . "$(dirname "$0")/../common.sh" |
12 | 12 |
13 get_default_board | 13 get_default_board |
14 | 14 |
15 # Flags | 15 # Flags |
16 DEFINE_string board "$DEFAULT_BOARD" "The name of the board to set up." | 16 DEFINE_string board "$DEFAULT_BOARD" "The name of the board to set up." |
17 DEFINE_string board_overlay "" "Location of the board overlay." | 17 DEFINE_string board_overlay "" "Location of the board overlay." |
18 DEFINE_string variant "" "Board variant." | 18 DEFINE_string variant "" "Board variant." |
19 | 19 |
20 # Parse command line flags | 20 # Parse command line flags |
21 FLAGS "$@" || exit 1 | 21 FLAGS "$@" || exit 1 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 fi | 87 fi |
88 fi | 88 fi |
89 fi | 89 fi |
90 | 90 |
91 # | 91 # |
92 # Finally, add in any user requested board overlays. | 92 # Finally, add in any user requested board overlays. |
93 # | 93 # |
94 if [ -d "${FLAGS_board_overlay}" ] ; then | 94 if [ -d "${FLAGS_board_overlay}" ] ; then |
95 echo "${FLAGS_board_overlay}" | 95 echo "${FLAGS_board_overlay}" |
96 fi | 96 fi |
OLD | NEW |