[Buildroot] [PATCH] boot-wrapper-aarch64: Allow users to specify an initrd/initramfs file.
Hollis Blanchard
hollis_blanchard at mentor.com
Fri Oct 7 22:45:03 UTC 2016
Signed-off-by: Hollis Blanchard <hollis_blanchard at mentor.com>
---
boot/boot-wrapper-aarch64/Config.in | 8 ++++++++
boot/boot-wrapper-aarch64/boot-wrapper-aarch64.mk | 4 ++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/boot/boot-wrapper-aarch64/Config.in b/boot/boot-wrapper-aarch64/Config.in
index c4e63e2..2563f58 100644
--- a/boot/boot-wrapper-aarch64/Config.in
+++ b/boot/boot-wrapper-aarch64/Config.in
@@ -32,4 +32,12 @@ config BR2_TARGET_BOOT_WRAPPER_AARCH64_BOOTARGS
Kernel bootargs to embed inside the image generated by the
boot wrapper.
+config BR2_TARGET_BOOT_WRAPPER_AARCH64_RAMDISK
+ string "Ramdisk"
+ default ""
+ help
+ Embed an initramfs file in the kernel image, and provide
+ linux,initrd-start and linux,initrd-end properties in the /chosen device
+ tree node.
+
endif
diff --git a/boot/boot-wrapper-aarch64/boot-wrapper-aarch64.mk b/boot/boot-wrapper-aarch64/boot-wrapper-aarch64.mk
index c56bdee..28b2061 100644
--- a/boot/boot-wrapper-aarch64/boot-wrapper-aarch64.mk
+++ b/boot/boot-wrapper-aarch64/boot-wrapper-aarch64.mk
@@ -30,6 +30,10 @@ BOOT_WRAPPER_AARCH64_CONF_OPTS = \
--with-kernel-dir=$(LINUX_DIR) \
--with-cmdline=$(BR2_TARGET_BOOT_WRAPPER_AARCH64_BOOTARGS)
+ifneq ($(BR2_TARGET_BOOT_WRAPPER_AARCH64_RAMDISK),)
+ BOOT_WRAPPER_AARCH64_CONF_OPTS += --with-initrd=$(BR2_TARGET_BOOT_WRAPPER_AARCH64_RAMDISK)
+endif
+
# We need to convince the configure script that the Linux kernel tree
# exists, as well as the DTB and the kernel Image. Even though those
# are available on the build machine, the configure script uses
--
1.7.1
More information about the buildroot
mailing list