forked from openkylin/platform_build
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:
commit
1e21bce346
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue