summaryrefslogtreecommitdiffstats
path: root/meta-yocto-bsp/lib/oeqa/controllers
diff options
context:
space:
mode:
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
30 30
31class BeagleBoneTarget(MasterImageHardwareTarget): 31class BeagleBoneTarget(MasterImageHardwareTarget):
32 32
33 dtbs = {'uImage-am335x-bone.dtb': 'am335x-bone.dtb', 'uImage-am335x-boneblack.dtb': 'am335x-boneblack.dtb'}
34
35 @classmethod
36 def get_extra_files(self):
37 return list(self.dtbs.keys())
38
33 def __init__(self, d): 39 def __init__(self, d):
34 super(BeagleBoneTarget, self).__init__(d) 40 super(BeagleBoneTarget, self).__init__(d)
35 41
36 self.dtbs = [('uImage-am335x-bone.dtb', 'am335x-bone.dtb'),
37 ('uImage-am335x-boneblack.dtb', 'am335x-boneblack.dtb')]
38
39 self.deploy_cmds = [ 42 self.deploy_cmds = [
40 'mkdir -p /mnt/testrootfs', 43 'mkdir -p /mnt/testrootfs',
41 'mount -L testrootfs /mnt/testrootfs', 44 'mount -L testrootfs /mnt/testrootfs',
@@ -44,7 +47,7 @@ class BeagleBoneTarget(MasterImageHardwareTarget):
44 '[ -e /mnt/testrootfs/boot/uImage ] || cp ~/test-kernel /mnt/testrootfs/boot/uImage', 47 '[ -e /mnt/testrootfs/boot/uImage ] || cp ~/test-kernel /mnt/testrootfs/boot/uImage',
45 ] 48 ]
46 49
47 for _, dtbfn in self.dtbs: 50 for _, dtbfn in self.dtbs.iteritems():
48 # Kernel and dtb files may not be in the image, so copy them if not 51 # Kernel and dtb files may not be in the image, so copy them if not
49 self.deploy_cmds.append('[ -e /mnt/testrootfs/boot/{0} ] || cp ~/{0} /mnt/testrootfs/boot/'.format(dtbfn)) 52 self.deploy_cmds.append('[ -e /mnt/testrootfs/boot/{0} ] || cp ~/{0} /mnt/testrootfs/boot/'.format(dtbfn))
50 53
@@ -58,7 +61,7 @@ class BeagleBoneTarget(MasterImageHardwareTarget):
58 # Kernel and dtb files may not be in the image, so copy them just in case 61 # Kernel and dtb files may not be in the image, so copy them just in case
59 self.master.copy_to(self.kernel, "~/test-kernel") 62 self.master.copy_to(self.kernel, "~/test-kernel")
60 kernelpath = os.path.dirname(self.kernel) 63 kernelpath = os.path.dirname(self.kernel)
61 for dtborig, dtbfn in self.dtbs: 64 for dtborig, dtbfn in self.dtbs.iteritems():
62 dtbfile = os.path.join(kernelpath, dtborig) 65 dtbfile = os.path.join(kernelpath, dtborig)
63 if os.path.exists(dtbfile): 66 if os.path.exists(dtbfile):
64 self.master.copy_to(dtbfile, "~/%s" % dtbfn) 67 self.master.copy_to(dtbfile, "~/%s" % dtbfn)