Lines Matching full:options
118 options = parser.parse_args(argv[1:])
120 if options.chromeos_root is None:
122 options.chromeos_root = os.path.expanduser(options.chromeos_root)
123 scripts_dir = os.path.join(options.chromeos_root, 'src', 'scripts')
127 if options.board is None:
130 if options.debug:
131 options.dev = True
133 build_packages_env = options.env
140 if options.rebuild:
144 misc.RemoveChromeBrowserObjectFiles(options.chromeos_root, options.board)
152 board=options.board, usepkg=options.vanilla_image, debug=options.debug)
154 if options.package:
155 build_packages_command += ' {0}'.format(options.package)
157 build_image_command = misc.GetBuildImageCommand(options.board, options.dev)
159 if options.vanilla or options.vanilla_image:
161 options.board,
162 usepkg=options.vanilla_image,
163 force=options.clobber_board)
166 ret = cmd_executer.ChrootRunCommand(options.chromeos_root, command)
170 if not os.path.isdir(options.chromeos_root + '/chroot/build/' +
171 options.board) or options.clobber_board:
174 options.chromeos_root,
175 misc.GetSetupBoardCommand(options.board, force=options.clobber_board))
181 if options.debug:
185 if options.rebuild:
199 options.chromeos_root, 'CFLAGS="$(portageq-%s envvar CFLAGS) %s" '
205 'chromeos-chrome' % (options.board, options.cflags, options.board,
206 options.cxxflags, options.board, options.ldflags,
214 if options.rebuild:
221 options.chromeos_root, 'CFLAGS="$(portageq-%s envvar CFLAGS) %s" '
227 'chromeos-chrome' % (options.board, options.cflags, options.board,
228 options.cxxflags, options.board, options.ldflags,
245 options.chromeos_root, 'CFLAGS="$(portageq-%s envvar CFLAGS) %s" '
251 (options.board, options.cflags, options.board, options.cxxflags,
252 options.board, options.ldflags, build_packages_env,
256 if options.package:
260 options.chromeos_root, build_packages_env + ' ' + build_image_command)
266 (options.chromeos_root, options.board, flags_file_name))
268 flags_file.write('CFLAGS=%s\n' % options.cflags)
269 flags_file.write('CXXFLAGS=%s\n' % options.cxxflags)
270 flags_file.write('LDFLAGS=%s\n' % options.ldflags)
272 if options.label:
273 image_dir_path = ('%s/src/build/images/%s/latest' % (options.chromeos_root,
274 options.board))
278 options.label))
282 ret, 'Failed to apply symlink label %s' % options.label)