def GetArgsForKernel(input_tmp):
    version_path = os.path.join(input_tmp, 'META/kernel_version.txt')
    config_path = os.path.join(input_tmp, 'META/kernel_configs.txt')
    if ((not os.path.isfile(version_path)) or (not os.path.isfile(config_path))):
        logger.info('Skipping kernel config checks because PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS is not set')
        return []
    with open(version_path) as f:
        version = f.read().strip()
    return ['--kernel', '{}:{}'.format(version, config_path)]
def GetArgsForKernel(input_tmp):
    version_path = os.path.join(input_tmp, 'META/kernel_version.txt')
    config_path = os.path.join(input_tmp, 'META/kernel_configs.txt')
    if ((not os.path.isfile(version_path)) or (not os.path.isfile(config_path))):
        logger.info('Skipping kernel config checks because PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS is not set')
        return []
    with open(version_path) as f:
        version = f.read().strip()
    return ['--kernel', '{}:{}'.format(version, config_path)]