/openbmc/phosphor-bmc-code-mgmt/bmc/ |
H A D | msl_verify.cpp | 7 #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 D | msl_verify.hpp | 14 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/linux/scripts/ |
H A D | objdiff | 2 # SPDX-License-Identifier: GPL-2.0-only 4 # 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`" [all …]
|
H A D | check-git | 2 # SPDX-License-Identifier: GPL-2.0-only 8 if ! git -C "${srctree}" rev-parse --verify HEAD >/dev/null 2>/dev/null; then 12 if ! test -z $(git -C "${srctree}" rev-parse --show-cdup 2>/dev/null); then
|
H A D | setlocalversion | 2 # SPDX-License-Identifier: GPL-2.0 9 # <nico-linuxsetlocalversion -at- schottelius.org>. 14 echo "Usage: $0 [--no-local] [srctree]" >&2 19 if test "$1" = "--no-local"; then 25 if test $# -gt 0; then 29 if test $# -gt 0 -o ! -d "$srctree"; then 37 [ "$(git cat-file -t "$tag" 2> /dev/null)" = tag ] || return 1 41 set -- $(git rev-list --count --left-right "$tag"...HEAD 2> /dev/null) 44 # string comparison, because $1 is empty if the 'git rev-list' 60 while [ $# -gt 0 ]; [all …]
|
/openbmc/openbmc/poky/bitbake/bin/ |
H A D | git-make-shallow | 5 # 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/u-boot/scripts/ |
H A D | objdiff | 3 # 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 D | setlocalversion | 8 # <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/openpower-pnor-code-mgmt/test/ |
H A D | msl_verify.cpp | 33 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/openbmc/poky/meta/lib/oeqa/utils/ |
H A D | git.py | 4 # 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 D | metadata.py | 3 # 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(… 104 xml_doc = parseString(tostring(xml).decode('UTF-8'))
|
/openbmc/openpower-pnor-code-mgmt/ |
H A D | msl_verify.cpp | 5 #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/recipes-connectivity/rfkill/rfkill/ |
H A D | dont.call.git.rev-parse.on.parent.dir.patch | 1 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 D | buildcfg.py | 19 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/openbmc/meta-openembedded/meta-oe/classes/ |
H A D | gitver.bbclass | 29 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)
|
H A D | socorro-syms.bbclass | 11 # inherit socorro-syms 18 PACKAGES =+ "${PN}-socorro-syms" 19 FILES:${PN}-socorro-syms = "/usr/share/socorro-syms" 28 bb.error("Package %s depends on Breakpad via socorro-syms. See " 36 package_dir, "usr", "share", "breakpad-syms") 38 package_dir, "usr", "share", "socorro-syms") 108 "git rev-parse --show-toplevel", os.path.dirname(source_file_path)) 139 "git config --get remote.origin.url", source_file_dir) 146 "git config --file %s --get remote.origin.url" % git_config_file, 161 source_branch_list = run_command("git show-branch --list", source_file_dir) [all …]
|
/openbmc/openbmc/poky/scripts/ |
H A D | oe-setup-layers | 5 # 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 D | combo-layer | 3 # -*- 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 D | cooker.py | 1 # 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/sdbusplus/include/sdbusplus/async/stdexec/ |
H A D | import | 1 #!/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/meta-openembedded/meta-oe/recipes-graphics/vk-gl-cts/files/ |
H A D | generate-srcuri.py | 9 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/linux/drivers/bcma/ |
H A D | scan.c | 15 #include <linux/dma-mapping.h> 78 { BCMA_CORE_SATA_XORDMA, "SATA XOR-DMA" }, 119 switch (id->manuf) { in bcma_device_name() 137 if (names[i].id == id->id) in bcma_device_name() 146 return readl(bus->mmio + offset); in bcma_scan_read32() 151 if (bus->hosttype == BCMA_HOSTTYPE_PCI) in bcma_scan_switch_core() 152 pci_write_config_dword(bus->host_pci, BCMA_PCI_BAR0_WIN, in bcma_scan_switch_core() 165 (*eromptr)--; in bcma_erom_push_ent() 172 return -ENOENT; in bcma_erom_get_ci() 174 return -ENOENT; in bcma_erom_get_ci() [all …]
|
/openbmc/openbmc/poky/scripts/contrib/ |
H A D | build-perf-test-wrapper.sh | 7 # 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 …]
|
H A D | test_build_time.sh | 7 # 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 …]
|
/openbmc/linux/drivers/acpi/ |
H A D | pci_mcfg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/pci-acpi.h> 14 #include <linux/pci-ecam.h> 37 ((end) - (start) + 1), \ 42 /* { OEM_ID, OEM_TABLE_ID, REV, SEGMENT, BUS_RANGE, ops, cfgres }, */ 46 #define AL_ECAM(table_id, rev, seg, ops) \ argument 47 { "AMAZON", table_id, rev, seg, MCFG_BUS_ANY, ops } 86 #define THUNDER_PEM_QUIRK(rev, node) \ argument 87 { "CAVIUM", "THUNDERX", rev, 4 + (10 * (node)), MCFG_BUS_ANY, \ 89 { "CAVIUM", "THUNDERX", rev, 5 + (10 * (node)), MCFG_BUS_ANY, \ [all …]
|