From c291a48995d71690418d674abef2f8c1707a291b Mon Sep 17 00:00:00 2001 From: Rong Chang Date: Mon, 30 May 2011 14:56:48 +0800 Subject: [PATCH] Add "blkdevram" USE flag when building ARM factory install kernel Default netroot factory install kernel mounts rootfs in ram. The USE flag "blkdevram" was implemented in http://gerrit.chromium.org/gerrit/#change,1802 BUG=None TEST=Build factory install kernel and rootfs uimg. Kernel should be able to mount the in-ram initrd downloaded from tftp. Change-Id: Idb83375e0587432c5dec87357a8aa8e229f40af2 Reviewed-on: http://gerrit.chromium.org/gerrit/1803 Reviewed-by: Rong Chang Tested-by: Rong Chang --- build_image | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_image b/build_image index 01fbf507ef..68ae07fb63 100755 --- a/build_image +++ b/build_image @@ -225,8 +225,10 @@ if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ] ; then if [ "${ARCH}" = "x86" ] ; then export USE="${USE} initramfs" fi + # CONFIG_BLK_DEV_RAM is disabled by default. + # But tftp install needs it to mount rootfs in ram if [ "${ARCH}" = "arm" ] ; then - export USE="${USE} fbconsole" + export USE="${USE} fbconsole blkdevram" fi fi