Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddin9 committed Apr 26, 2023
1 parent 053f66f commit a764a5d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
22 changes: 21 additions & 1 deletion devices/mediatek_mt7981/patches/fix.patch
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,24 @@
+ "kernel_initramfs": getenv("KERNEL_INITRAMFS"),
"images": [
{
"type": getenv("IMAGE_TYPE"),
"type": getenv("IMAGE_TYPE"),

--- a/scripts/json_overview_image_info.py
+++ b/scripts/json_overview_image_info.py
@@ -47,7 +47,7 @@ def get_initial_output(image_info):


if output:
- default_packages, output["arch_packages"] = run(
+ default_packages, output["arch_packages"], output["kernel_version"] = run(
[
"make",
"--no-print-directory",
@@ -55,6 +55,7 @@ def get_initial_output(image_info):
"target/linux/",
"val.DEFAULT_PACKAGES",
"val.ARCH_PACKAGES",
+ "val.LINUX_VERSION",
],
stdout=PIPE,
stderr=PIPE,
22 changes: 21 additions & 1 deletion devices/mediatek_mt7986/patches/fix.patch
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,24 @@
+ "kernel_initramfs": getenv("KERNEL_INITRAMFS"),
"images": [
{
"type": getenv("IMAGE_TYPE"),
"type": getenv("IMAGE_TYPE"),

--- a/scripts/json_overview_image_info.py
+++ b/scripts/json_overview_image_info.py
@@ -47,7 +47,7 @@ def get_initial_output(image_info):


if output:
- default_packages, output["arch_packages"] = run(
+ default_packages, output["arch_packages"], output["kernel_version"] = run(
[
"make",
"--no-print-directory",
@@ -55,6 +55,7 @@ def get_initial_output(image_info):
"target/linux/",
"val.DEFAULT_PACKAGES",
"val.ARCH_PACKAGES",
+ "val.LINUX_VERSION",
],
stdout=PIPE,
stderr=PIPE,

0 comments on commit a764a5d

Please sign in to comment.