aboutsummaryrefslogtreecommitdiffstats
path: root/meta-yocto-bsp/lib/oeqa/controllers
diff options
context:
space:
mode:
authorCorneliu Stoicescu <corneliux.stoicescu@intel.com>2014-06-06 21:24:41 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-17 11:45:15 +0100
commitd5deca211b344c8077b3e5f8669690b242480423 (patch)
treee5ecf3b69ae669a14d8ae49d301fa8e21bce60ef /meta-yocto-bsp/lib/oeqa/controllers
parente105c82203161da9d7441ee96de8506cb1dc7504 (diff)
downloadpoky-d5deca211b344c8077b3e5f8669690b242480423.tar.gz
poky-d5deca211b344c8077b3e5f8669690b242480423.tar.bz2
poky-d5deca211b344c8077b3e5f8669690b242480423.zip
beaglebonetarget.py: Add support for get_extra_files() classmethod
[YOCTO #6254] Adding support for the get_extra_files() method to the BeagleBoneTarget class. (From meta-yocto rev: b719ff579fe2a5f5a0d19a9091eaa37e0f145384) Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-yocto-bsp/lib/oeqa/controllers')
-rw-r--r--meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py b/meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py
index 0d148d7b4f..86b638c896 100644
--- a/meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py
+++ b/meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py
@@ -30,12 +30,15 @@ from oeqa.controllers.masterimage import MasterImageHardwareTarget
class BeagleBoneTarget(MasterImageHardwareTarget):
+ dtbs = {'uImage-am335x-bone.dtb': 'am335x-bone.dtb', 'uImage-am335x-boneblack.dtb': 'am335x-boneblack.dtb'}
+
+ @classmethod
+ def get_extra_files(self):
+ return list(self.dtbs.keys())
+
def __init__(self, d):
super(BeagleBoneTarget, self).__init__(d)
- self.dtbs = [('uImage-am335x-bone.dtb', 'am335x-bone.dtb'),
- ('uImage-am335x-boneblack.dtb', 'am335x-boneblack.dtb')]
-
self.deploy_cmds = [
'mkdir -p /mnt/testrootfs',
'mount -L testrootfs /mnt/testrootfs',
@@ -44,7 +47,7 @@ class BeagleBoneTarget(MasterImageHardwareTarget):
'[ -e /mnt/testrootfs/boot/uImage ] || cp ~/test-kernel /mnt/testrootfs/boot/uImage',
]
- for _, dtbfn in self.dtbs:
+ for _, dtbfn in self.dtbs.iteritems():
# Kernel and dtb files may not be in the image, so copy them if not
self.deploy_cmds.append('[ -e /mnt/testrootfs/boot/{0} ] || cp ~/{0} /mnt/testrootfs/boot/'.format(dtbfn))
@@ -58,7 +61,7 @@ class BeagleBoneTarget(MasterImageHardwareTarget):
# Kernel and dtb files may not be in the image, so copy them just in case
self.master.copy_to(self.kernel, "~/test-kernel")
kernelpath = os.path.dirname(self.kernel)
- for dtborig, dtbfn in self.dtbs:
+ for dtborig, dtbfn in self.dtbs.iteritems():
dtbfile = os.path.join(kernelpath, dtborig)
if os.path.exists(dtbfile):
self.master.copy_to(dtbfile, "~/%s" % dtbfn)