Beispiel #1
0
    def PerformStage(self):
        build_id, _ = self._run.GetCIDBHandle()
        install_plan_fn = ('/tmp/%s_install_plan.%s' %
                           (self._current_board, build_id))

        # We need to run chroot updates on most builders because they uprev after
        # the InitSDK stage. For the SDK builder, we can skip updates because uprev
        # is run prior to InitSDK. This is not just an optimization: It helps
        # workaround http://crbug.com/225509
        if self._run.config.build_type != constants.CHROOT_BUILDER_TYPE:
            usepkg_toolchain = (self._run.config.usepkg_toolchain
                                and not self._latest_toolchain)
            commands.UpdateChroot(self._build_root,
                                  toolchain_boards=[self._current_board],
                                  usepkg=usepkg_toolchain,
                                  extra_env=self._portage_extra_env,
                                  save_install_plan=install_plan_fn)

        # Always update the board.
        usepkg = self._run.config.usepkg_build_packages
        commands.SetupBoard(
            self._build_root,
            board=self._current_board,
            usepkg=usepkg,
            chrome_binhost_only=self._run.config.chrome_binhost_only,
            force=self._run.config.board_replace,
            extra_env=self._portage_extra_env,
            chroot_upgrade=False,
            profile=self._run.options.profile or self._run.config.profile,
            save_install_plan=install_plan_fn)
Beispiel #2
0
  def PerformStage(self):
    """Do the work of updating the chroot."""
    usepkg_toolchain = (
        self._run.config.usepkg_toolchain and not self._latest_toolchain)

    commands.UpdateChroot(
        self._build_root,
        usepkg=usepkg_toolchain,
        extra_env=self._portage_extra_env,
        chroot_args=['--cache-dir', self._run.options.cache_dir])
Beispiel #3
0
    def PerformStage(self):
        """Do the work of updating the chroot."""
        # Ensure we don't run on SDK builder. https://crbug.com/225509
        assert self._run.config.build_type != constants.CHROOT_BUILDER_TYPE

        usepkg_toolchain = (self._run.config.usepkg_toolchain
                            and not self._latest_toolchain)

        chroot_args = None
        if self._run.options.cache_dir:
            chroot_args = ['--cache-dir', self._run.options.cache_dir]

        commands.UpdateChroot(self._build_root,
                              usepkg=usepkg_toolchain,
                              extra_env=self._portage_extra_env,
                              chroot_args=chroot_args)