Esempio n. 1
0
    def setUpLocal(self):
        layer = "meta-updater-qemux86-64"
        result = runCmd('bitbake-layers show-layers')
        if re.search(layer, result.output) is None:
            self.meta_qemu = metadir() + layer
            runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu)
        else:
            self.meta_qemu = None
        self.append_config('MACHINE = "qemux86-64"')
        self.append_config('SOTA_CLIENT_PROV = ""')
        self.append_config(
            'IMAGE_FSTYPES_remove = "ostreepush garagesign garagecheck"')
        self.append_config('SOTA_HARDWARE_ID = "plain_reibekuchen_314"')

        self.append_config('DISTRO = "poky"')
        self.append_config('DISTRO_FEATURES_append = " systemd"')
        self.append_config('VIRTUAL-RUNTIME_init_manager = "systemd"')
        self.append_config(
            'PREFERRED_RPROVIDER_virtual/network-configuration ??= "networkd-dhcp-conf"'
        )
        self.append_config('PACKAGECONFIG_pn-aktualizr = ""')
        self.append_config('SOTA_DEPLOY_CREDENTIALS = "1"')
        self.append_config('IMAGE_INSTALL_append += "aktualizr"')
        self.append_config('IMAGE_INSTALL_append += " aktualizr-shared-prov"')
        self.qemu, self.s = qemu_launch(machine='qemux86-64',
                                        uboot_enable='no')
 def setUpLocal(self):
     layer = "meta-updater-qemux86-64"
     result = runCmd('bitbake-layers show-layers')
     if re.search(layer, result.output) is None:
         self.meta_qemu = metadir() + layer
         runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu)
     else:
         self.meta_qemu = None
     self.append_config('MACHINE = "qemux86-64"')
     self.append_config('SOTA_CLIENT_PROV = " aktualizr-shared-prov "')
     self.append_config(
         'IMAGE_FSTYPES_remove = "ostreepush garagesign garagecheck"')
     self.qemu, self.s = qemu_launch(machine='qemux86-64')
Esempio n. 3
0
 def setUpLocal(self):
     layer = "meta-updater-qemux86-64"
     result = runCmd('bitbake-layers show-layers')
     if re.search(layer, result.output) is None:
         self.meta_qemu = metadir() + layer
         runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu)
     else:
         self.meta_qemu = None
     self.append_config('MACHINE = "qemux86-64"')
     self.append_config('SOTA_CLIENT_PROV = " aktualizr-device-prov "')
     self.append_config('SOTA_DEPLOY_CREDENTIALS = "0"')
     self.append_config(
         'IMAGE_FSTYPES:remove = "ostreepush garagesign garagecheck"')
     self.qemu, self.s = qemu_launch(machine='qemux86-64')
     bitbake('build-sysroots -c build_native_sysroot')
Esempio n. 4
0
 def setUpLocal(self):
     layer = "meta-updater-qemux86-64"
     result = runCmd('bitbake-layers show-layers')
     if re.search(layer, result.output) is None:
         # Assume the directory layout for finding other layers. We could also
         # make assumptions by using 'show-layers', but either way, if the
         # layers we need aren't where we expect them, we are out of luck.
         path = os.path.abspath(os.path.dirname(__file__))
         metadir = path + "/../../../../../"
         self.meta_qemu = metadir + layer
         runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu)
     else:
         self.meta_qemu = None
     self.append_config('MACHINE = "qemux86-64"')
     self.append_config('SOTA_CLIENT_PROV = " aktualizr-shared-prov "')
     self.qemu, self.s = qemu_launch(machine='qemux86-64')
Esempio n. 5
0
 def setUpLocal(self):
     layer = "meta-updater-qemux86-64"
     result = runCmd('bitbake-layers show-layers')
     if re.search(layer, result.output) is None:
         self.meta_qemu = metadir() + layer
         runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu)
     else:
         self.meta_qemu = None
     self.append_config('MACHINE = "qemux86-64"')
     self.append_config('SYSTEMD_AUTO_ENABLE:aktualizr = "disable"')
     self.append_config('PTEST_ENABLED:pn-aktualizr = "1"')
     self.append_config(
         'IMAGE_INSTALL:append += "aktualizr-ptest ptest-runner "')
     self.append_config(
         'IMAGE_FSTYPES:remove = "ostreepush garagesign garagecheck"')
     self.qemu, self.s = qemu_launch(machine='qemux86-64', mem="768M")
