| /openbmc/openbmc/poky/bitbake/lib/bb/fetch2/ |
| H A D | hg.py | 26 def supports(self, ud, d): argument 30 return ud.type in ['hg'] 39 def urldata_init(self, ud, d): argument 43 if not "module" in ud.parm: 44 raise MissingParameterError('module', ud.url) 46 ud.module = ud.parm["module"] 48 if 'protocol' in ud.parm: 49 ud.proto = ud.parm['protocol'] 50 elif not ud.host: 51 ud.proto = 'file' [all …]
|
| H A D | clearcase.py | 66 def supports(self, ud, d): argument 70 return ud.type in ['ccrc'] 75 def urldata_init(self, ud, d): argument 79 ud.proto = "https" 80 if 'protocol' in ud.parm: 81 ud.proto = ud.parm['protocol'] 82 if not ud.proto in ('http', 'https'): 83 raise ParameterError("Invalid protocol type", ud.url) 85 ud.vob = '' 86 if 'vob' in ud.parm: [all …]
|
| H A D | git.py | 136 def supports(self, ud, d): argument 140 return ud.type in ['git'] 148 def urldata_init(self, ud, d): argument 153 if 'protocol' in ud.parm: 154 ud.proto = ud.parm['protocol'] 155 elif not ud.host: 156 ud.proto = 'file' 158 ud.proto = "git" 159 if ud.host == "github.com" and ud.proto == "git": 162 ud.proto = "https" [all …]
|
| H A D | svn.py | 24 def supports(self, ud, d): argument 28 return ud.type in ['svn'] 30 def urldata_init(self, ud, d): argument 34 if not "module" in ud.parm: 35 raise MissingParameterError('module', ud.url) 37 … ud.basecmd = d.getVar("FETCHCMD_svn") or "/usr/bin/env svn --non-interactive --trust-server-cert" 39 ud.module = ud.parm["module"] 41 if not "path_spec" in ud.parm: 42 ud.path_spec = ud.module 44 ud.path_spec = ud.parm["path_spec"] [all …]
|
| H A D | perforce.py | 66 def supports(self, ud, d): argument 68 return ud.type in ['p4'] 70 def urldata_init(self, ud, d): argument 76 ud.basecmd = d.getVar("FETCHCMD_p4") or "/usr/bin/env p4" 78 ud.dldir = d.getVar("P4DIR") or (d.getVar("DL_DIR") + "/p4") 80 path = ud.url.split('://')[1] 84 (ud.user, ud.pswd) = path.split('@')[0].split(':') 85 ud.path = path.split('@')[1] 87 ud.path = path 89 ud.usingp4config = False [all …]
|
| H A D | cvs.py | 25 def supports(self, ud, d): argument 29 return ud.type in ['cvs'] 31 def urldata_init(self, ud, d): argument 32 if not "module" in ud.parm: 33 raise MissingParameterError("module", ud.url) 34 ud.module = ud.parm["module"] 36 ud.tag = ud.parm.get('tag', "") 39 if 'date' in ud.parm: 40 ud.date = ud.parm['date'] 41 elif ud.tag: [all …]
|
| H A D | osc.py | 27 def supports(self, ud, d): argument 31 return ud.type in ['osc'] 33 def urldata_init(self, ud, d): argument 34 if not "module" in ud.parm: 35 raise MissingParameterError('module', ud.url) 37 ud.module = ud.parm["module"] 41 relpath = self._strip_leading_slashes(ud.path) 42 ud.oscdir = oscdir 43 ud.pkgdir = os.path.join(oscdir, ud.host) 44 ud.moddir = os.path.join(ud.pkgdir, relpath, ud.module) [all …]
|
| H A D | repo.py | 22 def supports(self, ud, d): argument 26 return ud.type in ["repo"] 28 def urldata_init(self, ud, d): argument 36 ud.basecmd = d.getVar("FETCHCMD_repo") or "/usr/bin/env repo" 38 ud.proto = ud.parm.get('protocol', 'git') 39 ud.branch = ud.parm.get('branch', 'master') 40 ud.manifest = ud.parm.get('manifest', 'default.xml') 41 if not ud.manifest.endswith('.xml'): 42 ud.manifest += '.xml' 44 …ud.localfile = d.expand("repo_%s%s_%s_%s.tar.gz" % (ud.host, ud.path.replace("/", "."), ud.manifes… [all …]
|
| H A D | bzr.py | 24 def supports(self, ud, d): argument 25 return ud.type in ['bzr'] 27 def urldata_init(self, ud, d): argument 33 relpath = self._strip_leading_slashes(ud.path) 34 ud.pkgdir = os.path.join(bzrdir, ud.host, relpath) 36 ud.setup_revisions(d) 38 if not ud.revision: 39 ud.revision = self.latest_revision(ud, d) 41 … ud.localfile = d.expand('bzr_%s_%s_%s.tar.gz' % (ud.host, ud.path.replace('/', '.'), ud.revision)) 43 def _buildbzrcommand(self, ud, d, command): argument [all …]
|
| H A D | gomod.py | 86 def supports(self, ud, d): argument 88 return ud.type == 'gomod' 90 def urldata_init(self, ud, d): argument 103 if 'version' not in ud.parm: 104 raise MissingParameterError('version', ud.url) 106 module = ud.host 107 if ud.path != '/': 108 module += ud.path 109 ud.parm['module'] = module 110 version = ud.parm['version'] [all …]
|
| H A D | gitannex.py | 16 def supports(self, ud, d): argument 20 return ud.type in ['gitannex'] 22 def urldata_init(self, ud, d): argument 23 super(GitANNEX, self).urldata_init(ud, d) 24 if ud.shallow: 25 ud.shallow_extra_refs += ['refs/heads/git-annex', 'refs/heads/synced/*'] 27 def uses_annex(self, ud, d, wd): argument 28 for name in ud.names: 30 runfetchcmd("%s rev-list git-annex" % (ud.basecmd), d, quiet=True, workdir=wd) 37 def update_annex(self, ud, d, wd): argument [all …]
|
| H A D | npm.py | 151 def supports(self, ud, d): argument 153 return ud.type in ["npm"] 155 def urldata_init(self, ud, d): argument 157 ud.package = None 158 ud.version = None 159 ud.registry = None 162 if "package" in ud.parm: 163 ud.package = ud.parm.get("package") 165 if not ud.package: 166 raise MissingParameterError("Parameter 'package' required", ud.url) [all …]
|
| H A D | s3.py | 65 def supports(self, ud, d): argument 69 return ud.type in ['s3'] 74 def urldata_init(self, ud, d): argument 75 if 'downloadfilename' in ud.parm: 76 ud.basename = ud.parm['downloadfilename'] 78 ud.basename = os.path.basename(ud.path) 80 ud.localfile = ud.basename 82 ud.basecmd = d.getVar("FETCHCMD_s3") or "/usr/bin/env aws s3" 84 def download(self, ud, d): argument 90 cmd = '%s cp s3://%s%s %s' % (ud.basecmd, ud.host, ud.path, ud.localpath) [all …]
|
| H A D | gitsm.py | 31 def supports(self, ud, d): argument 35 return ud.type in ['gitsm'] 37 def process_submodules(self, ud, workdir, function, d): argument 66 …gitmodules = runfetchcmd("%s show %s:.gitmodules" % (ud.basecmd, ud.revision), d, quiet=True, work… 73 …module_hash = runfetchcmd("%s ls-tree -z -d %s %s" % (ud.basecmd, ud.revision, md['path']), d, qui… 85 revision[m] = ud.revision 91 newud = copy.copy(ud) 111 …fers to relative ssh reference %s. References may fail if not absolute." % (ud.url, uris[module])) 117 if url.endswith("{}{}".format(ud.host, ud.path)): 125 url += ";lfs=%s" % ("1" if self._need_lfs(ud) else "0") [all …]
|
| H A D | az.py | 25 def supports(self, ud, d): argument 29 return ud.type in ['az'] 32 def checkstatus(self, fetch, ud, d, try_again=True): argument 35 ud.url = ud.url.replace('az://','https://').split(';')[0] 38 if az_sas and az_sas not in ud.url: 39 ud.url += az_sas 41 return Wget.checkstatus(self, fetch, ud, d, try_again) 44 def download(self, ud, d, retries=3): argument 53 localpath = os.path.join(d.getVar("DL_DIR"), ud.localfile) 58 if ud.user and ud.pswd: [all …]
|
| H A D | npmsw.py | 64 def supports(self, ud, d): argument 66 return ud.type in ["npmsw"] 68 def urldata_init(self, ud, d): argument 72 ud.shrinkwrap_file = re.sub(r"^npmsw://", "", ud.url.split(";")[0]) 75 ud.dev = bb.utils.to_boolean(ud.parm.get("dev"), False) 78 ud.deps = [] 157 raise ParameterError("Invalid git url: %s" % resolved, ud.url) 170 raise ParameterError("Unsupported dependency: %s" % name, ud.url) 173 ud.deps.append({ 183 with open(ud.shrinkwrap_file, "r") as f: [all …]
|
| H A D | crate.py | 29 def supports(self, ud, d): argument 33 return ud.type in ['crate'] 38 def urldata_init(self, ud, d): argument 43 if ud.type == 'crate': 44 self._crate_urldata_init(ud, d) 46 super(Crate, self).urldata_init(ud, d) 48 def _crate_urldata_init(self, ud, d): argument 55 parts = ud.url.split('/') 57 raise bb.fetch2.ParameterError("Invalid URL: Must be crate://HOST/NAME/VERSION", ud.url) 72 ud.url = "https://%s/%s/%s/download" % (host, name, version) [all …]
|
| H A D | gcp.py | 34 def supports(self, ud, d): argument 38 return ud.type in ['gs'] 43 def urldata_init(self, ud, d): argument 44 if 'downloadfilename' in ud.parm: 45 ud.basename = ud.parm['downloadfilename'] 47 ud.basename = os.path.basename(ud.path) 49 ud.localfile = ud.basename 55 def download(self, ud, d): argument 68 path = ud.path.lstrip("/") 69 blob = self.gcp_client.bucket(ud.host).blob(path) [all …]
|
| H A D | sftp.py | 59 def supports(self, ud, d): argument 63 return ud.type in ['sftp'] 68 def urldata_init(self, ud, d): argument 69 if 'protocol' in ud.parm and ud.parm['protocol'] == 'git': 73 "git:// prefix with protocol=ssh", ud.url) 75 if 'downloadfilename' in ud.parm: 76 ud.basename = ud.parm['downloadfilename'] 78 ud.basename = os.path.basename(ud.path) 80 ud.localfile = ud.basename 82 def download(self, ud, d): argument [all …]
|
| H A D | __init__.py | 438 def uri_replace(ud, uri_find, uri_replace, replacements, d, mirrortarball=None): argument 439 if not ud.url or not uri_find or not uri_replace: 442 uri_decoded = list(decodemirrorurl(ud.url)) 487 elif ud.localpath and ud.method.supports_checksum(ud): 488 basename = os.path.basename(ud.localpath) 501 if result == ud.url: 503 logger.debug2("For url %s returning %s" % (ud.url, result)) 569 def verify_checksum(ud, d, precomputed={}, localpath=None, fatal_nochecksum=True): argument 583 if ud.ignore_checksums or not ud.method.supports_checksum(ud): 587 localpath = ud.localpath [all …]
|
| H A D | wget.py | 62 def supports(self, ud, d): argument 66 return ud.type in ['http', 'https', 'ftp', 'ftps'] 71 def urldata_init(self, ud, d): argument 72 if 'protocol' in ud.parm: 73 if ud.parm['protocol'] == 'git': 74 …a git repository using http, you need to instead use the git:// prefix with protocol=http", ud.url) 76 if 'downloadfilename' in ud.parm: 77 ud.basename = ud.parm['downloadfilename'] 79 ud.basename = os.path.basename(ud.path) 81 ud.localfile = ud.basename [all …]
|
| H A D | local.py | 30 def urldata_init(self, ud, d): argument 32 ud.basename = os.path.basename(ud.path) 33 ud.basepath = ud.path 34 ud.needdonestamp = False 35 if "*" in ud.path: 36 …re no longer supported. Please place the files in a directory and reference that instead.", ud.url) 63 def need_update(self, ud, d): argument 64 if os.path.exists(ud.localpath):
|
| /openbmc/phosphor-logging/test/openpower-pels/ |
| H A D | user_data_test.cpp | 23 UserData ud(stream); in TEST() local 25 EXPECT_TRUE(ud.valid()); in TEST() 26 EXPECT_EQ(ud.header().id, 0x5544); in TEST() 27 EXPECT_EQ(ud.header().size, udSectionData.size()); in TEST() 28 EXPECT_EQ(ud.header().version, 0x01); in TEST() 29 EXPECT_EQ(ud.header().subType, 0x02); in TEST() 30 EXPECT_EQ(ud.header().componentID, 0x0304); in TEST() 32 const auto& data = ud.data(); in TEST() 45 ud.flatten(newStream); in TEST() 56 UserData ud(stream); in TEST() local [all …]
|
| H A D | pel_test.cpp | 356 auto ud = util::makeADUserDataSection(additionalData); in TEST_F() local 358 EXPECT_TRUE(ud->valid()); in TEST_F() 359 EXPECT_EQ(ud->header().id, 0x5544); in TEST_F() 360 EXPECT_EQ(ud->header().version, 0x01); in TEST_F() 361 EXPECT_EQ(ud->header().subType, 0x01); in TEST_F() 362 EXPECT_EQ(ud->header().componentID, 0x2000); in TEST_F() 364 const auto& d = ud->data(); in TEST_F() 402 auto ud = util::makeSysInfoUserDataSection(additionalData, dataIface); in TEST_F() local 404 EXPECT_TRUE(ud->valid()); in TEST_F() 405 EXPECT_EQ(ud->header().id, 0x5544); in TEST_F() [all …]
|
| /openbmc/u-boot/drivers/dma/ |
| H A D | sandbox-dma-test.c | 21 struct sandbox_dma_dev *ud; member 50 struct sandbox_dma_dev *ud = dev_get_priv(dma->dev); in sandbox_dma_of_xlate() local 60 uc = &ud->channels[dma->id]; in sandbox_dma_of_xlate() 75 struct sandbox_dma_dev *ud = dev_get_priv(dma->dev); in sandbox_dma_request() local 81 uc = &ud->channels[dma->id]; in sandbox_dma_request() 93 struct sandbox_dma_dev *ud = dev_get_priv(dma->dev); in sandbox_dma_free() local 99 uc = &ud->channels[dma->id]; in sandbox_dma_free() 104 ud->buf_rx = NULL; in sandbox_dma_free() 105 ud->data_len = 0; in sandbox_dma_free() 113 struct sandbox_dma_dev *ud = dev_get_priv(dma->dev); in sandbox_dma_enable() local [all …]
|