Pass kernel version file to check_vintf. am: 72e78f21b2

Original change: https://android-review.googlesource.com/c/platform/build/+/1499184

Change-Id: Ic6c2fee383613debc0b624ee9bbcb365feda47b4
This commit is contained in:
Yifan Hong 2020-11-17 00:15:26 +00:00 committed by Automerger Merge Worker
commit 1e21bce346
2 changed files with 2 additions and 5 deletions

View File

@ -3759,7 +3759,7 @@ my_board_extracted_kernel :=
endif # INSTALLED_KERNEL_TARGET
check_vintf_compatible_args += --kernel $$(cat $(BUILT_KERNEL_VERSION_FILE)):$(BUILT_KERNEL_CONFIGS_FILE)
check_vintf_compatible_args += --kernel $(BUILT_KERNEL_VERSION_FILE):$(BUILT_KERNEL_CONFIGS_FILE)
check_vintf_compatible_deps += $(BUILT_KERNEL_CONFIGS_FILE) $(BUILT_KERNEL_VERSION_FILE)
endif # PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS

View File

@ -100,10 +100,7 @@ def GetArgsForKernel(input_tmp):
'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)]
return ['--kernel', '{}:{}'.format(version_path, config_path)]
def CheckVintfFromExtractedTargetFiles(input_tmp, info_dict=None):