• Home
  • Raw
  • Download

Lines Matching refs:options

106   options = parser.parse_args(argv[1:])
108 if options.chromeos_root is None:
110 options.chromeos_root = os.path.expanduser(options.chromeos_root)
111 scripts_dir = os.path.join(options.chromeos_root, 'src', 'scripts')
115 if options.board is None:
118 if options.debug:
119 options.dev = True
121 build_packages_env = options.env
128 if options.rebuild == True:
132 misc.RemoveChromeBrowserObjectFiles(options.chromeos_root, options.board)
140 board=options.board,
141 usepkg=options.vanilla_image,
142 debug=options.debug)
144 if options.package:
145 build_packages_command += ' {0}'.format(options.package)
147 build_image_command = misc.GetBuildImageCommand(options.board, options.dev)
149 if options.vanilla or options.vanilla_image:
150 command = misc.GetSetupBoardCommand(options.board,
151 usepkg=options.vanilla_image,
152 force=options.clobber_board)
155 ret = cmd_executer.ChrootRunCommand(options.chromeos_root, command)
159 if not os.path.isdir(options.chromeos_root + '/chroot/build/' +
160 options.board) or options.clobber_board:
162 ret = cmd_executer.ChrootRunCommand(options.chromeos_root,
164 options.board,
165 force=options.clobber_board))
171 if options.debug:
175 if options.rebuild == True:
189 options.chromeos_root, "CFLAGS=\"$(portageq-%s envvar CFLAGS) %s\" "
195 'chromeos-chrome' % (options.board, options.cflags, options.board,
196 options.cxxflags, options.board, options.ldflags,
204 if options.rebuild == True:
211 options.chromeos_root, "CFLAGS=\"$(portageq-%s envvar CFLAGS) %s\" "
217 'chromeos-chrome' % (options.board, options.cflags, options.board,
218 options.cxxflags, options.board, options.ldflags,
235 options.chromeos_root, "CFLAGS=\"$(portageq-%s envvar CFLAGS) %s\" "
240 '%s --skip_chroot_upgrade' % (options.board, options.cflags,
241 options.board, options.cxxflags,
242 options.board, options.ldflags,
246 if options.package:
250 options.chromeos_root, build_packages_env + ' ' + build_image_command)
256 (options.chromeos_root, options.board, flags_file_name))
258 flags_file.write('CFLAGS=%s\n' % options.cflags)
259 flags_file.write('CXXFLAGS=%s\n' % options.cxxflags)
260 flags_file.write('LDFLAGS=%s\n' % options.ldflags)
263 if options.label:
264 image_dir_path = ('%s/src/build/images/%s/latest' % (options.chromeos_root,
265 options.board))
269 os.path.dirname(real_image_dir_path), options.label))
273 options.label)