/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | COW.py | 38 def __str__(cls): argument 40 keys = set(cls.__dict__.keys()) - ignored_keys 41 return "<COWDict Level: %i Current Keys: %i>" % (cls.__count__, len(keys)) 45 def cow(cls): argument 46 class C(cls): 47 __count__ = cls.__count__ + 1 54 def __setitem__(cls, key, value): argument 57 cls.__hasmutable__ = True 59 setattr(cls, key, value) 61 def __getmutable__(cls, key, readonly=False): argument [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/ |
H A D | storage.py | 15 def storage_mount(cls, tmo=1): argument 17 (status, output) = cls.target.run('mkdir -p %s' % cls.mount_point) 18 (status, output) = cls.target.run('mount %s %s' % (cls.device, cls.mount_point)) 20 cls.assertFalse(output, msg = msg) 22 (status, output) = cls.target.run('cat /proc/mounts') 23 match = re.search('%s' % cls.device, output) 25 msg = ('Device %s not mounted.' % cls.device) 26 cls.assertTrue(match, msg = msg) 28 (status, output) = cls.target.run('mkdir -p %s' % cls.test_dir) 30 (status, output) = cls.target.run('rm -f %s/*' % cls.test_dir) [all …]
|
H A D | ltp_compliance.py | 20 def setUpClass(cls): argument 21 cls.ltp_startup() 24 def tearDownClass(cls): argument 25 cls.ltp_finishup() 28 def ltp_startup(cls): argument 29 cls.sections = {} 30 cls.failmsg = "" 31 test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage') 34 cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltpcomp_log') 35 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp) [all …]
|
H A D | ltp_stress.py | 21 def setUpClass(cls): argument 22 cls.ltp_startup() 25 def tearDownClass(cls): argument 26 cls.ltp_finishup() 29 def ltp_startup(cls): argument 30 cls.sections = {} 31 cls.failmsg = "" 32 test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage') 35 cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltpstress_log') 36 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp) [all …]
|
H A D | ltp.py | 20 def setUpClass(cls): argument 21 cls.ltp_startup() 24 def tearDownClass(cls): argument 25 cls.ltp_finishup() 28 def ltp_startup(cls): argument 29 cls.sections = {} 30 cls.failmsg = "" 31 test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage') 34 cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltp_log') 35 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp) [all …]
|
H A D | opkg.py | 25 def setUp(cls): argument 27 if cls.tc.td["MULTILIB_VARIANTS"]: 28 allarchfeed = cls.tc.td["TUNE_PKGARCH"] 29 service_repo = os.path.join(cls.tc.td['DEPLOY_DIR_IPK'], allarchfeed) 30 cls.repo_server = HTTPService(service_repo, 31 '0.0.0.0', port=cls.tc.target.server_port, 32 logger=cls.tc.logger) 33 cls.repo_server.start() 36 def tearDown(cls): argument 37 cls.repo_server.stop()
|
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/ |
H A D | bootimg-biosplusefi.py | 87 def __init__(cls): argument 95 cls.__instanciateSubClasses() 98 def __instanciateSubClasses(cls): argument 105 cls.__PCBIOS_MODULE_NAME + ".py") 106 loader = SourceFileLoader(cls.__PCBIOS_MODULE_NAME, modulePath) 109 cls.__imgBiosObj = mod.BootimgPcbiosPlugin() 113 cls.__EFI_MODULE_NAME + ".py") 114 loader = SourceFileLoader(cls.__EFI_MODULE_NAME, modulePath) 117 cls.__imgEFIObj = mod.BootimgEFIPlugin() 120 def do_install_disk(cls, disk, disk_name, creator, workdir, oe_builddir, argument [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | esdk.py | 57 def update_configuration(cls, image, tmpdir_eSDKQA, env_eSDK, ext_sdk_path): argument 60 oeSDKExtSelfTest.generate_eSDK(cls.image) 62 cls.ext_sdk_path = oeSDKExtSelfTest.get_eSDK_toolchain(cls.image) 63 runCmd("%s -y -d \"%s\"" % (cls.ext_sdk_path, cls.tmpdir_eSDKQA)) 65 cls.env_eSDK = oeSDKExtSelfTest.get_esdk_environment('', cls.tmpdir_eSDKQA) 73 with open(os.path.join(cls.tmpdir_eSDKQA, 'conf', 'local.conf'), 'a+') as f: 77 def setUpClass(cls): argument 78 super(oeSDKExtSelfTest, cls).setUpClass() 79 cls.image = 'core-image-minimal' 81 bb_vars = get_bb_vars(['SSTATE_DIR', 'WORKDIR'], cls.image) [all …]
|
H A D | kerneldevelopment.py | 15 def setUpClass(cls): argument 16 super(KernelDev, cls).setUpClass() 18 cls.layername = 'meta-kerneltest' 19 runCmd('bitbake-layers create-layer %s' % cls.layername) 20 runCmd('mkdir -p %s/recipes-kernel/linux/linux-yocto' % cls.layername) 21 cls.recipes_linuxyocto_dir = os.path.join \ 22 (cls.builddir, cls.layername, 'recipes-kernel', 'linux', 'linux-yocto') 23 cls.recipeskernel_dir = os.path.dirname(cls.recipes_linuxyocto_dir) 24 runCmd('bitbake-layers add-layer %s' % cls.layername) 27 def tearDownClass(cls): argument [all …]
|
H A D | gotoolchain.py | 35 def setUpClass(cls): argument 36 super(oeGoToolchainSelfTest, cls).setUpClass() 37 cls.tmpdir_SDKQA = tempfile.mkdtemp(prefix='SDKQA') 38 cls.go_path = os.path.join(cls.tmpdir_SDKQA, "go") 41 cls.sdk_path = oeGoToolchainSelfTest.get_sdk_toolchain() 43 runCmd("sh %s -y -d \"%s\"" % (cls.sdk_path, cls.tmpdir_SDKQA)) 44 cls.env_SDK = oeGoToolchainSelfTest.get_sdk_environment(cls.tmpdir_SDKQA) 47 def tearDownClass(cls): argument 48 shutil.rmtree(cls.tmpdir_SDKQA, ignore_errors=True) 49 super(oeGoToolchainSelfTest, cls).tearDownClass()
|
H A D | meta_ide.py | 18 def setUpClass(cls): argument 19 super(MetaIDE, cls).setUpClass() 24 …cls.environment_script = 'environment-setup-%s%s-%s' % (bb_vars['MACHINE_ARCH'], bb_vars['TARGET_V… 25 cls.deploydir = bb_vars['DEPLOY_DIR_IMAGE'] 26 cls.environment_script_path = '%s/%s' % (cls.deploydir, cls.environment_script) 27 cls.corebasedir = bb_vars['COREBASE'] 28 cls.tmpdir_metaideQA = tempfile.mkdtemp(prefix='metaide') 31 def tearDownClass(cls): argument 32 shutil.rmtree(cls.tmpdir_metaideQA, ignore_errors=True) 33 super(MetaIDE, cls).tearDownClass()
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/ |
H A D | case.py | 25 def setUpClass(cls): argument 26 super(OESelftestTestCase, cls).setUpClass() 28 cls.testlayer_path = cls.tc.config_paths['testlayer_path'] 29 cls.builddir = cls.tc.config_paths['builddir'] 31 cls.localconf_path = cls.tc.config_paths['localconf'] 32 cls.local_bblayers_path = cls.tc.config_paths['bblayers'] 34 cls.testinc_path = os.path.join(cls.tc.config_paths['builddir'], 36 cls.testinc_bblayers_path = os.path.join(cls.tc.config_paths['builddir'], 38 cls.machineinc_path = os.path.join(cls.tc.config_paths['builddir'], 41 cls._track_for_cleanup = [ [all …]
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | classutils.py | 9 def __init__(cls, name, bases, attrs): argument 10 cls.registry = {} 11 type.__init__(cls, name, bases, attrs) 27 def __init__(cls, name, bases, attrs): argument 28 super(ClassRegistry, cls).__init__(name, bases, attrs) 30 if not cls.implemented: 36 cls.name 38 cls.name = name 39 cls.registry[cls.name] = cls 46 def unregister(cls): argument [all …]
|
H A D | spdx30.py | 250 def __init__(self, cls, required, context=[]): argument 252 self.cls = cls 256 if self.required and not self.cls.IS_ABSTRACT: 257 return self.cls() 261 check_type(value, (self.cls, str)) 297 return self.cls.decode(decoder, objectset=objectset) 566 cls = self.__class__ 567 if cls._NEEDS_REG: 568 cls._OBJ_PROPERTIES = {} 569 cls._OBJ_IRIS = {} [all …]
|
/openbmc/openbmc/poky/meta/lib/patchtest/tests/ |
H A D | base.py | 65 def setUpClass(cls): argument 68 cls.mbox = mailbox.mbox(PatchtestParser.repo.patch.path) 71 cls.unidiff_parse_error = '' 72 cls.patchset = None 74 cls.patchset = unidiff.PatchSet.from_filename( 78 cls.patchset = [] 79 cls.unidiff_parse_error = str(upe) 82 cls.commits = [] 83 for msg in cls.mbox: 85 cls.commits.append(Base.msg_to_commit(msg)) [all …]
|
/openbmc/linux/drivers/base/ |
H A D | class.c | 129 int class_create_file_ns(const struct class *cls, const struct class_attribute *attr, in class_create_file_ns() argument 132 struct subsys_private *sp = class_to_subsys(cls); in class_create_file_ns() 145 void class_remove_file_ns(const struct class *cls, const struct class_attribute *attr, in class_remove_file_ns() argument 148 struct subsys_private *sp = class_to_subsys(cls); in class_remove_file_ns() 178 int class_register(const struct class *cls) in class_register() argument 184 pr_debug("device class '%s': registering\n", cls->name); in class_register() 195 error = kobject_set_name(&cp->subsys.kobj, "%s", cls->name); in class_register() 203 cp->class = cls; in class_register() 209 error = sysfs_create_groups(&cp->subsys.kobj, cls->class_groups); in class_register() 224 void class_unregister(const struct class *cls) in class_unregister() argument [all …]
|
/openbmc/qemu/python/qemu/utils/ |
H A D | qom_common.py | 47 def make(cls, value: Dict[str, Any]) -> 'ObjectPropertyInfo': argument 53 return cls(value['name'], value['type'], 89 def register(cls, subparsers: Any) -> None: argument 95 subparser = subparsers.add_parser(cls.name, help=cls.help, 96 description=cls.help) 97 cls.configure_parser(subparser) 100 def configure_parser(cls, parser: argparse.ArgumentParser) -> None: argument 115 parser.set_defaults(cmd_class=cls) 118 def add_path_prop_arg(cls, parser: argparse.ArgumentParser) -> None: argument 150 cls: Type[CommandT], [all …]
|
/openbmc/linux/scripts/ |
H A D | rust_is_available_test.py | 27 def generate_executable(cls, content): argument 28 path = pathlib.Path(cls.tempdir.name) 37 def generate_clang(cls, stdout): argument 38 return cls.generate_executable(f"""#!/usr/bin/env python3 47 def generate_rustc(cls, stdout): argument 48 return cls.generate_executable(f"""#!/usr/bin/env python3 57 def generate_bindgen(cls, version_stdout, libclang_stderr): argument 58 return cls.generate_executable(f"""#!/usr/bin/env python3 67 def generate_bindgen_version(cls, stdout): argument 68 return cls.generate_bindgen(stdout, cls.bindgen_default_bindgen_libclang_stderr) [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/sdkext/cases/ |
H A D | devtool.py | 19 def setUpClass(cls): argument 20 myapp_src = os.path.join(cls.tc.esdk_files_dir, "myapp") 21 cls.myapp_dst = os.path.join(cls.tc.sdk_dir, "myapp") 22 shutil.copytree(myapp_src, cls.myapp_dst) 23 subprocess.check_output(['git', 'init', '.'], cwd=cls.myapp_dst) 24 subprocess.check_output(['git', 'add', '.'], cwd=cls.myapp_dst) 25 subprocess.check_output(['git', 'commit', '-m', "'test commit'"], cwd=cls.myapp_dst) 27 myapp_cmake_src = os.path.join(cls.tc.esdk_files_dir, "myapp_cmake") 28 cls.myapp_cmake_dst = os.path.join(cls.tc.sdk_dir, "myapp_cmake") 29 shutil.copytree(myapp_cmake_src, cls.myapp_cmake_dst) [all …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_tc.c | 29 struct tc_cls_u32_offload *cls, in tc_find_entry() argument 33 u32 loc = cls->knode.handle; in tc_find_entry() 59 struct tc_cls_u32_offload *cls) in tc_fill_actions() argument 66 exts = cls->knode.exts; in tc_fill_actions() 92 struct tc_cls_u32_offload *cls) in tc_fill_entry() argument 95 struct tc_u32_sel *sel = cls->knode.sel; in tc_fill_entry() 97 u32 prio = cls->common.prio << 16; in tc_fill_entry() 108 switch (ntohs(cls->common.protocol)) { in tc_fill_entry() 124 entry = tc_find_entry(priv, cls, true); in tc_fill_entry() 129 frag = tc_find_entry(priv, cls, true); in tc_fill_entry() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_u32.c | 46 struct tc_cls_u32_offload *cls, in fill_match_fields() argument 55 for (i = 0; i < cls->knode.sel->nkeys; i++) { in fill_match_fields() 56 off = cls->knode.sel->keys[i].off; in fill_match_fields() 57 val = cls->knode.sel->keys[i].val; in fill_match_fields() 58 mask = cls->knode.sel->keys[i].mask; in fill_match_fields() 62 if (!cls->knode.sel->keys[i].offmask) in fill_match_fields() 66 if (cls->knode.sel->keys[i].offmask) in fill_match_fields() 92 struct tc_cls_u32_offload *cls) in fill_action_fields() argument 99 exts = cls->knode.exts; in fill_action_fields() 149 int cxgb4_config_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) in cxgb4_config_knode() argument [all …]
|
/openbmc/docs/logo/ |
H A D | OpenBMC-Logo.svg | 1 …cls-1{fill:#a6a8ab;}.cls-2{fill:url(#linear-gradient);}.cls-3{fill:url(#linear-gradient-2);}.cls-4…
|
/openbmc/webui-vue/docs/.vuepress/public/ |
H A D | openbmc-logo.svg | 1 …cls-1{fill:#a6a8ab;}.cls-2{fill:url(#linear-gradient);}.cls-3{fill:url(#linear-gradient-2);}.cls-4…
|
/openbmc/openbmc/poky/scripts/lib/wic/ |
H A D | pluginbase.py | 33 def get_plugins(cls, ptype): argument 39 if not cls._plugin_dirs: 40 cls._plugin_dirs = [os.path.join(os.path.dirname(__file__), 'plugins')] 46 if path not in cls._plugin_dirs and os.path.isdir(path): 47 cls._plugin_dirs.insert(0, path) 51 for pdir in cls._plugin_dirs: 66 def __new__(cls, name, bases, attrs): argument 67 class_type = type.__new__(cls, name, bases, attrs) 89 def do_install_disk(cls, disk, disk_name, creator, workdir, oe_builddir, argument 99 def do_stage_partition(cls, part, source_params, creator, cr_workdir, argument [all …]
|
/openbmc/openbmc/poky/meta-selftest/lib/oeqa/runtime/cases/ |
H A D | dnf_runtime.py | 9 def setUpClass(cls): argument 11 cls.temp_dir = tempfile.TemporaryDirectory(prefix="oeqa-remotefeeds-") 12 cls.repo_server = HTTPService(os.path.join(cls.tc.td['WORKDIR'], 'oe-rootfs-repo'), 13 '0.0.0.0', port=cls.tc.target.server_port, 14 logger=cls.tc.logger) 15 cls.repo_server.start() 18 def tearDownClass(cls): argument 19 cls.repo_server.stop() 20 cls.temp_dir.cleanup()
|