build: profiles.json: add kernel version information
authorEric Fahlgren <ericfahlgren@gmail.com>
Fri, 22 Nov 2024 17:00:25 +0000 (09:00 -0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 29 Nov 2024 20:45:01 +0000 (21:45 +0100)
commitdb554fd4502b2e9fb2ff669a9fbd65573f0b2007
tree99d693845464be2ea8954eea5b55588f61ea4ac4
parent6d5c434b1419f2c5c84549d5ef48b73f52f9e9d6
build: profiles.json: add kernel version information

Currently downstream tools like ASU lack information about kernel
version to find out the relevant kmod build folder on downloads server.

So lets fix it by providing a new `linux_kernel` JSON array which would
for the start provide Linux kernel version, revision and vermagic
information.

  "linux_kernel": {
     "release": "1",
     "vermagic": "b57450c07d3a786158c3601fc5cee57d",
     "version": "6.6.61"
   },

Fixes: openwrt/openwrt#17036
Fixes: efahl/owut#9
Co-developed-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17042
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit c857145e034f623e31ab2028049a547ecd94ce85)
scripts/json_overview_image_info.py