build/fuchsia/generic_x64_target.py
def _ProvisionDevice(self):
    """Pave a device with a generic image of Fuchsia."""

    bootserver_path = GetHostToolPathFromPlatform('bootserver')
    bootserver_command = [
        bootserver_path, '-1', '--fvm',
        EnsurePathExists(
            boot_data.GetTargetFile('storage-sparse.blk',
                                    self._GetTargetSdkArch(),
                                    boot_data.TARGET_TYPE_GENERIC)),
        EnsurePathExists(
            boot_data.GetBootImage(self._out_dir, self._GetTargetSdkArch(),
                                   boot_data.TARGET_TYPE_GENERIC))
    ]

    if self._node_name:
      bootserver_command += ['-n', self._node_name]

    bootserver_command += ['--']
    bootserver_command += boot_data.GetKernelArgs()

    logging.debug(' '.join(bootserver_command))
    _, stdout = SubprocessCallWithTimeout(bootserver_command,
                                          silent=False,
                                          timeout_secs=300)

    self._ParseNodename(stdout)

    # Update the target's hash to match the current tree's.
    self.PutFile(os.path.join(SDK_ROOT, '.hash'), TARGET_HASH_FILE_PATH)
Pave a device with a generic image of Fuchsia.
Pave a device with a generic image of Fuchsia.
Pave a device with a generic image of Fuchsia .
def _ProvisionDevice(self):
    bootserver_path = GetHostToolPathFromPlatform('bootserver')
    bootserver_command = [
        bootserver_path, '-1', '--fvm',
        EnsurePathExists(
            boot_data.GetTargetFile('storage-sparse.blk',
                                    self._GetTargetSdkArch(),
                                    boot_data.TARGET_TYPE_GENERIC)),
        EnsurePathExists(
            boot_data.GetBootImage(self._out_dir, self._GetTargetSdkArch(),
                                   boot_data.TARGET_TYPE_GENERIC))
    ]
    if self._node_name:
      bootserver_command += ['-n', self._node_name]
    bootserver_command += ['--']
    bootserver_command += boot_data.GetKernelArgs()
    logging.debug(' '.join(bootserver_command))
    _, stdout = SubprocessCallWithTimeout(bootserver_command,
                                          silent=False,
                                          timeout_secs=300)
    self._ParseNodename(stdout)
    self.PutFile(os.path.join(SDK_ROOT, '.hash'), TARGET_HASH_FILE_PATH)
def _ProvisionDevice ( self ) : bootserver_path = GetHostToolPathFromPlatform ( 'bootserver' ) bootserver_command = [ bootserver_path , '-1' , '--fvm' , EnsurePathExists ( boot_data . GetTargetFile ( 'storage-sparse.blk' , self . _GetTargetSdkArch ( ) , boot_data . TARGET_TYPE_GENERIC ) ) , EnsurePathExists ( boot_data . GetBootImage ( self . _out_dir , self . _GetTargetSdkArch ( ) , boot_data . TARGET_TYPE_GENERIC ) ) ] if self . _node_name : bootserver_command += [ '-n' , self . _node_name ] bootserver_command += [ '--' ] bootserver_command += boot_data . GetKernelArgs ( ) logging . debug ( ' ' . join ( bootserver_command ) ) _ , stdout = SubprocessCallWithTimeout ( bootserver_command , silent = False , timeout_secs = 300 ) self . _ParseNodename ( stdout ) self . PutFile ( os . path . join ( SDK_ROOT , '.hash' ) , TARGET_HASH_FILE_PATH )
Pave a device with a generic image of Fuchsia.
Pave a device with a generic image of Fuchsia .
"""Pave a device with a generic image of Fuchsia.""" # Update the target's hash to match the current tree's.
self