summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-10-02 17:22:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-10-04 22:56:40 +0100
commite8011abfab79220102e4843d8a91655162140090 (patch)
treeacbafd31b192b71a3a04e6a1fb88ce4c4559d2b4
parent2097874dab4d6b77d7ece026808283381c2cbe1a (diff)
downloadopenembedded-core-e8011abfab79220102e4843d8a91655162140090.tar.gz
openembedded-core-e8011abfab79220102e4843d8a91655162140090.tar.bz2
openembedded-core-e8011abfab79220102e4843d8a91655162140090.tar.xz
openembedded-core-e8011abfab79220102e4843d8a91655162140090.zip
image-live.bbclass: allow images to override ROOTFS and INITRD
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--meta/classes/image-live.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass
index c910488d6..1d184a1e0 100644
--- a/meta/classes/image-live.bbclass
+++ b/meta/classes/image-live.bbclass
@@ -1,11 +1,11 @@
AUTO_SYSLINUXCFG = "1"
-INITRD = "${DEPLOY_DIR_IMAGE}/core-image-minimal-initramfs-${MACHINE}.cpio.gz"
+INITRD ?= "${DEPLOY_DIR_IMAGE}/core-image-minimal-initramfs-${MACHINE}.cpio.gz"
APPEND += "root=/dev/ram0 "
TIMEOUT = "10"
LABELS += "boot install"
-ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3"
+ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3"
do_bootimg[depends] += "core-image-minimal-initramfs:do_rootfs"
do_bootimg[depends] += "${IMAGE_BASENAME}:do_rootfs"