Esempio n. 6
0
 def setUpLocal(self):
     layer = "meta-updater-qemux86-64"
     result = runCmd('bitbake-layers show-layers')
     if re.search(layer, result.output) is None:
         self.meta_qemu = metadir() + layer
         runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu)
     else:
         self.meta_qemu = None
     self.append_config('MACHINE = "qemux86-64"')
     self.append_config('SOTA_CLIENT_PROV = " aktualizr-shared-prov "')
     self.append_config(
         'IMAGE_FSTYPES_remove = "ostreepush garagesign garagecheck"')
     self.append_config(
         'IMAGE_INSTALL_append += " aktualizr-resource-control "')
     self.append_config('RESOURCE_CPU_WEIGHT_pn-aktualizr = "1000"')
     self.append_config('RESOURCE_MEMORY_HIGH_pn-aktualizr = "50M"')
     self.append_config('RESOURCE_MEMORY_MAX_pn-aktualizr = "1M"')
     self.qemu, self.s = qemu_launch(machine='qemux86-64')
Esempio n. 7
0
 def setUpLocal(self):
     layer = "meta-updater-qemux86-64"
     result = runCmd('bitbake-layers show-layers')
     if re.search(layer, result.output) is None:
         # Assume the directory layout for finding other layers. We could also
         # make assumptions by using 'show-layers', but either way, if the
         # layers we need aren't where we expect them, we are out of like.
         path = os.path.abspath(os.path.dirname(__file__))
         metadir = path + "/../../../../../"
         self.meta_qemu = metadir + layer
         runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu)
     else:
         self.meta_qemu = None
     self.append_config('MACHINE = "qemux86-64"')
     self.append_config('SYSTEMD_AUTO_ENABLE_aktualizr = "disable"')
     self.append_config('PTEST_ENABLED_pn-aktualizr = "1"')
     self.append_config('IMAGE_INSTALL_append += "aktualizr-ptest ptest-runner "')
     self.qemu, self.s = qemu_launch(machine='qemux86-64')
Esempio n. 8
0
 def setUpLocal(self):
     layer = "meta-updater-qemux86-64"
     result = runCmd('bitbake-layers show-layers')
     if re.search(layer, result.output) is None:
         # Assume the directory layout for finding other layers. We could also
         # make assumptions by using 'show-layers', but either way, if the
         # layers we need aren't where we expect them, we are out of luck.
         path = os.path.abspath(os.path.dirname(__file__))
         metadir = path + "/../../../../../"
         self.meta_qemu = metadir + layer
         runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu)
     else:
         self.meta_qemu = None
     self.append_config('MACHINE = "qemux86-64"')
     self.append_config('SOTA_CLIENT_PROV = "aktualizr-device-prov-hsm"')
     self.append_config('SOTA_DEPLOY_CREDENTIALS = "0"')
     self.append_config('SOTA_CLIENT_FEATURES = "hsm"')
     self.append_config('IMAGE_INSTALL_append = " softhsm-testtoken"')
     runCmd('bitbake -c cleanall aktualizr aktualizr-device-prov-hsm')
     self.qemu, self.s = qemu_launch(machine='qemux86-64')
Esempio n. 9
0
 def setUpLocal(self):
     layer_intel = "meta-intel"
     layer_minnow = "meta-updater-minnowboard"
     result = runCmd('bitbake-layers show-layers')
     if re.search(layer_intel, result.output) is None:
         self.meta_intel = metadir() + layer_intel
         runCmd('bitbake-layers add-layer "%s"' % self.meta_intel)
     else:
         self.meta_intel = None
     if re.search(layer_minnow, result.output) is None:
         self.meta_minnow = metadir() + layer_minnow
         runCmd('bitbake-layers add-layer "%s"' % self.meta_minnow)
     else:
         self.meta_minnow = None
     self.append_config('MACHINE = "intel-corei7-64"')
     self.append_config('OSTREE_BOOTLOADER = "grub"')
     self.append_config('SOTA_CLIENT_PROV = " aktualizr-shared-prov "')
     self.qemu, self.s = qemu_launch(efi=True,
                                     machine='intel-corei7-64',
                                     mem='512M')
Esempio n. 10
0
 def setUpLocal(self):
     layer_intel = "meta-intel"
     layer_minnow = "meta-updater-minnowboard"
     result = runCmd('bitbake-layers show-layers')
     # Assume the directory layout for finding other layers. We could also
     # make assumptions by using 'show-layers', but either way, if the
     # layers we need aren't where we expect them, we are out of luck.
     path = os.path.abspath(os.path.dirname(__file__))
     metadir = path + "/../../../../../"
     if re.search(layer_intel, result.output) is None:
         self.meta_intel = metadir + layer_intel
         runCmd('bitbake-layers add-layer "%s"' % self.meta_intel)
     else:
         self.meta_intel = None
     if re.search(layer_minnow, result.output) is None:
         self.meta_minnow = metadir + layer_minnow
         runCmd('bitbake-layers add-layer "%s"' % self.meta_minnow)
     else:
         self.meta_minnow = None
     self.append_config('MACHINE = "intel-corei7-64"')
     self.append_config('OSTREE_BOOTLOADER = "grub"')
     self.append_config('SOTA_CLIENT_PROV = " aktualizr-shared-prov "')
     self.qemu, self.s = qemu_launch(efi=True, machine='intel-corei7-64')