/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/ |
H A D | 857.patch | 21 -import os, sys, commands 22 +import os, sys 24 env = Environment(ENV = os.environ) 27 -if os.environ.has_key('CXX'): 28 +if 'CXX' in os.environ: 29 env['CXX'] = os.environ['CXX'] 31 -if os.environ.has_key('DEBUG'): 32 +if 'DEBUG' in os.environ: 33 env['DEBUG'] = os.environ['DEBUG'] 35 -if os.environ.has_key('CXXFLAGS'): [all …]
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | path.py | 11 import os.path 14 """Like os.path.join but doesn't treat absolute RHS specially""" 15 return os.path.normpath("/".join(paths)) 30 return os.path.relpath(dest, src) 34 if not os.path.islink(path): 36 link = os.readlink(path) 37 if not os.path.isabs(link): 56 os.remove(path) 57 os.symlink(base, path) 66 for walkroot, dirs, files in os.walk(basedir): [all …]
|
H A D | copy_buildsystem.py | 22 mode = os.stat(src).st_mode 36 self.layerdirs = [os.path.abspath(pth) for pth in d.getVar('BBLAYERS').split()] 48 corebase = os.path.abspath(self.d.getVar('COREBASE')) 53 layers.append(os.path.join(corebase, 'meta-skeleton')) 71 layernames = [os.path.basename(layer) for layer in layers] 84 layerconf = os.path.join(layer, 'conf', 'layer.conf') 85 layernewname = os.path.basename(layer) 87 if os.path.exists(layerconf): 100 if corebase == os.path.dirname(layer): 101 layerdestpath += '/' + os.path.basename(corebase) [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/utils/ |
H A D | testexport.py | 9 import os, re, glob as g, shutil as sh,sys 37 check_env = True if ("/scripts" and "/bitbake/bin") in os.getenv("PATH") else False 68 "Please install them according to your OS recommendations") # will exit here 70 os.chdir(dest_pth) 72 os.chdir("%s" % os.sep)# this is for native package 79 arch = get_dest_folder(d.getVar("TUNE_FEATURES"), os.listdir(rpm_deploy_dir)) 80 arch_rpm_dir = os.path.join(rpm_deploy_dir, arch) 81 extracted_bin_dir = os.path.join(exportpath,"binaries", arch, "extracted_binaries") 82 packaged_bin_dir = os.path.join(exportpath,"binaries", arch, "packaged_binaries") 85 if not os.path.exists(extracted_bin_dir): bb.utils.mkdirhier(extracted_bin_dir) [all …]
|
/openbmc/openbmc/meta-arm/meta-arm-systemready/classes/ |
H A D | arm-systemready-acs.bbclass | 32 imgfile = os.path.join(d.getVar('UNPACKDIR'), d.getVar('IMAGE_FILENAME')) 33 deployfile = os.path.join(deploydir, d.getVar('IMAGE_NAME') + suffix) 34 linkfile = os.path.join(deploydir, d.getVar('IMAGE_LINK_NAME') + suffix) 39 if os.path.lexists(linkfile): 40 os.remove(manifest_link) 41 os.symlink(os.path.basename(deployfile), linkfile) 52 report_file = os.path.join(unpackdir, "report.txt") 53 report_file_dest = os.path.join(deploydir, "report.txt") 54 if os.path.exists(report_file): 57 report_file_to_copy = os.path.join(unpackdir, "systemready-ir-template", [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | _sstatetests_noauto.py | 7 import os 20 self.builddir = os.path.join(os.environ.get('BUILDDIR')) 25 with open(os.path.join(self.builddir, 'pn-buildlist'), 'r') as pnfile: 30 os.mkdir(builddir) 32 os.mkdir(os.path.join(builddir, 'conf')) 33 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/local.conf'), os.path.join(builddir… 39 ftools.append_file(os.path.join(builddir, 'conf/selftest.inc'), config[key]) 40 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/bblayers.conf'), os.path.join(build… 42 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/auto.conf'), os.path.join(builddir,… 47 os.mkdir(dst) [all …]
|
H A D | usergrouptests.py | 7 import os 34 repropassdir = os.path.join(metaselftestpath, "conf/include") 35 os.makedirs(repropassdir) 36 etcdir=os.path.join(os.path.join(os.path.join(get_bb_var("TMPDIR"), "work"), \ 37 …os.path.join(get_bb_var("MACHINE").replace("-","_")+"-poky-linux", "core-image-minimal/1.0/rootfs/… 38 … shutil.copy(os.path.join(etcdir, "passwd"), os.path.join(repropassdir, "reproducable-passwd")) 39 shutil.copy(os.path.join(etcdir, "group"), os.path.join(repropassdir, "reproducable-group")) 41 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/local.conf'), os.path.join(os.envir… 49 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/local.conf.orig'), os.path.join(os.…
|
/openbmc/qemu/tests/functional/ |
H A D | test_acpi_bits.py | 35 import os 65 paths=os.getenv('PATH') 66 for p in paths.split(os.path.pathsep): 67 p = os.path.join(p, tool) 68 if os.path.exists(p) and os.access(p, os.X_OK): 103 name = "qemu-bits-%d" % os.getpid() 116 'file,path=%s,id=debugcon' %os.path.join(self.base_temp_dir, 169 bits_config_dir = os.path.join(self._baseDir, 'acpi-bits', 171 target_config_dir = os.path.join(self.workdir, 174 self.assertTrue(os.path.exists(bits_config_dir)) [all …]
|
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/ |
H A D | rootfs.py | 15 import os 37 if os.path.isabs(path): 44 full_path = os.path.abspath(os.path.join(rootfs_dir, path)) 45 if not full_path.startswith(os.path.realpath(rootfs_dir)): 53 if rootfs_dir and os.path.isdir(rootfs_dir): 54 return os.path.realpath(rootfs_dir) 57 if not os.path.isdir(image_rootfs_dir): 62 return os.path.realpath(image_rootfs_dir) 97 part.has_fstab = os.path.exists(os.path.join(part.rootfs_dir, "etc/fstab")) 98 pseudo_dir = os.path.join(part.rootfs_dir, "../pseudo") [all …]
|
/openbmc/openbmc/poky/meta/classes-recipe/ |
H A D | license_image.bbclass | 28 with open(os.path.join(license_image_dir, 'package.manifest'), "w+") as package_manifest: 42 pkg_info = os.path.join(d.getVar('PKGDATA_DIR'), 44 pkg_name = os.path.basename(os.readlink(pkg_info)) 51 rootfs_license_manifest = os.path.join(d.getVar('LICENSE_DIRECTORY'), 104 lic_file = os.path.join(d.getVar('LICENSE_DIRECTORY'), 108 if os.path.exists(lic_file): 114 if not os.path.exists(lic_file): 130 rootfs_license_manifest = os.path.join(rootfs_license_dir, 131 os.path.split(license_manifest)[1]) 132 if not os.path.exists(rootfs_license_manifest): [all …]
|
H A D | testexport.bbclass | 91 bb.utils.mkdirhier(os.path.join(export_path, 'lib', 'oeqa')) 97 files_to_copy = [ os.path.join('meta', 'lib', 'oeqa', 'core'), 98 os.path.join('meta', 'lib', 'oeqa', 'runtime'), 99 os.path.join('meta', 'lib', 'oeqa', 'files'), 100 os.path.join('meta', 'lib', 'oeqa', 'utils'), 101 os.path.join('scripts', 'oe-test'), 102 os.path.join('scripts', 'lib', 'argparse_oe.py'), 103 os.path.join('scripts', 'lib', 'scriptutils.py'), ] 106 src = os.path.join(corebase_path, f) 107 dst = os.path.join(export_path, f.split('/', 1)[-1]) [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | os_utils_install.robot | 11 Prep OS For HTX Installation 12 [Documentation] Prepare OS for HTX tool installation. 14 Boot To OS 24 OS Execute Command sudo apt-get update 28 OS Execute Command sudo apt-get -y install git 31 Prep OS For OPAL PRD Installation 32 [Documentation] Prepare OS for OPAL PRD tool installation. 34 Boot To OS 44 OS Execute Command sudo apt-get update 47 Setup HTX On OS [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-benchmark/lmbench/lmbench/ |
H A D | 0002-build-Adjust-CFLAGS-LDFLAGS-to-append-values-passed-.patch | 39 - @env CFLAGS=-O MAKE="$(MAKE)" MAKEFLAGS="$(MAKEFLAGS)" CC="$(CC)" OS="$(OS)" ../scripts/build all 40 - -@env CFLAGS=-O MAKE="$(MAKE)" MAKEFLAGS="k$(MAKEFLAGS)" CC="$(CC)" OS="$(OS)" ../scripts/build o… 41 + @env CFLAGS+=-O MAKE="$(MAKE)" MAKEFLAGS="$(MAKEFLAGS)" CC="$(CC)" OS="$(OS)" ../scripts/build all 42 + -@env CFLAGS+=-O MAKE="$(MAKE)" MAKEFLAGS="k$(MAKEFLAGS)" CC="$(CC)" OS="$(OS)" ../scripts/build … 45 @env OS="${OS}" ../scripts/config-run 46 @@ -137,7 +137,7 @@ os: lmbench 47 @env OS="${OS}" BENCHMARK_HARDWARE=NO BENCHMARK_OS=YES ../scripts/results 50 - @env CFLAGS=-O MAKE="$(MAKE)" MAKEFLAGS="$(MAKEFLAGS)" CC="${CC}" OS="${OS}" ../scripts/build in… 51 + @env CFLAGS+=-O MAKE="$(MAKE)" MAKEFLAGS="$(MAKEFLAGS)" CC="${CC}" OS="${OS}" ../scripts/build i… 63 - @env CFLAGS="-g -O -Wall" MAKE="$(MAKE)" MAKEFLAGS="$(MAKEFLAGS)" CC="${CC}" OS="${OS}" ../script… [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/builds/ |
H A D | buildtest.py | 10 import os 36 current_builddir = os.environ.get("BUILDDIR") 42 oe_init_build_env_path = os.path.join( 43 os.path.dirname(os.path.abspath(__file__)), 44 os.pardir, 45 os.pardir, 46 os.pardir, 47 os.pardir, 48 os.pardir, 51 if not os.path.exists(oe_init_build_env_path): [all …]
|
/openbmc/openbmc/meta-fii/meta-mori/recipes-phosphor/dbus/led-policy-mori/ |
H A D | led-config.yaml | 1 - name: OS state path group 15 - name: OS state property group 33 - name: watch OS state 36 paths: OS state path group 37 properties: OS state property group 38 callback: OS state callback group 49 - name: OS BootComplete condition 52 paths: OS state path group 53 properties: OS state property group 60 - name: OS Inactive condition [all …]
|
/openbmc/openbmc/poky/scripts/ |
H A D | oe-setup-build | 10 import os 14 return os.path.abspath(os.path.join(os.path.dirname(__file__), '.oe-layers.json')) 17 return os.path.join(topdir, "build-{}".format(template)) 20 if not os.path.exists(layers_file): 27 template_dir = os.path.join(os.path.dirname(layers_file), layer, 'conf','templates') 28 if os.path.exists(template_dir): 29 for d in sorted(os.listdir(template_dir)): 30 templatepath = os.path.join(template_dir,d) 31 if not os.path.isfile(os.path.join(templatepath,'local.conf.sample')): 33 layer_base = os.path.basename(layer) [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | stat-display.c | 363 struct outstate *os = ctx; in new_line_std() local 365 os->newline = true; in new_line_std() 369 struct outstate *os) in __new_line_std_csv() argument 371 fputc('\n', os->fh); in __new_line_std_csv() 372 if (os->prefix) in __new_line_std_csv() 373 fputs(os->prefix, os->fh); in __new_line_std_csv() 374 aggr_printout(config, os->evsel, os->id, os->aggr_nr); in __new_line_std_csv() 377 static inline void __new_line_std(struct outstate *os) in __new_line_std() argument 379 fprintf(os->fh, " "); in __new_line_std() 383 struct outstate *os) in do_new_line_std() argument [all …]
|
/openbmc/openbmc/poky/meta/lib/oe/package_manager/deb/ |
H A D | __init__.py | 15 bb.utils.mkdirhier(os.path.join(self.apt_conf_dir, "lists", "partial")) 16 bb.utils.mkdirhier(os.path.join(self.apt_conf_dir, "apt.conf.d")) 17 bb.utils.mkdirhier(os.path.join(self.apt_conf_dir, "preferences.d")) 19 with open(os.path.join(self.apt_conf_dir, "preferences"), 22 with open(os.path.join(self.apt_conf_dir, "sources.list"), 27 with open(os.path.join(self.d.expand("${STAGING_ETCDIR_NATIVE}"), 35 self.apt_conf_dir = os.path.join(self.d.expand("${APTCONF_TARGET}"), 37 self.apt_conf_file = os.path.join(self.apt_conf_dir, "apt.conf") 40 os.environ['APT_CONFIG'] = self.apt_conf_file 54 apt_ftparchive = bb.utils.which(os.getenv('PATH'), "apt-ftparchive") [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/tests/ |
H A D | fetch.py | 14 import os 23 if os.environ.get("BB_SKIP_NETTESTS") == "yes": 414 self.origdir = os.getcwd() 417 self.dldir = os.path.join(self.tempdir, "download") 418 os.mkdir(self.dldir) 420 self.unpackdir = os.path.join(self.tempdir, "unpacked") 421 os.mkdir(self.unpackdir) 422 persistdir = os.path.join(self.tempdir, "persistdata") 426 os.chdir(self.origdir) 427 if os.environ.get("BB_TMPDIR_NOCLEAN") == "yes": [all …]
|
/openbmc/openbmc/poky/scripts/lib/devtool/ |
H A D | standard.py | 9 import os 54 if os.sep in args.recipename: 57 elif os.path.isdir(args.recipename): 66 if args.srctree and os.path.isfile(args.srctree): 67 args.fetchuri = 'file://' + os.path.abspath(args.srctree) 86 srctree = os.path.abspath(args.srctree) 95 if srctree and os.path.exists(srctree): 97 if not os.path.isdir(srctree): 101 elif os.listdir(srctree): 170 recipes = glob.glob(os.path.join(tempdir, '*.bb')) [all …]
|
/openbmc/openbmc-test-automation/ipmi/ |
H A D | test_ipmi_systeminfo_parameters.robot | 8 ... 4. Primary OS Name - param 3, 9 ... 5. OS Name - param 4, 10 ... 6. Present OS Version Number - param 5. 242 Verify System Info Primary OS Name 243 [Documentation] Verify Primary OS Name of System Info Parameter via IPMI, 244 ... by setting a valid os version and verify whether it is updated as expected. 250 # Set Primary OS Name of System Info Parameter. 251 Set Primary OS Name ${os_name} 253 # Get Primary OS Name of System Info Parameter. 254 # Compare with the assigned os version name data. [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/ |
H A D | case.py | 8 import os 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'], 56 not in ftools.read_file(os.path.join(cls.builddir, "conf/local.conf")): 57 …cls.logger.info("Adding: \"include selftest.inc\" in %s" % os.path.join(cls.builddir, "conf/local.… 58 ftools.append_file(os.path.join(cls.builddir, "conf/local.conf"), \ 62 not in ftools.read_file(os.path.join(cls.builddir, "conf/bblayers.conf")): 64 ftools.append_file(os.path.join(cls.builddir, "conf/bblayers.conf"), \ 70 in ftools.read_file(os.path.join(cls.builddir, "conf/local.conf")): [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/cmake/cmake/ |
H A D | cmake-setup.py | 3 import os 13 return os.path.basename(os.environ["OECORE_NATIVE_SYSROOT"]) 15 return os.path.basename(os.environ["OECORE_TARGET_SYSROOT"]) 17 return os.path.basename(os.environ["TARGET_PREFIX"].strip("-")) 19 return os.environ[name] 22 sysroot = os.environ['OECORE_NATIVE_SYSROOT'] 27 template_file = os.path.join(sysroot, 'usr/share/cmake/SDKToolchainConfig.cmake.template') 28 cross_file = os.path.join(sysroot, 'usr/share/cmake/%s-toolchain.cmake' % (os.path.basename(os.envi…
|
/openbmc/qemu/roms/ |
H A D | edk2-build.py | 7 import os 26 if os.path.isfile(gitdir): 30 if not os.path.exists(f'{gitdir}/rebase-merge/msgnum'): 46 return os.path.abspath(cfg['global']['core']) 47 return os.getcwd() 64 if os.environ.get('RPM_PACKAGE_NAME'): 65 version = os.environ.get('RPM_PACKAGE_NAME') 66 version += '-' + os.environ.get('RPM_PACKAGE_VERSION') 67 version += '-' + os.environ.get('RPM_PACKAGE_RELEASE') 72 if os.path.exists(coredir + '/.git'): [all …]
|
/openbmc/linux/drivers/block/drbd/ |
H A D | drbd_state.c | 25 union drbd_state os; member 280 static void after_state_ch(struct drbd_device *device, union drbd_state os, 285 static enum drbd_state_rv is_valid_transition(union drbd_state os, union drbd_state ns); 286 static union drbd_state sanitize_state(struct drbd_device *device, union drbd_state os, 464 * @os: old (current) state. 468 union drbd_state os, union drbd_state ns) in cl_wide_st_chg() argument 470 return (os.conn >= C_CONNECTED && ns.conn >= C_CONNECTED && in cl_wide_st_chg() 471 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || in cl_wide_st_chg() 472 (os.conn != C_STARTING_SYNC_T && ns.conn == C_STARTING_SYNC_T) || in cl_wide_st_chg() 473 (os.conn != C_STARTING_SYNC_S && ns.conn == C_STARTING_SYNC_S) || in cl_wide_st_chg() [all …]
|