]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
controllers/beaglebonetarget.py: enable dynamical determination of rootfs type
authorCorneliu Stoicescu <corneliux.stoicescu@intel.com>
Fri, 6 Jun 2014 18:24:42 +0000 (21:24 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Jun 2014 10:44:57 +0000 (11:44 +0100)
[YOCTO #6375]

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py

index 86b638c8967c3643315ed496f31bf0aa9342312d..b2e905078e084120ea1482ecb68930444142fbe1 100644 (file)
@@ -39,11 +39,12 @@ class BeagleBoneTarget(MasterImageHardwareTarget):
     def __init__(self, d):
         super(BeagleBoneTarget, self).__init__(d)
 
+        self.image_fstype = self.get_image_fstype(d)
         self.deploy_cmds = [
                 'mkdir -p /mnt/testrootfs',
                 'mount -L testrootfs /mnt/testrootfs',
                 'rm -rf /mnt/testrootfs/*',
-                'tar xzvf ~/test-rootfs.tar.gz -C /mnt/testrootfs',
+                'tar xvf ~/test-rootfs.%s -C /mnt/testrootfs' % self.image_fstype,
                 '[ -e /mnt/testrootfs/boot/uImage ] || cp ~/test-kernel /mnt/testrootfs/boot/uImage',
                 ]
 
@@ -65,7 +66,7 @@ class BeagleBoneTarget(MasterImageHardwareTarget):
             dtbfile = os.path.join(kernelpath, dtborig)
             if os.path.exists(dtbfile):
                 self.master.copy_to(dtbfile, "~/%s" % dtbfn)
-        self.master.copy_to(self.rootfs, "~/test-rootfs.tar.gz")
+        self.master.copy_to(self.rootfs, "~/test-rootfs.%s" % self.image_fstype)
         for cmd in self.deploy_cmds:
             self.master.run(cmd)