From: Stephane Desneux Date: Fri, 23 Sep 2016 15:21:57 +0000 (+0000) Subject: Fix meta-netboot build on Minnowboard Max after migration to Krogoth X-Git-Tag: chinook_3.0.0~130 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=8741f9087d6f707321f9b87c667c62fd507e22bb;hp=75ee644a3344fb2f3bf5bd8733b387064c3e11f4;p=AGL%2Fmeta-agl.git Fix meta-netboot build on Minnowboard Max after migration to Krogoth 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 --- diff --git a/meta-netboot/classes/netboot.bbclass b/meta-netboot/classes/netboot.bbclass index 63014ff96..753ef79e3 100644 --- a/meta-netboot/classes/netboot.bbclass +++ b/meta-netboot/classes/netboot.bbclass @@ -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: