if output:
- default_packages, output["arch_packages"] = run(
+ (
+ default_packages,
+ output["arch_packages"],
+ linux_version,
+ linux_release,
+ linux_vermagic,
+ ) = run(
[
"make",
"--no-print-directory",
"target/linux/",
"val.DEFAULT_PACKAGES",
"val.ARCH_PACKAGES",
+ "val.LINUX_VERSION",
+ "val.LINUX_RELEASE",
+ "val.LINUX_VERMAGIC",
"V=s",
],
stdout=PIPE,
).stdout.splitlines()
output["default_packages"] = sorted(default_packages.split())
-
+ output["linux_kernel"] = {
+ "version": linux_version,
+ "release": linux_release,
+ "vermagic": linux_vermagic,
+ }
output_path.write_text(json.dumps(output, sort_keys=True, separators=(",", ":")))
else:
print("JSON info file script could not find any JSON files for target")