Lines Matching +full:openpower +full:- +full:libhei

189             if path[-1] == name:
199 from_name = path[-1]
204 Return post-order list of node names.
217 Print pre-order node names with indentation denoting node depth level.
276 cmd = ["make", "-n", target]
287 "-j",
290 "-l",
293 "-O",
309 check_call_cmd("sudo", "-n", "--", "ldconfig")
387 "-j",
389 "--enable=style,performance,portability,missingInclude",
390 "--inline-suppr",
391 "--suppress=useStlAlgorithm",
392 "--suppress=unusedStructMember",
393 "--suppress=postfixOperator",
394 "--suppress=unreadVariable",
395 "--suppress=knownConditionTrueFalse",
396 "--library=googletest",
397 "--project=build/compile_commands.json",
398 f"--cppcheck-build-dir={cpp_dir}",
408 src = "unit-test-vg.c"
409 exe = "./unit-test-vg"
428 ["gcc", "-O2", "-o", exe, src], stdout=devnull, stderr=devnull
431 ["valgrind", "--error-exitcode=99", exe],
448 src = "unit-test-sanitize.c"
449 exe = "./unit-test-sanitize"
457 "-O2",
458 "-fsanitize=address",
459 "-fsanitize=undefined",
460 "-o",
469 # TODO - Sanitizer not working on ppc64le
470 # https://github.com/openbmc/openbmc-build-scripts/issues/31
487 via `make check-valgrind`. If the package does not have valgrind testing
497 if not make_target_exists("check-valgrind"):
501 cmd = make_parallel + ["check-valgrind"]
506 if re.search("test-suite-[a-z]+.log", f) is None:
515 via `make check-code-coverage`. If the package does not have code coverage
518 if not make_target_exists("check-code-coverage"):
523 cmd = make_parallel + ["check-code-coverage"]
625 Some analysis tools such as scan-build need injection into the build
661 autoconf_cmdline = ["autoconf", "-Wno-undefined", "-"]
668 document = contents.encode("utf-8")
678 for match in re.compile(pattern).finditer(stdout.decode("utf-8")):
699 return "--" + ("enable" if enabled else "disable") + "-" + flag
704 self._configure_feature("silent-rules", False),
711 self._configure_feature("code-coverage", False),
728 check_call_cmd("sudo", "-n", "--", *(make_parallel + ["install"]))
729 check_call_cmd("sudo", "-n", "--", "ldconfig")
741 if "test-suite.log" not in files:
743 check_call_cmd("cat", os.path.join(root, "test-suite.log"))
765 "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
766 "-DCMAKE_CXX_FLAGS='-DBOOST_USE_VALGRIND'",
767 "-DITESTS=ON",
773 "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
774 "-DCMAKE_CXX_FLAGS='-DBOOST_USE_VALGRIND'",
781 "--build",
783 "--",
784 "-j",
789 check_call_cmd("sudo", "cmake", "--install", ".")
790 check_call_cmd("sudo", "-n", "--", "ldconfig")
797 if os.path.isfile(".clang-tidy"):
799 # clang-tidy needs to run on a clang-specific build
802 "-DCMAKE_C_COMPILER=clang",
803 "-DCMAKE_CXX_COMPILER=clang++",
804 "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
805 "-H.",
806 "-B" + build_dir,
810 "run-clang-tidy", "-header-filter=.*", "-p", build_dir
822 ["meson", "introspect", "--projectinfo", path],
824 ).decode("utf-8")
917 return "-D{}={}".format(key, str_val)
927 "-Db_colorout=never",
928 "-Dwerror=true",
929 "-Dwarning_level=3",
930 "-Dcpp_args='-DBOOST_USE_VALGRIND'",
933 # -Ddebug=true -Doptimization=g is helpful for abi-dumper but isn't a combination that
935 meson_flags.append("-Ddebug=true")
936 meson_flags.append("-Doptimization=g")
938 meson_flags.append("--buildtype=debugoptimized")
965 "meson", "setup", "--reconfigure", "build", *meson_flags
974 check_call_cmd("ninja", "-C", "build")
977 check_call_cmd("sudo", "-n", "--", "ninja", "-C", "build", "install")
978 check_call_cmd("sudo", "-n", "--", "ldconfig")
985 # project-under-test (otherwise an upstream dependency could fail
990 test_args = ("--repeat", str(args.repeat), "-C", "build")
991 check_call_cmd("meson", "test", "--print-errorlogs", *test_args)
1009 "-C",
1011 "--setup",
1019 output = output.decode("utf-8")
1036 "-t",
1038 "-C",
1040 "--print-errorlogs",
1041 "--setup",
1048 "-t",
1050 "-C",
1052 "--print-errorlogs",
1053 "--wrapper",
1054 "valgrind --error-exitcode=1",
1062 # Run clang-tidy only if the project has a configuration
1063 if os.path.isfile(".clang-tidy"):
1067 # Clang-20 currently has some issue with libstdcpp's
1069 # Adding -fno-builtin-std-forward_like causes them to go away.
1070 clang_env["CXXFLAGS"] = "-fno-builtin-std-forward_like"
1075 if not os.path.isfile(".openbmc-no-clang"):
1077 "meson", "compile", "-C", build_dir, env=clang_env
1082 "-C",
1084 "clang-tidy-fix",
1090 "-C",
1092 "--no-pager",
1099 check_call_cmd("ninja", "-C", "build", "scan-build")
1108 meson_flags.append("-Db_sanitize=address,undefined")
1111 "meson", "setup", "--reconfigure", "build", *meson_flags
1119 "-C",
1121 "--print-errorlogs",
1122 "--logbase",
1123 "testlog-ubasan",
1127 # '-Db_sanitize=memory')
1128 # check_call_cmd('meson', 'test', '-C', 'build'
1129 # '--logbase', 'testlog-msan')
1132 "-Db_sanitize=address,undefined", "-Db_sanitize=none"
1138 "meson", "setup", "--reconfigure", "build", *meson_flags
1147 check_call_cmd("meson", "configure", "build", "-Db_coverage=true")
1152 check_call_cmd("ninja", "-C", "build", "coverage-html")
1154 check_call_cmd("meson", "configure", "build", "-Db_coverage=false")
1169 # identify this. Add to our unit-test checks so that we don't
1182 # identify this. Add to our unit-test checks so that we don't
1271 if os.path.split(root)[-1] == "subprojects":
1273 subproject = ".".join(f.split(".")[0:-1])
1286 "phosphor-logging": [
1287 "--enable-metadata-processing",
1288 "--enable-openpower-pel-extension",
1289 "YAML_DIR=/usr/local/share/phosphor-dbus-yaml/yaml",
1295 "phosphor-dbus-interfaces": [
1296 "-Ddata_com_ibm=true",
1297 "-Ddata_org_open_power=true",
1299 "phosphor-logging": ["-Dopenpower-pel-extension=enabled"],
1304 "AC_CHECK_LIB": {"mapper": "phosphor-objmgr"},
1306 "host-ipmid": "phosphor-host-ipmid",
1307 "blobs-ipmid": "phosphor-ipmi-blobs",
1312 "phosphor-logging/log.hpp": "phosphor-logging",
1316 "phosphor-dbus-interfaces": "phosphor-dbus-interfaces",
1317 "libipmid": "phosphor-host-ipmid",
1318 "libipmid-host": "phosphor-host-ipmid",
1323 "phosphor-logging": "phosphor-logging",
1324 "phosphor-snmp": "phosphor-snmp",
1325 "ipmiblob": "ipmi-blob-tool",
1326 "hei": "openpower-libhei",
1327 "phosphor-ipmi-blobs": "phosphor-ipmi-blobs",
1328 "libcr51sign": "google-misc",
1341 DEPENDENCIES_REGEX = {"phosphor-logging": r"\S+-dbus-interfaces$"}
1346 "-w",
1347 "--workspace",
1353 "-p",
1354 "--package",
1360 "-t",
1361 "--test-only",
1369 "--no-cppcheck",
1378 "--integration-tests",
1386 "--no-integration-tests",
1393 "-v",
1394 "--verbose",
1399 "-r", "--repeat", help="Repeat tests N times", type=int, default=1
1402 "-b",
1403 "--branch",
1410 "-n",
1411 "--noformat",
1439 # Run format-code.sh, which will in turn call any repo-level formatters.
1443 WORKSPACE, "openbmc-build-scripts", "scripts", "format-code.sh"
1450 "git", "-C", CODE_SCAN_DIR, "--no-pager", "diff", "--exit-code"
1491 ci_scripts = find_file(["run-ci.sh", "run-ci"], CODE_SCAN_DIR)