Home
last modified time | relevance | path

Searched +full:rev +full:- +full:parse (Results 1 – 25 of 100) sorted by relevance

1234

/openbmc/phosphor-bmc-code-mgmt/bmc/
H A Dmsl_verify.cpp7 #include <phosphor-logging/elog-errors.hpp>
8 #include <phosphor-logging/elog.hpp>
9 #include <phosphor-logging/lg2.hpp>
25 return (-1); in compare()
34 return (-1); in compare()
37 if (versionToCompare.rev > mslVersion.rev) in compare()
41 if (versionToCompare.rev < mslVersion.rev) in compare()
43 return (-1); in compare()
50 // parse Function copy inpVersion onto outVersion in Version format
51 // {major,minor,rev}.
[all …]
H A Dmsl_verify.hpp14 uint8_t rev; member
22 /** @brief Parse the version components into a struct
24 * at compilation time, this value is break down by parse function to allocate
27 * @param[in] versionStr - The version string to be parsed
28 * @param[out] version - The version struct to be populated
30 void parse(const std::string& versionStr, Version& version);
33 * @param[in] a - The first version to compare
34 * @param[in] b - The second version to compare
37 * -1 if a < b
47 * @return[out] msl - Minimum version string
/openbmc/openpower-pnor-code-mgmt/test/
H A Dmsl_verify.cpp33 EXPECT_EQ(0, minimumShipLevel->compare(actual, min)); in TEST_F()
37 EXPECT_EQ(-1, minimumShipLevel->compare(actual, min)); in TEST_F()
39 EXPECT_EQ(-1, minimumShipLevel->compare(actual, min)); in TEST_F()
41 EXPECT_EQ(-1, minimumShipLevel->compare(actual, min)); in TEST_F()
45 EXPECT_EQ(1, minimumShipLevel->compare(actual, min)); in TEST_F()
47 EXPECT_EQ(1, minimumShipLevel->compare(actual, min)); in TEST_F()
49 EXPECT_EQ(1, minimumShipLevel->compare(actual, min)); in TEST_F()
52 TEST_F(MinimumShipLevelTest, parse) in TEST_F() argument
57 versionStr = "nomatch-1.2.3-abc"; in TEST_F()
58 minimumShipLevel->parse(versionStr, version); in TEST_F()
[all …]
/openbmc/u-boot/scripts/
H A Dobjdiff3 # objdiff - a small script for validating that a commit or series of commits
28 SRCTREE=$(cd $(git rev-parse --show-toplevel 2>/dev/null); pwd)
30 if [ -z "$SRCTREE" ]; then
63 [ ! -d "$dir" ] && mkdir -p $dir
66 # http://dummdida.tumblr.com/post/60924060451/binary-diff-between-libc-from-scientificlinux-and
67 $STRIP -g $1 -R __bug_table -R .note -R .comment -o $stripped
68 $OBJDUMP -D $stripped | sed -e "s/^[[:space:]]\+[0-9a-f]\+//" -e "s:^$stripped:$1:" > $dis
72 [ $# -eq 0 ] && usage
76 CMT="`git rev-parse --short HEAD`"
82 if [ -d "$d" ]; then
[all …]
H A Dsetlocalversion8 # <nico-linuxsetlocalversion -at- schottelius.org>.
13 echo "Usage: $0 [--save-scmversion] [srctree]" >&2
19 if test "$1" = "--save-scmversion"; then
23 if test $# -gt 0; then
27 if test $# -gt 0 -o ! -d "$srctree"; then
37 if test -e .scmversion; then
41 if test "$1" = "--short"; then
46 if test -z "$(git rev-parse --show-cdup 2>/dev/null)" &&
47 head=`git rev-parse --verify --short HEAD 2>/dev/null`; then
49 # If we are at a tagged commit (like "v2.6.30-rc6"), we ignore
[all …]
/openbmc/openbmc/poky/bitbake/bin/
H A Dgit-make-shallow5 # SPDX-License-Identifier: GPL-2.0-only
8 """git-make-shallow: make the current git repository shallow
27 git_cmd = ['git', '-c', 'safe.bareRepository=all']
33 git_dir = check_output(git_cmd + ['rev-parse', '--git-dir']).rstrip()
37 check_output(git_cmd + ['fetch', '--unshallow'])
46 revs = check_output(git_cmd + ['rev-list'] + args.revisions).splitlines()
50 ref_revs = check_output(git_cmd + ['rev-list'] + args.refs).splitlines()
52 for rev in remaining_history:
53 if check_output(git_cmd + ['rev-parse', '{}^@'.format(rev)]):
54 sys.exit('Error: %s was not made shallow' % rev)
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dgit.py4 # SPDX-License-Identifier: MIT
19 git_dir = self._run_git_cmd_at(['rev-parse', '--git-dir'], path)
23 if self._run_git_cmd_at(['rev-parse', '--is-bare-repository'], path) == 'true':
28 self.top_dir = self._run_git_cmd_at(['rev-parse', '--show-toplevel'],
52 cmd.append('--bare')
65 """Do git rev-parse"""
67 return self.run_cmd(['rev-parse', '--verify', revision])
76 return self.run_cmd(['symbolic-ref', 'HEAD'])[11:]
H A Dmetadata.py3 # SPDX-License-Identifier: MIT
20 Data will be gathered using bitbake -e thanks to get_bb_vars.
68 …o['branch'] = subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"], cwd=path).deco…
72 …info['commit'] = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=path).decode('utf-8').s…
76 …it_count'] = int(subprocess.check_output(["git", "rev-list", "--count", "HEAD"], cwd=path).decode(…
80 … int(subprocess.check_output(["git", "show", "--no-patch", "--format=%ct", "HEAD"], cwd=path).deco…
109 xml_doc = parseString(tostring(xml).decode('UTF-8'))
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/rfkill/rfkill/
H A Ddont.call.git.rev-parse.on.parent.dir.patch1 Upstream-Status: Pending
3 When WORKDIR is included in some other git checkout, version.sh calls git rev-parse
11 [ "${descr%%-*}" = "v$VERSION" ] || exit 2
14 | NOTE: make -j 32 -e MAKEFLAGS=
21 Don't try git rev-parse, if there isn't .git in ${S}.
23 --- a/version.sh 2013-11-15 03:43:12.587744366 -0800
24 +++ b/version.sh 2013-11-15 03:42:40.699743320 -0800
25 @@ -12,7 +12,7 @@
29 -elif head=`git rev-parse --verify HEAD 2>/dev/null`; then
30 +elif test -d .git && head=`git rev-parse --verify HEAD 2>/dev/null`; then
[all …]
/openbmc/openbmc/poky/meta/lib/oe/
H A Dbuildcfg.py19 rev, _ = bb.process.run('git rev-parse --abbrev-ref HEAD', cwd=path)
21 rev = '<unknown>'
22 return rev.strip()
26 rev, _ = bb.process.run('git rev-parse HEAD', cwd=path)
28 rev = '<unknown>'
29 return rev.strip()
33 toplevel, _ = bb.process.run('git rev-parse --show-toplevel', cwd=path)
48 uri, _ = bb.process.run('git remote get-url {remote}'.format(remote=remote), cwd=path)
55 describe, _ = bb.process.run('git describe --tags --dirty', cwd=path)
62 subprocess.check_output("""cd %s; export PSEUDO_UNLOAD=1; set -e;
[all …]
/openbmc/openpower-pnor-code-mgmt/
H A Dmsl_verify.cpp5 #include <phosphor-logging/log.hpp>
27 return -1; in compare()
36 return -1; in compare()
43 if (a.rev < b.rev) in compare()
45 return -1; in compare()
47 else if (a.rev > b.rev) in compare()
55 void MinimumShipLevel::parse(const std::string& versionStr, Version& version) in parse() function in openpower::software::image::MinimumShipLevel
60 // Match for vX.Y.Z or v-X.Y.Z in parse()
61 std::regex regex{"v-?([0-9]+)\\.([0-9]+)\\.([0-9]+)", std::regex::extended}; in parse()
65 // Match for vX.Y or v-X.Y in parse()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/classes/
H A Dgitver.bbclass29 ver = gitrev_run("git describe --tags", gitdir)
32 ver = gitrev_run("git rev-parse --short HEAD", gitdir)
39 raise bb.parse.SkipRecipe(str(exc))
51 rev = gitrev_run("git rev-list HEAD -1", gitdir)
52 return rev[:7]
57 from bb.parse import mark_dependency
69 ref = gitrev_run("git symbolic-ref -q HEAD", gitdir)
/openbmc/sdbusplus/include/sdbusplus/async/stdexec/
H A Dimport1 #!/bin/bash -e
3 execution_dir="$(git rev-parse --show-toplevel)/../stdexec"
5 git -C "${execution_dir}" rev-parse HEAD > commit.info
6 cp -r "${execution_dir}"/include/stdexec/* .
9 (find . -name "*.hpp" -print0 || true) | while IFS= read -r -d '' f
11 sed -i "s#include <stdexec/#include <sdbusplus/async/stdexec/#" -- "${f}"
12 sed -i "s#include <exec/#include <sdbusplus/async/stdexec/#" -- "${f}"
13 sed -i 's#include "\./\([^"]*\)"#include <sdbusplus/async/stdexec/\1>#' -- "${f}"
14 clang-format -i "${f}"
/openbmc/openbmc/poky/scripts/
H A Doe-setup-layers5 # SPDX-License-Identifier: MIT
8 # This file was copied from poky(or oe-core)/scripts/oe-setup-layers by running
10 # bitbake-layers create-layers-setup destdir
12 # It is recommended that you do not modify this file directly, but rather re-run the above command …
24 …curr_toplevel = subprocess.check_output("git -C %s rev-parse --show-toplevel" % repodir, shell=Tru…
25 if curr_toplevel.strip().decode("utf-8") == repodir:
31 def _is_repo_at_rev(repodir, rev): argument
33 …curr_rev = subprocess.check_output("git -C %s rev-parse HEAD" % repodir, shell=True, stderr=subpro…
34 if curr_rev.strip().decode("utf-8") == rev:
42 …curr_uri = subprocess.check_output("git -C %s remote get-url %s" % (repodir, remote), shell=True, …
[all …]
H A Dcombo-layer3 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
6 # Authored-by: Yu Ke <ke.yu@intel.com>
10 # SPDX-License-Identifier: GPL-2.0-only
44 branchname = runcmd("git symbolic-ref HEAD 2>/dev/null", repodir).strip()
55 For an example config file, see combo-layer.conf.example
89 if repo == "combo-layer-settings":
101 lcfile = self.conffile.replace('.conf', '-local.conf')
167 …logger.error("ERROR: patchutils package is missing, please install it (e.g. # apt-get install patc…
190 output = err.read().decode('utf-8')
198 combo-layer.
[all …]
/openbmc/openbmc/poky/bitbake/lib/layerindexlib/
H A Dcooker.py1 # Copyright (C) 2016-2018 Wind River Systems, Inc.
3 # SPDX-License-Identifier: GPL-2.0-only
11 from urllib.parse import unquote, urlparse
58 …bb_path = self._run_command('git rev-parse --show-toplevel', os.path.dirname(__file__), default=bb…
59 … bb_branch = self._run_command('git rev-parse --abbrev-ref HEAD', bb_path, default="<unknown>")
60 bb_rev = self._run_command('git rev-parse HEAD', bb_path, default="<unknown>")
61 for remotes in self._run_command('git remote -v', bb_path, default="").split("\n"):
121 … layerbasepath = self._run_command('git rev-parse --show-toplevel', layerpath, default=layerpath)
125 … layerbranch = self._run_command('git rev-parse --abbrev-ref HEAD', layerpath, default="<unknown>")
126 layerrev = self._run_command('git rev-parse HEAD', layerpath, default="<unknown>")
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/vk-gl-cts/files/
H A Dgenerate-srcuri.py9 import urllib.parse
14 if re.match(r"[a-z0-9]{40}", ref):
18 cmd = ("git", "ls-remote", "--tags", "--exit-code", repo, ref)
26 parts = urllib.parse.urlparse(repo_url)
29 url = urllib.parse.urlunparse(parts)
33 return url + f";protocol={protocol};nobranch=1;destsuffix={destination};rev={sha}"
71 filename = os.path.join(basedir, "vulkan-validationlayers/src/scripts/known_good.json")
85 parts = urllib.parse.urlparse(repo.url)
88 url = urllib.parse.urlunparse(parts)
94 url += f";protocol={protocol};nobranch=1;destsuffix={destsuffix};rev={sha}"
[all …]
/openbmc/openbmc/poky/scripts/contrib/
H A Dtest_build_time.sh7 # SPDX-License-Identifier: GPL-2.0-or-later
21 # test-applied to the repository in order to get past build failures that
36 echo " script - worker script file (if in current dir, prefix with ./)"
37 echo " time - time threshold (in seconds, suffix m for minutes)"
38 echo " tolerance - tolerance (in seconds, suffix m for minutes or % for"
40 echo " patchrevlist - optional file listing revisions to apply as patches on top"
51 echo "%wheel ALL=(ALL) NOPASSWD: /sbin/sysctl -w vm.drop_caches=[1-3]"
57 # Note - we exit with 250 here because that will tell git bisect run that
74 if ! [[ "$2" =~ ^[0-9][0-9m.]*$ ]] ; then
79 if ! [[ "$3" =~ ^[0-9][0-9m.%]*$ ]] ; then
[all …]
H A Dbuild-perf-test-wrapper.sh7 # SPDX-License-Identifier: GPL-2.0-only
11 # oe-build-perf-test and archives the results.
15 archive_dir=~/perf-results/archives
19 Usage: $script [-h] [-c COMMITISH] [-C GIT_REPO]
22 -h show this help and exit.
23 -a ARCHIVE_DIR archive results tarball here, give an empty string to
25 -c COMMITISH test (checkout) this commit, <branch>:<commit> can be
27 -C GIT_REPO commit results into Git
28 -d DOWNLOAD_DIR directory to store downloaded sources in
29 -E EMAIL_ADDR send email report
[all …]
/openbmc/openbmc/meta-phosphor/classes/
H A Dobmc-phosphor-kernel-version.bbclass3 sed -i '/CONFIG_LOCALVERSION/d' ${B}/.config
6 latestVersion="-$(git rev-parse --verify HEAD)"
7 shortLatestVersion="$(echo ${latestVersion} | cut -c1-8)"
9 shortLinuxVersionExt="$(echo ${LINUX_VERSION_EXTENSION} | cut -c1-8)"
12 dirtyString="-dirty"
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/rfkill/
H A Drfkill_1.0.bb8 file://0001-rfkill-makefile-don-t-use-t-the-OE-install-wrapper-d.patch \
9 file://dont.call.git.rev-parse.on.parent.dir.patch"
21 inherit update-alternatives
/openbmc/openbmc/meta-yadro/recipes-phosphor/ipmi/phosphor-ipmi-host/
H A D0003-Fix-version-parsing-update-AUX-revision-info.patch12 With this commit the AUX info calculation will properly parse
18 all be 1 as an indicator of non-release branch. For unofficial
30 Resolves SRV-775
31 End-user-impact: Version info is properly represented in the
34 Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com>
35 Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
37 ---
38 apphandler.cpp | 226 +++++++++++++++++++++++++++++++++++--------------
39 1 file changed, 163 insertions(+), 63 deletions(-)
41 diff --git a/apphandler.cpp b/apphandler.cpp
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/
H A Dosc.py4 # SPDX-License-Identifier: GPL-2.0-only
46 if 'rev' in ud.parm:
47 ud.revision = ud.parm['rev']
50 rev = bb.fetch2.srcrev_internal_helper(ud, d, '')
51 if rev:
52 ud.revision = rev
70 config = "-c %s" % self.generate_config(ud, d)
73 options.append("-r %s" % ud.revision)
78 …osccmd = "%s %s -A %s://%s co %s/%s %s" % (basecmd, config, proto, ud.host, coroot, ud.module, " "…
80 osccmd = "%s %s -A %s://%s up %s" % (basecmd, config, proto, ud.host, " ".join(options))
[all …]
/openbmc/phosphor-logging/gen/
H A Dregenerate-meson3 REPO_ROOT=$(git rev-parse --show-toplevel)
5 # Find sdbus++-gen-meson
9 if [ ! -x "$SDBUSPP_GEN_MESON" ]; then
10 SDBUSPP_GEN_MESON="$(which sdbus++-gen-meson 2> /dev/null)"
12 if [ ! -x "$SDBUSPP_GEN_MESON" ]; then
13 SDBUSPP_GEN_MESON="$REPO_ROOT/subprojects/sdbusplus/tools/sdbus++-gen-meson"
15 if [ ! -x "$SDBUSPP_GEN_MESON" ]; then
16 echo "Cannot find sdbus++-gen-meson ($SDBUSPP_GEN_MESON)."
22 --command meson \
23 --directory "$REPO_ROOT/yaml" \
[all …]
/openbmc/phosphor-dbus-interfaces/gen/
H A Dregenerate-meson3 REPO_ROOT=$(git rev-parse --show-toplevel)
5 # Find sdbus++-gen-meson
9 if [ ! -x "$SDBUSPP_GEN_MESON" ]; then
10 SDBUSPP_GEN_MESON="$(which sdbus++-gen-meson 2> /dev/null)"
12 if [ ! -x "$SDBUSPP_GEN_MESON" ]; then
13 SDBUSPP_GEN_MESON="$REPO_ROOT/subprojects/sdbusplus/tools/sdbus++-gen-meson"
15 if [ ! -x "$SDBUSPP_GEN_MESON" ]; then
16 echo "Cannot find sdbus++-gen-meson ($SDBUSPP_GEN_MESON)."
22 --command meson \
23 --directory "$REPO_ROOT/yaml" \
[all …]

1234