summaryrefslogtreecommitdiff
path: root/tools/extract_kernel.py
AgeCommit message (Collapse)Author
2021-02-07extract_kernel: make it py2/py3 compatiblecfig
use py3 for AOSP build, while the script itself can be executed under py2/py3 environment directly. TEST: extract info from Pixel 4 kernel Change-Id: I00db6dabb1ff93f0758017a666c476816caefae7
2020-08-08extract_kernel.py: add support to output compiler informationYongqin Liu
Test: tested with android-mainline gki kernel from https://android.googlesource.com/kernel/prebuilts/mainline/arm64/ Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: Ibf3eeb3679b233cd0d54501d385f442e0c0c34ec
2020-07-30Let extract_kernel return full kernel release.Yifan Hong
Also add relevant soong rules for genrules to use it. Test: use it in GKI APEX Bug: 161563386 Change-Id: I04f80ba91748ee5783088d4e20e6438418863f62
2019-09-16extract-kernel: Fix indexingYifan Hong
The original script always tries to extract from index 0 even if header is found in positive indices. Fix that. Also, continue to try other positions if previous run failed. Test: builds Bug: 139348603 Change-Id: Ia54fc709de9ae587fc64b59d94a1fa4ae669c14f
2019-07-09Catch unicode decode errors search for kernel verAndrew Chant
If a kernel happens to decode to gibberish (including non-ascii bytes), catch the decoding error when searching for the kernel version. Bug: 137041171 Merged-In: Ic035b3a5c8c80025cb3cede7b0fdcf8a2e5a35fd Change-Id: Ic035b3a5c8c80025cb3cede7b0fdcf8a2e5a35fd
2019-01-30Add kernel info to compatibility.zipYifan Hong
Add kernel configs / version to verified_assembled_vendor_manifest.xml so that the kernel of the incoming package can be checked against the framework. Previously, the running kernel was used instead. Bug: 111125947 Test: test_extract_kernel Test: manual OTA on Pixel 3 from build: Android P (kernel version 4.9.96) to ToT build: device kernel version = (manually modified) framework requirement = latest, PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS = true Change-Id: Id524a58e94bdb6bba348ca461c9d33614ce451a9