summaryrefslogtreecommitdiff
path: root/payloads/external/LinuxBoot/arm64
diff options
context:
space:
mode:
authorMaximilian Brune <maximilian.brune@9elements.com>2023-06-26 20:04:47 +0200
committerLean Sheng Tan <sheng.tan@9elements.com>2023-07-23 18:24:39 +0000
commitc202be793fd483167ab25b60a3f4630137ca33ae (patch)
treefbf2a71b14847b5f33ebc81363511ccc2fbcd3eb /payloads/external/LinuxBoot/arm64
parent449c6d981c216e05d5238056f03c7794e43600ec (diff)
payloads/external/LinuxBoot: Clean up
There were some issues with the current Linuxboot Makefiles. - multithreaded compilation didn't work, because some prerequisites were missing - initramfs wasn't added for x86 qemu boot. - riscv support was incomplete It began with separate patches, but resulted in a clean up patch, that is hard to separate. The most important changes are the following: - Instead of phony targets, actual files are now used as prerequisites - riscv can now be used as target - initramfs works now also for x86 - instead of querying the most recent version from the internet, I set a known working version (because I tested it) that can be customized and/or upgraded in the future. The reasons: - querying the version from the internet requires a constant connection to the internet even after linux kernel is already build (aka subsequent builds). - one usually wants to use a known working version, but optionally still have the posibillity to choose a custom one. This patch introduces this possibility in its most simple form. - I removed as much ifeq statements as possible and moved that responsibility to Kconfig, because they tend to make the Makefile less readable. Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Change-Id: I25e757108e0dd473969fe5a192ad0733f1fe6286 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76150 Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/external/LinuxBoot/arm64')
-rw-r--r--payloads/external/LinuxBoot/arm64/kernel_fdt_lzma.its7
1 files changed, 4 insertions, 3 deletions
diff --git a/payloads/external/LinuxBoot/arm64/kernel_fdt_lzma.its b/payloads/external/LinuxBoot/arm64/kernel_fdt_lzma.its
index 3087e69a74..46c43ac9dc 100644
--- a/payloads/external/LinuxBoot/arm64/kernel_fdt_lzma.its
+++ b/payloads/external/LinuxBoot/arm64/kernel_fdt_lzma.its
@@ -11,7 +11,7 @@
images {
kernel {
description = "Vanilla Linux kernel";
- data = /incbin/("vmlinux.bin.lzma");
+ data = /incbin/("../build/vmlinux.bin.lzma");
type = "kernel";
arch = "arm64";
os = "linux";
@@ -30,7 +30,7 @@
};
fdt-1 {
description = "Flattened Device Tree blob";
- data = /incbin/("target.dtb");
+ data = /incbin/("../build/target.dtb");
type = "flat_dt";
arch = "arm64";
compression = "none";
@@ -46,7 +46,7 @@
};
ramdisk-1 {
description = "Compressed Initramfs";
- data = /incbin/("initramfs");
+ data = /incbin/("../build/initramfs");
type = "ramdisk";
arch = "arm64";
os = "linux";
@@ -65,6 +65,7 @@
configurations {
default = "conf-1";
conf-1 {
+ compatible = "linuxboot";
description = "Boot Linux kernel with FDT blob";
kernel = "kernel";
fdt = "fdt-1";