]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Documentation:openrisc: Add build instructions with initramfs
authorAnn Yun <by.ann.yun@gmail.com>
Sun, 27 Apr 2025 00:07:26 +0000 (20:07 -0400)
committerStafford Horne <shorne@gmail.com>
Tue, 6 May 2025 16:12:22 +0000 (17:12 +0100)
Mention how to include initramfs when building the kernel and
direct the reader to ramfs-rootfs-initramfs.rst documentation for more
details

Signed-off-by: Ann Yun <by.ann.yun@gmail.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Documentation/arch/openrisc/openrisc_port.rst

index a8f307a3b499cf43e9a1073fbffa86a66507ada9..60b0a9e51d7063a0516458eb189fc1dfb667b8f8 100644 (file)
@@ -40,6 +40,12 @@ Build the Linux kernel as usual::
        make ARCH=openrisc CROSS_COMPILE="or1k-linux-" defconfig
        make ARCH=openrisc CROSS_COMPILE="or1k-linux-"
 
+If you want to embed initramfs in the kernel, also pass ``CONFIG_INITRAMFS_SOURCE``. For example::
+
+       make ARCH=openrisc CROSS_COMPILE="or1k-linux-" CONFIG_INITRAMFS_SOURCE="path/to/rootfs path/to/devnodes"
+
+For more information on this, please check Documentation/filesystems/ramfs-rootfs-initramfs.rst.
+
 3) Running on FPGA (optional)
 
 The OpenRISC community typically uses FuseSoC to manage building and programming