summaryrefslogtreecommitdiffstats
path: root/meta/classes/boot-directdisk.bbclass
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2014-07-29 11:34:45 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-02 09:26:14 +0100
commit3b19f90bdfca520a6e00057cacb103f8a55feac6 (patch)
tree6d14c46a4cc04097a04aae9fd1adb7a22c838449 /meta/classes/boot-directdisk.bbclass
parent463c9f4d3abeaa46ba8aa2b287b62c907c39359b (diff)
downloadpoky-3b19f90bdfca520a6e00057cacb103f8a55feac6.tar.gz
INITRD var: make it a list of filesystem images
The initrd image used by the Linux kernel is list of file system images concatenated together and presented as a single initrd file at boot time. So far the initrd is a single filesystem image. But in cases like to support early microcode loading, the initrd image need to have multiple filesystem images concatenated together. This commit is extending the INITRD variable from a single filesystem image to a list of filesystem images to satisfy the need mentioned above. (From OE-Core rev: b0ac481dda99d8f4be8015964fcb2cb01afce08c) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/boot-directdisk.bbclass')
-rw-r--r--meta/classes/boot-directdisk.bbclass13
1 files changed, 10 insertions, 3 deletions
diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass
index 0da9932f4f..995d3e7fc6 100644
--- a/meta/classes/boot-directdisk.bbclass
+++ b/meta/classes/boot-directdisk.bbclass
@@ -71,10 +71,17 @@ boot_direct_populate() {
71 # Install bzImage, initrd, and rootfs.img in DEST for all loaders to use. 71 # Install bzImage, initrd, and rootfs.img in DEST for all loaders to use.
72 install -m 0644 ${STAGING_KERNEL_DIR}/bzImage $dest/vmlinuz 72 install -m 0644 ${STAGING_KERNEL_DIR}/bzImage $dest/vmlinuz
73 73
74 if [ -n "${INITRD}" ] && [ -s "${INITRD}" ]; then 74 # initrd is made of concatenation of multiple filesystem images
75 install -m 0644 ${INITRD} $dest/initrd 75 if [ -n "${INITRD}" ]; then
76 rm -f $dest/initrd
77 for fs in ${INITRD}
78 do
79 if [ -n "${fs}" ] && [ -s "${fs}" ]; then
80 cat ${fs} >> $dest/initrd
81 fi
82 done
83 chmod 0644 $dest/initrd
76 fi 84 fi
77
78} 85}
79 86
80build_boot_dd() { 87build_boot_dd() {