Fix meta-netboot build on Minnowboard Max after migration to Krogoth 01/6601/3
authorStephane Desneux <stephane.desneux@iot.bzh>
Fri, 23 Sep 2016 15:21:57 +0000 (15:21 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 26 Sep 2016 02:03:32 +0000 (02:03 +0000)
The live images use now INITRD_IMAGE_LIVE and INITRD_LIVE variables to
specify the name for the initramfs image to build and add to hdd image.

Change-Id: I5593e0cb978db8e9cecb283804c9c6e65a34a57f
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-netboot/classes/netboot.bbclass

index 63014ff..753ef79 100644 (file)
@@ -9,9 +9,10 @@ python () {
        if (bb.utils.contains("IMAGE_FSTYPES","live",True,False,d)):
                # typical case for Minnowboard Max
                d.setVar("INITRD_IMAGE","initramfs-netboot-image")
-               d.setVar("INITRD","%s/%s-%s.ext4.gz" % (
+               d.setVar("INITRD_IMAGE_LIVE",d.getVar("INITRD_IMAGE",True))
+               d.setVar("INITRD_LIVE","%s/%s-%s.ext4.gz" % (
                        d.getVar("DEPLOY_DIR_IMAGE",True),
-                       d.getVar("INITRD_IMAGE",True),
+                       d.getVar("INITRD_IMAGE_LIVE",True),
                        d.getVar("MACHINE",True)
                ))
        else: