aboutsummaryrefslogtreecommitdiff
path: root/tools/extract_kernel.py
Commit message (Collapse)AuthorAgeFilesLines
* extract_kernel: make it py2/py3 compatiblecfig2021-02-071-9/+14
| | | | | | | | | 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
* extract_kernel.py: add support to output compiler informationYongqin Liu2020-08-081-1/+20
| | | | | | | | 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
* Let extract_kernel return full kernel release.Yifan Hong2020-07-301-24/+60
| | | | | | | | Also add relevant soong rules for genrules to use it. Test: use it in GKI APEX Bug: 161563386 Change-Id: I04f80ba91748ee5783088d4e20e6438418863f62
* extract-kernel: Fix indexingYifan Hong2019-09-161-14/+20
| | | | | | | | | | | | 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
* Catch unicode decode errors search for kernel verAndrew Chant2019-07-091-1/+4
| | | | | | | | | | 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
* Add kernel info to compatibility.zipYifan Hong2019-01-301-0/+196
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