'make install in the kernel tree'

@log.record
@tee_output_logdir_mark
def install(self, tag='autotest', prefix='/', install_vmlinux=True):

    self.installed_as = tag
    os.chdir(self.build_dir)
    if (not os.path.isdir(prefix)):
        os.mkdir(prefix)
    self.boot_dir = os.path.join(prefix, 'boot')
    if (not os.path.isdir(self.boot_dir)):
        os.mkdir(self.boot_dir)
    if (not self.build_image):
        images = glob.glob(('arch/*/boot/' + self.build_target))
        if len(images):
            self.build_image = images[0]
        else:
            self.build_image = self.build_target
    self.vmlinux = ((self.boot_dir + '/vmlinux-') + tag)
    if (self.build_image != 'vmlinux'):
        self.image = ((self.boot_dir + '/vmlinuz-') + tag)
    else:
        self.image = self.vmlinux
        install_vmlinux = True
    self.system_map = ((self.boot_dir + '/System.map-') + tag)
    self.config_file = ((self.boot_dir + '/config-') + tag)
    self.initrd = ''
    if install_vmlinux:
        utils.force_copy('vmlinux', self.vmlinux)
    if (self.build_image != 'vmlinux'):
        utils.force_copy(self.build_image, self.image)
    utils.force_copy('System.map', self.system_map)
    utils.force_copy('.config', self.config_file)
    if (not kernel_config.modules_needed('.config')):
        return
    utils.system(('make    modules_install    INSTALL_MOD_PATH=%s' % prefix))
    if (prefix == '/'):
        self.initrd = ((self.boot_dir + '/initrd-') + tag)
        self.mkinitrd(self.get_kernel_build_ver(), self.image, self.system_map, self.initrd)
