Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 1618) sorted by relevance

12345678910>>...65

/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dtestexport.py9 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
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)
86 if not os.path.exists(packaged_bin_dir): bb.utils.mkdirhier(packaged_bin_dir)
[all …]
/openbmc/openbmc/poky/meta/lib/oe/
H A Dpath.py11 import os.path
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):
68 path = os.path.join(walkroot, file)
[all …]
H A Dcopy_buildsystem.py22 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/qemu/tests/functional/
H A Dtest_acpi_bits.py35 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/bitbake/lib/bb/tests/
H A Dfetch.py14 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/meta-openembedded/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/
H A D857.patch21 -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/oeqa/selftest/cases/
H A D_sstatetests_noauto.py7 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 Drecipetool.py8 import os
48 self.testfile = os.path.join(self.tempdir, 'testfile')
72 filesdir = os.path.join(os.path.dirname(bbappendfile), testrecipe)
74 …self.assertTrue(os.path.isfile(os.path.join(filesdir, expectedfile)), 'Expected file %s to be copi…
78 for root, _, files in os.walk(filesdir):
80 createdfiles.append(os.path.relpath(os.path.join(root, f), filesdir))
133 testfile2 = os.path.join(self.corebase, 'oe-init-build-env')
134 testfile2name = os.path.basename(testfile2)
147 copiedfile = os.path.join(os.path.dirname(bbappendfile), 'coreutils', testfile2name)
154 ls = os.path.realpath("/bin/ls")
[all …]
H A Dusergrouptests.py7 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"), \
37os.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.…
H A Dwic.py11 import os
61 self.resultdir = os.path.join(self.builddir, "wic-tmp")
86 WicTestCase.wicenv_cache[image] = os.path.join(stdir, machine, 'imgdata')
168 wksname = os.path.splitext(os.path.basename(wks.name))[0]
169 out = glob(os.path.join(
178 for file in os.listdir(tmpdir):
200 wksname = os.path.splitext(os.path.basename(wks.name))[0]
201 out = glob(os.path.join(self.resultdir, "%s-*.direct" % wksname))
210 for file in os.listdir(tmpdir):
222 self.assertEqual(1, len(glob(os.path.join (self.resultdir, "wictestdisk-*.direct"))))
[all …]
H A Ddevtool.py8 import os
29 corecopydir = os.path.join(templayerdir, 'core-copy')
30 bblayers_conf = os.path.join(os.environ['BUILDDIR'], 'conf', 'bblayers.conf')
46 canonical_layerpath = os.path.realpath(canonical_layerpath) + '/'
48 oldmetapath = os.path.realpath(layerpath)
58 newmetapath = os.path.join(corecopydir, os.path.relpath(oldmetapath, oldreporoot))
70 pth = os.path.join(oldreporoot, relpth)
73 destdir = os.path.join(corecopydir, relpth)
77 destdir = os.path.join(corecopydir, os.path.dirname(relpth))
94 bblayers_conf = os.path.join(os.environ['BUILDDIR'], 'conf', 'bblayers.conf')
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/
H A Drootfs.py15 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/bitbake/lib/toaster/tests/builds/
H A Dbuildtest.py10 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-test-automation/lib/
H A Dgen_call_robot.py9 import os
21 os.path.dirname(
22 os.path.dirname(importlib.util.find_spec("gen_robot_print").origin)
24 + os.sep
50 outputdir = os.environ.get(
52 os.environ.get(
53 "STATUS_DIR_PATH", os.environ.get("HOME", ".") + "/status"
65 SAVE_STATUS_POLICY = os.environ.get("SAVE_STATUS_POLICY", "ALWAYS")
116 ROBOT_TEST_BASE_DIR_PATH = os.environ.get("ROBOT_TEST_BASE_DIR_PATH", "")
118 os.environ.get("ROBOT_TEST_RUNNING_FROM_SB", "0")
[all …]
/openbmc/openbmc/poky/scripts/
H A Doe-setup-build10 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 …]
H A Doe-pkgdata-util13 import os
14 import os.path
21 scripts_path = os.path.dirname(os.path.realpath(__file__))
43 if not os.path.exists(args.pkglistfile):
84 return os.path.join(args.pkgdata_dir, "runtime-reverse", pkgn)
86 return os.path.join(args.pkgdata_dir, "runtime", pkgn)
96 pn = os.path.basename(pkgdata_file)
109 if os.path.exists(revlink):
110 mappedpkg = os.path.basename(os.readlink(revlink))
112 if os.path.exists(fwdfile):
[all …]
/openbmc/qemu/roms/
H A Dedk2-build.py7 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/openbmc/poky/meta/lib/oe/package_manager/deb/
H A D__init__.py15 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/scripts/lib/devtool/
H A Dstandard.py9 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/linux/tools/perf/util/
H A Dstat-display.c363 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/bitbake/lib/toaster/toastermain/
H A Dsettings.py11 import os
19 if os.environ.get("TOASTER_SQLDEBUG", None) is not None:
29 TOASTER_SQLITE_DEFAULT_DIR = os.environ.get('TOASTER_DIR')
74 if 'TZ' in os.environ:
75 TIME_ZONE = os.environ['TZ']
83 for dirpath, dirnames, filenames in os.walk(ZONEINFOPATH):
85 filepath = os.path.join(dirpath, fn)
154 TMPDIR = os.environ.get('TOASTER_DJANGO_TMPDIR', '/tmp')
222 'LOCATION': '%s/toaster_cache_%d' % (TMPDIR, os.getuid()),
228 from os.path import dirname as DN
[all …]
/openbmc/openbmc/poky/meta/lib/bblayers/
H A Dbuildconf.py8 import os
15 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
31 confdir = os.path.join(os.environ["BBPATH"], "conf")
32 destdir = os.path.join(templatepath, "conf", "templates", templatename)
33 os.makedirs(destdir, exist_ok=True)
35 with open(os.path.join(confdir, "local.conf")) as src:
36 with open(os.path.join(destdir, "local.conf.sample"), 'w') as dest:
39 with open(os.path.join(confdir, "bblayers.conf")) as src:
40 with open(os.path.join(destdir, "bblayers.conf.sample"), 'w') as dest:
47 with open(os.path.join(destdir, "conf-summary.txt"), 'w') as dest:
[all …]
/openbmc/u-boot/common/
H A Dbootm.c94 &images, &images.os.image_start, &images.os.image_len); in bootm_find_os()
95 if (images.os.image_len == 0) { in bootm_find_os()
104 images.os.type = image_get_type(os_hdr); in bootm_find_os()
105 images.os.comp = image_get_comp(os_hdr); in bootm_find_os()
106 images.os.os = image_get_os(os_hdr); in bootm_find_os()
108 images.os.end = image_get_image_end(os_hdr); in bootm_find_os()
109 images.os.load = image_get_load(os_hdr); in bootm_find_os()
110 images.os.arch = image_get_arch(os_hdr); in bootm_find_os()
117 &images.os.type)) { in bootm_find_os()
125 &images.os.comp)) { in bootm_find_os()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/
H A Dcase.py8 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 Dcmake-setup.py3 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…

12345678910>>...65