aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2016-05-30 14:50:47 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2016-05-30 14:52:13 +0200
commit9b5aec701685f4304004d215c791a14e6d4ac142 (patch)
treee77269cc3758033bbfbdda51c837863dc4376b1b
parente79ae20d2a6865bd7a228c206106e3eb89fa5399 (diff)
Add nbd boot support to renesas kernel
This adds the necessary kernel modules to boot an nbdroot filesystem. Change-Id: I95968fa5034dedf5fd57578de4c7c97a76a83b2b Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
-rw-r--r--meta-rcar-gen2/recipes-kernel/linux/linux.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-rcar-gen2/recipes-kernel/linux/linux.inc b/meta-rcar-gen2/recipes-kernel/linux/linux.inc
index 49f182e..806be22 100644
--- a/meta-rcar-gen2/recipes-kernel/linux/linux.inc
+++ b/meta-rcar-gen2/recipes-kernel/linux/linux.inc
@@ -157,6 +157,19 @@ do_configure_prepend() {
kernel_configure_variable PID_NS y
kernel_configure_variable NET_NS y
+ # nbdroot support
+ kernel_configure_variable BLK_DEV_LOOP y
+ kernel_configure_variable BLK_DEV_NBD y
+ kernel_configure_variable BLK_DEV_INITRD y
+ kernel_configure_variable RD_GZIP y
+ kernel_configure_variable RD_BZIP2 y
+ kernel_configure_variable RD_XZ y
+ kernel_configure_variable EXT4_FS y
+ kernel_configure_variable EXT4_USE_FOR_EXT23 y
+ kernel_configure_variable BLK_DEV_RAM y
+ kernel_configure_variable BLK_DEV_RAM_COUNT 2
+ kernel_configure_variable BLK_DEV_RAM_SIZE 16384
+
# only when distro is built for debug
if [ "${DISTRO_TYPE}" = "debug" ]; then
kernel_configure_variable BLK_DEV_LOOP y