Home
last modified time | relevance | path

Searched +full:sub +full:- +full:path (Results 1 – 25 of 855) sorted by relevance

12345678910>>...35

/openbmc/linux/scripts/
H A Dleaking_addresses.pl2 # SPDX-License-Identifier: GPL-2.0-only
7 # - Scans dmesg output.
8 # - Walks directory tree and parses each file (for each directory in @DIRS).
10 # Use --debug to output path before parsing, this is useful to find files that
41 # Kernel addresses vary by architecture. We can only auto-detect the following
42 # architectures (using `uname -m`). (flag --32-bit overrides auto-detection.)
52 my $squash_by_path = 0; # Summary report grouped by absolute path.
55 my $opt_32bit = 0; # Scan 32-bit kernel.
56 my $page_offset_32bit = 0; # Page offset for 32-bit kernel.
61 '/proc/device-tree',
[all …]
H A Dheaderdep.pl2 # SPDX-License-Identifier: GPL-2.0
42 sub help {
46 print " --all\n";
47 print " --graph\n";
49 print " -I includedir\n";
52 print " $0 --graph include/linux/kernel.h | dot -Tpng -o graph.png\n";
56 sub version {
62 sub strip {
76 sub search {
78 return $filename if -f $filename;
[all …]
/openbmc/openbmc/poky/meta/classes/
H A Dchrpath.bbclass4 # SPDX-License-Identifier: MIT
20 out = subprocess.check_output([cmd, "-l", fpath], universal_newlines=True)
34 if rpath.find("$ORIGIN") != -1:
37 rpath = os.path.normpath(rpath)
41 bb.warn("Skipping RPATH %s as is a standard search path for %s" % (rpath, fpath))
46 …new_rpaths.append("$ORIGIN/" + os.path.relpath(rpath, os.path.dirname(fpath.replace(rootdir, "/"))…
57 subprocess.check_output([cmd, "-r", args, fpath],
63 import subprocess as sub
65 …p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L', fpath],stdout=sub.PIPE,stderr=sub.PIPE, text…
80 … newpath = "@loader_path/" + os.path.relpath(rpath, os.path.dirname(fpath.replace(rootdir, "/")))
[all …]
/openbmc/phosphor-mrw-tools/
H A Dhwmon.pl4 #for use by the phosphor-hwmon daemon. These configuration files
15 use File::Path qw(make_path);
32 my $g_targetObj = Targets->new;
33 $g_targetObj->loadXML($serverwizFile);
45 sub getI2CSensors
48 my $connections = $g_targetObj->findConnections($bmc, "I2C");
52 for my $i2c (@{$connections->{CONN}}) {
54 my $chip = $i2c->{DEST_PARENT};
56 "unit-hwmon-feature",
68 $entry{name} = lc $g_targetObj->getInstanceName($chip);
[all …]
H A Dgen_path_callouts.pl6 # supports I2C, FSI, SPI, FSI-I2C, and FSI-SPI devices. The output is a JSON
10 # keys is used. Multi-hop FSI links are indicated by a dash in between the
11 # links, eg "0-1".
21 # "LocationCode": "P1-C50",
22 # "MRU":"/sys-0/node-0/motherboard/proc_socket-0/module-0/power9-0",
23 # "Name":"/sys-0/node-0/motherboard/cpu0"
27 # "LocationCode": "P1-C42",
28 # "MRU":"/sys-0/node-0/motherboard/ebmc-card/BMC-0",
29 # "Name":"/sys-0/node-0/motherboard/ebmc-card"
34 # "Name":"/sys-0/node-0/motherboard"
[all …]
H A Dgen_ipmi_sensor.pl23 "skip-broken-mrw" => \$skipBrokenMrw,
33 my $targetObj = Targets->new;
34 $targetObj->loadXML($serverwizFile);
37 #Fetch the sensorid,sensortype,class,object path from the mrw.
52 foreach my $target (sort keys %{$targetObj->getAllTargets()})
57 my $path = '';
63 if ($targetObj->getTargetType($target) eq "unit-ipmi-sensor") {
65 $sensorName = $targetObj->getInstanceName($target);
69 $entityID = $targetObj->getAttribute($target, "IPMI_ENTITY_ID");
80 $sensorID = $targetObj->getAttribute($target, "IPMI_SENSOR_ID");
[all …]
H A Dgen_ipmi_sel.pl24 "skip-broken-mrw" => \$skipBrokenMrw,
34 my $targetObj = Targets->new;
35 $targetObj->loadXML($serverwizFile);
39 # Fetch the Sensor ID, Event/Reading Type and Object Path from MRW.
41 # Merge and generate an output YAML with inventory object path as the key.
53 foreach my $target (sort keys %{$targetObj->getAllTargets()})
58 my $path = '';
63 if ($targetObj->getTargetType($target) eq "unit-ipmi-sensor") {
69 $path = $targetObj->getAttribute($target, "INSTANCE_PATH");
74 next if ($sensorType ne $metaDataConfig->{$entityID}->{SensorType});
[all …]
H A Dgen_callouts.pl31 my $targets = Targets->new;
32 $targets->loadXML($mrwFile);
40 …s/devices/platform/ahb/ahb:apb/ahb:apb:bus\@1e78a000/1e78a100.i2c-bus/i2c-<port>/<port>-00<address…
41 my $fsiMasterPath = "/sys/devices/platform/gpio-fsi/fsi0/slave\@00:00/raw";
42 my $fsiSlavePath = "/sys/devices/platform/gpio-fsi/fsi0/slave\@00:00/00:00:00:0a/fsi1/slave\@<link>…
53 sub genI2CCallouts
56 my $connections = $targets->findConnections($bmc, "I2C");
57 # hash of arrays - {I2C master port : list of connected slave Targets}
60 for my $i2c (@{$connections->{CONN}})
62 my $master = $i2c->{SOURCE};
[all …]
H A Dgen_fru_properties.pl24 "skip-broken-mrw" => \$skipBrokenMrw
36 my $targets = Targets->new;
37 $targets->loadXML($mrwFile);
51 # Target Type : Target inventory path
61 # Retrieve OBMC path of targets we're interested in
64 my $path = "";
66 if (!$targets->isBadAttribute($item->{TARGET}, "TYPE")) {
67 $targetType = $targets->getAttribute($item->{TARGET}, "TYPE");
69 next if (not exists $targetItems->{$targetType});
80 sub writeRemaining
[all …]
H A Dinventory.pl27 my %includedTargetTypes = ("chip-sp-bmc" => 1,
28 "chip-apss-psoc" => 1);
41 my $targetObj = Targets->new;
42 $targetObj->loadXML($serverwizFile);
44 foreach $target (sort keys %{ $targetObj->getAllTargets() })
46 $type = $targetObj->getType($target);
53 if (!$targetObj->isBadAttribute($target, "FRU_NAME")) {
54 $fruName = $targetObj->getAttribute($target,"FRU_NAME");
57 my $targetType = $targetObj->getTargetType($target);
90 my $json = JSON->new;
[all …]
/openbmc/openbmc-build-scripts/scripts/
H A Dgenerate-html-index.py5 and all its sub-directories. There are options to exclude certain files and
6 sub-directories.
21 Create HTML index files for a given directory and all its sub-directories.
32 l_index_file_path = os.path.join(i_dir_path, "index.html")
35 # Created a sorted list of sub-directories in this directory
40 if os.path.isdir(os.path.join(i_dir_path, d))
50 if not os.path.isdir(os.path.join(i_dir_path, f))
78 os.path.join(i_dir_path, l_dir),
95 Parse the given list as command-line arguments and return an object with
99 i_raw_args A list of command-line arguments, usually taken from
[all …]
H A Ddbus-unit-test.py27 dbus_pid = os.path.join(dbus_dir, "pid")
28 dbus_socket = os.path.join(dbus_dir, "system_bus_socket")
29 dbus_local_conf = os.path.join(dbus_dir, "system-local.conf")
30 if os.path.isfile(dbus_pid):
36 line = re.sub(
42 line = re.sub(
48 line = re.sub(
50 "<listen>unix:path=%s</listen>" % dbus_socket,
54 line = re.sub("<deny", "<allow", line)
59 "dbus-daemon",
[all …]
/openbmc/openbmc/poky/meta/lib/oe/package_manager/deb/
H A D__init__.py4 # SPDX-License-Identifier: GPL-2.0-only
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}"),
30 line = re.sub(r"#ROOTFS#", "/dev/null", line)
31 line = re.sub(r"#APTCONF#", self.apt_conf_dir, line)
35 self.apt_conf_dir = os.path.join(self.d.expand("${APTCONF_TARGET}"),
[all …]
/openbmc/linux/tools/testing/ktest/
H A Dconfig-bisect.pl1 #!/usr/bin/perl -w
2 # SPDX-License-Identifier: GPL-2.0-only
4 # Copyright 2015 - Steven Rostedt, Red Hat Inc.
5 # Copyright 2017 - Steven Rostedt, VMware, Inc.
9 # config-bisect.pl [options] good-config bad-config [good|bad]
23 # $ cd /path/to/linux/kernel
24 # $ config-bisect.pl /path/to/good/config /path/to/bad/config
34 # It then copies the result of its good config to /path/to/good/config.tmp
35 # and the bad config to /path/to/bad/config.tmp (just appends ".tmp" to the
43 # $ config-bisect.pl /path/to/good/config /path/to/bad/config good
[all …]
/openbmc/openbmc-test-automation/lib/
H A Dgen_misc.py15 # sys and os are needed to get the program dir path and program name.
50 Add a trailing slash to the directory path if it doesn't already have one
54 dir_path A directory path.
57 return os.path.normpath(dir_path) + os.path.sep
60 def makedirs(path, mode=0o777, quiet=None): argument
69 path The path containing the directories to be created.
74 gp.qprint_issuing("os.makedirs('" + path + "', mode=" + oct(mode) + ")")
76 os.makedirs(path, mode)
81 def rmtree(path, ignore_errors=False, onerror=None, quiet=None): argument
86 - It will print an "Issuing: shutil.rmtree" message.
[all …]
/openbmc/bmcweb/scripts/
H A Dgenerate_schema_enums.py8 SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
9 REDFISH_SCHEMA_DIR = os.path.realpath(
10 os.path.join(SCRIPT_DIR, "..", "redfish-core", "schema")
13 OUTFOLDER = os.path.realpath(
14 os.path.join(
15 SCRIPT_DIR, "..", "redfish-core", "include", "generated", "enums"
20 EDMX = "{http://docs.oasis-open.org/odata/ns/edmx}"
21 EDM = "{http://docs.oasis-open.org/odata/ns/edm}"
75 name = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name)
76 return re.sub("([a-z0-9])([A-Z])", r"\1_\2", name).lower()
[all …]
/openbmc/openbmc/poky/scripts/contrib/
H A Dconvert-overrides.py7 # SPDX-License-Identifier: GPL-2.0-only
28 parser.add_argument("--override", "-o", action="append", default=[], help="Add additional strings t…
29 parser.add_argument("--skip", "-s", action="append", default=[], help="Add additional string to ski…
30 parser.add_argument("--skip-ext", "-e", action="append", default=[], help="Additional file suffixes…
31 parser.add_argument("--package-vars", action="append", default=[], help="Additional variables to tr…
32 parser.add_argument("--image-vars", action="append", default=[], help="Additional variables to trea…
33 parser.add_argument("--short-override", action="append", default=[], help="Additional strings to tr…
34 parser.add_argument("path", nargs="+", help="Paths to convert")
42 vars += ["genericx86", "edgerouter", "beaglebone-yocto"]
44 vars += ["mipsarch", "x86-x32", "mips16e", "microblaze", "e5500-64b", "mipsisa32", "mipsisa64"]
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/classes/
H A Dsocorro-syms.bbclass11 # 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 "
35 breakpad_syms_dir = os.path.join(
36 package_dir, "usr", "share", "breakpad-syms")
37 socorro_syms_dir = os.path.join(
38 package_dir, "usr", "share", "socorro-syms")
39 if not os.path.exists(socorro_syms_dir):
42 breakpad_sym_file_path = os.path.join(breakpad_syms_dir, sym_file_name)
[all …]
/openbmc/linux/usr/include/
H A Dheaders_check.pl2 # SPDX-License-Identifier: GPL-2.0
51 sub check_include
58 $inc =~ s#asm/#asm-$arch/#;
68 sub check_declarations
85 sub check_config
87 if ($line =~ m/[^a-zA-Z0-9_]+CONFIG_([a-zA-Z0-9_]+)[^a-zA-Z0-9_]/) {
93 sub check_asm_types
95 if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
114 sub check_include_typesh
116 my $path = $_[0];
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs-128/
H A D0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch4 Subject: [PATCH] build: do not use autoconf's config.sub to 'canonicalize'
10 Upstream-Status: Inappropriate [oe-core specific]
11 Signed-off-by: Alexander Kanavin <alex@linutronix.de>
13 ---
14 build/moz.configure/init.configure | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 --- a/build/moz.configure/init.configure
19 @@ -647,24 +647,7 @@ def help_host_target(help, host, target)
22 config_sub = os.path.join(os.path.dirname(__file__), "..", "autoconf", "config.sub")
23 - # Config.sub doesn't like the *-windows-msvc/*-windows-gnu triplets, so
[all …]
/openbmc/linux/tools/perf/util/
H A Dsetup.py1 from os import getenv, path
3 from re import sub
7 # Check if CC has options, as is the case in yocto, where it uses CC="cc --sysroot..."
15 cc_is_clang = b"clang version" in Popen([cc, "-v"], stderr=PIPE).stderr.readline()
19 …cc_output = Popen([cc, cc_options + option, path.join(src_feature_tests, "test-hello.c") ], stderr…
26 vars[var] = sub("-specs=[^ ]+", "", vars[var])
27 if not clang_has_option("-mcet"):
28 vars[var] = sub("-mcet", "", vars[var])
29 if not clang_has_option("-fcf-protection"):
30 vars[var] = sub("-fcf-protection", "", vars[var])
[all …]
/openbmc/u-boot/test/overlay/
H A Dtest-fdt-overlay.dts1 // SPDX-License-Identifier: GPL-2.0+
7 /dts-v1/;
16 test-int-property = <43>;
25 test-str-property = "foobar";
34 test-str-property-2 = "foobar2";
43 new-node {
44 new-property;
49 /* Test that we add a new node (by path) */
51 target-path = "/";
54 new-node {
[all …]
/openbmc/linux/Documentation/networking/devlink/
H A Ddevlink-resource.rst1 .. SPDX-License-Identifier: GPL-2.0
15 ``/IPv4/fib-rules`` as resources to limit the number of IPv4 FIB entries and
22 current size and related sub resources. To access a sub resource, you
23 specify the path of the resource. For example ``/IPv4/fib`` is the id for
24 the ``fib`` sub-resource under the ``IPv4`` resource.
32 .. list-table:: List of Generic Resources
35 * - Name
36 - Description
37 * - ``physical_ports``
38 - A limited capacity of physical ports that the switch ASIC can support
[all …]
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dcs35l33.txt5 - compatible : "cirrus,cs35l33"
7 - reg : the I2C address of the device for I2C
9 - VA-supply, VP-supply : power supplies for the device,
15 - reset-gpios : gpio used to reset the amplifier
17 - interrupts : IRQ line info CS35L33.
18 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
21 - cirrus,boost-ctl : Booster voltage use to supply the amp. If the value is
26 - cirrus,ramp-rate : On power up, it affects the time from when the power
27 up sequence begins to the time the audio reaches a full-scale output.
28 On power down, it affects the time from when the power-down sequence
[all …]
/openbmc/phosphor-user-manager/
H A Djson_serializer.hpp4 #include <phosphor-logging/elog-errors.hpp>
5 #include <phosphor-logging/elog.hpp>
6 #include <phosphor-logging/lg2.hpp>
19 JsonSerializer(std::string path, nlohmann::json js = nlohmann::json()) : in JsonSerializer() argument
20 mfaConfPath(path), jsonData(std::move(js)) in JsonSerializer()
25 return std::views::split('/') | std::views::transform([](auto&& sub) { in stringSplitter() argument
26 return std::string(sub.begin(), sub.end()); in stringSplitter()
80 std::filesystem::path dir = in store()
81 std::filesystem::path(mfaConfPath).parent_path(); in store()

12345678910>>...35