| /openbmc/openbmc/poky/bitbake/lib/bb/tests/ |
| H A D | event.py | 20 import bb 21 import bb.event 22 from bb.msg import BBLogFormatter 36 self.event_calls.append(bb.event.getName(event)) 76 importlib.reload(bb.event) 88 bb.event.set_class_handlers(test_handlers) 90 bb.event.get_class_handlers()) 95 bb.event.set_handlers(test_handlers) 97 bb.event.get_handlers()) 103 bb.event.clean_class_handlers()) [all …]
|
| H A D | parse.py | 12 import bb 17 import bb.parse 18 import bb.data 19 import bb.siggen 35 self.d = bb.data.init() 36 bb.parse.siggen = bb.siggen.init(self.d) 51 d = bb.parse.handle(f.name, self.d)[''] 59 with self.assertRaises(bb.parse.ParseError): 60 d = bb.parse.handle(f.name, self.d)[''] 73 d = bb.parse.handle(f.name, self.d)[''] [all …]
|
| H A D | utils.py | 10 import bb 18 result = bb.utils.vercmp_string('1', '2') 20 result = bb.utils.vercmp_string('2', '1') 22 result = bb.utils.vercmp_string('1', '1.0') 24 result = bb.utils.vercmp_string('1', '1.1') 26 result = bb.utils.vercmp_string('1.1', '1_p2') 28 result = bb.utils.vercmp_string('1.0', '1.0+1.1-beta1') 30 result = bb.utils.vercmp_string('1.1', '1.0+1.1-beta1') 32 result = bb.utils.vercmp_string('1a', '1a1') 34 result = bb.utils.vercmp_string('1a1', '1a') [all …]
|
| /openbmc/openbmc/poky/bitbake/lib/bb/ui/ |
| H A D | toasterui.py | 17 import bb 21 from bb.ui import uihelper 22 from bb.ui.buildinfohelper import BuildInfoHelper 24 import bb.msg 32 featureSet = [bb.cooker.CookerFeatures.HOB_EXTRA_CACHES, bb.cooker.CookerFeatures.BASEDATASTORE_TRA… 70 logformat = bb.msg.BBLogFormatter(format_str) 73 bb.msg.addDefaultlogFilter(build_log) 146 formatter = bb.msg.BBLogFormatter(format_str) 147 bb.msg.addDefaultlogFilter(console) 151 llevel, debug_domains = bb.msg.constructLogOptions() [all …]
|
| H A D | teamcity.py | 28 import bb 29 import bb.build 30 import bb.command 31 import bb.cooker 32 import bb.event 33 import bb.runqueue 34 from bb.ui import uihelper 105 if record.levelno in [bb.msg.BBLogFormatter.ERROR, bb.msg.BBLogFormatter.CRITICAL]: 113 if record.levelno == bb.msg.BBLogFormatter.PLAIN: 115 elif record.levelno == bb.msg.BBLogFormatter.WARNING: [all …]
|
| H A D | knotty.py | 18 import bb.msg 26 from bb.ui import uihelper 27 import bb.build 28 import bb.command 29 import bb.cooker 30 import bb.event 31 import bb.runqueue 32 import bb.utils 34 featureSet = [bb.cooker.CookerFeatures.SEND_SANITYEVENTS, bb.cooker.CookerFeatures.BASEDATASTORE_TR… 124 …if record.levelno == bb.msg.BBLogFormatter.NOTE and (record.msg.startswith("Running") or record.ms… [all …]
|
| /openbmc/openbmc/poky/meta/lib/oe/ |
| H A D | buildcfg.py | 4 import bb.process 19 rev, _ = bb.process.run('git rev-parse --abbrev-ref HEAD', cwd=path) 20 except (bb.process.ExecutionError, bb.process.NotFoundError): 26 rev, _ = bb.process.run('git rev-parse HEAD', cwd=path) 27 except (bb.process.ExecutionError, bb.process.NotFoundError): 33 toplevel, _ = bb.process.run('git rev-parse --show-toplevel', cwd=path) 34 except (bb.process.ExecutionError, bb.process.NotFoundError): 40 remotes_list, _ = bb.process.run('git remote', cwd=path) 42 except (bb.process.ExecutionError, bb.process.NotFoundError): 48 uri, _ = bb.process.run('git remote get-url {remote}'.format(remote=remote), cwd=path) [all …]
|
| H A D | rootfs.py | 82 bb.fatal(msg) 84 bb.warn(msg) 93 if bb.utils.contains("IMAGE_FEATURES", "package-management", 114 bb.note(" Renaming the original rootfs...") 119 bb.utils.rename(self.image_rootfs, self.image_rootfs + '-orig') 121 bb.note(" Creating debug rootfs...") 122 bb.utils.mkdirhier(self.image_rootfs) 124 bb.note(" Copying back package database...") 126 bb.utils.mkdirhier(self.image_rootfs + os.path.dirname(path)) 137 bb.utils.mkdirhier(os.path.dirname(dst)) [all …]
|
| H A D | reproducible.py | 8 import bb 74 bb.debug(1, "SOURCE_DATE_EPOCH taken from: %s" % newest_file) 100 bb.warn("Failed to find a git repository in UNPACKDIR: %s" % unpackdir) 115 bb.debug(1, "%s does not have a valid HEAD: %s" % (gitpath, p.stdout.decode('utf-8'))) 118 bb.debug(1, "git repository: %s" % gitpath) 148 bb.debug(1, "Newest file found: %s" % newest_file) 152 bb.debug(1, "No tarball or git repo found to determine SOURCE_DATE_EPOCH") 155 bb.debug(1, "Using SOURCE_DATE_EPOCH_FALLBACK") 172 bb.debug(1, "Epoch file changed from %s to %s" % (efile, epochfile)) 181 … bb.warn("SOURCE_DATE_EPOCH value '%s' is invalid. Reverting to SOURCE_DATE_EPOCH_FALLBACK" % s) [all …]
|
| /openbmc/qemu/contrib/plugins/ |
| H A D | drcov.c | 71 bb_entry_t *bb = (bb_entry_t *)data; in printf_el() local 72 if (bb->exec) { in printf_el() 73 printf_char_array32(bb->start); in printf_el() 74 printf_char_array16(bb->size); in printf_el() 75 printf_char_array16(bb->mod_id); in printf_el() 77 g_free(bb); in printf_el() 83 bb_entry_t *bb = (bb_entry_t *)data; in count_block() local 84 if (bb->exec) { in count_block() 115 bb_entry_t *bb = (bb_entry_t *) udata; in vcpu_tb_exec() local 118 bb->exec = true; in vcpu_tb_exec() [all …]
|
| H A D | bbv.c | 53 static qemu_plugin_u64 bb_count_u64(Bb *bb) in bb_count_u64() argument 55 return qemu_plugin_scoreboard_u64(bb->count); in bb_count_u64() 85 Bb *bb = value; in vcpu_interval_exec() local 86 uint64_t bb_count = qemu_plugin_u64_get(bb_count_u64(bb), vcpu_index); in vcpu_interval_exec() 92 fprintf(vcpu->file, ":%u:%" PRIu64 " ", bb->index, bb_count); in vcpu_interval_exec() 93 qemu_plugin_u64_set(bb_count_u64(bb), vcpu_index, 0); in vcpu_interval_exec() 104 Bb *bb; in vcpu_tb_trans() local 107 bb = g_hash_table_lookup(bbs, &vaddr); in vcpu_tb_trans() 108 if (!bb) { in vcpu_tb_trans() 109 bb = g_new(Bb, 1); in vcpu_tb_trans() [all …]
|
| /openbmc/openbmc/poky/meta-selftest/classes/ |
| H A D | test_events.bbclass | 2 bb.note("Test for bb.event.BuildStarted") 5 bb.note("Test for bb.event.BuildCompleted") 8 bb.note("Test for bb.event.InvalidEvent") 12 test1_eventhandler[eventmask] = "bb.event.BuildStarted" 14 test2_eventhandler[eventmask] = "bb.event.BuildCompleted" 16 test3_eventhandler[eventmask] = "bb.event.InvalidEvent"
|
| /openbmc/openbmc/poky/meta/lib/oe/package_manager/ |
| H A D | common_deb_ipk.py | 12 import bb 38 bb.fatal("Unable to list available packages. Command '%s' " 41 bb.note("Command '%s' returned stderr: %s" % (cmd, proc.stderr)) 53 bb.fatal("Unable to get information for package '%s' while " 56 ar_cmd = bb.utils.which(os.getenv("PATH"), "ar") 57 tar_cmd = bb.utils.which(os.getenv("PATH"), "tar") 61 bb.fatal("Unable to extract package for '%s'." 73 bb.fatal("Unable to extract %s package. Failed to identify " 80 bb.utils.remove(tmp_dir, recurse=True) 81 bb.fatal("Unable to extract %s package. Command '%s' " [all …]
|
| H A D | __init__.py | 14 import bb 27 bb.note("Executing '%s' ..." % index_cmd) 30 bb.note(result) 94 …bb.fatal("""Postinstall scriptlets of %s have failed. If the intention is to defer them to first b… 131 bb.error("locale_arch_options not found for target_arch=" + target_arch) 132 bb.fatal("unknown arch:" + target_arch + " for locale_arch_options") 177 bb.note("Initializing intercept dir for %s" % self.target_rootfs) 191 … bb.debug(1, 'Collected intercepts:\n%s' % ''.join(' %s\n' % i for i in postinst_intercepts)) 192 bb.utils.remove(self.intercepts_dir, True) 193 bb.utils.mkdirhier(self.intercepts_dir) [all …]
|
| /openbmc/openbmc/poky/bitbake/lib/bb/ |
| H A D | cookerdata.py | 19 import bb 20 from bb import data 21 import bb.parse 71 options['default_loglevel'] = bb.msg.loggerDefaultLogLevel 72 options['debug_domains'] = bb.msg.loggerDefaultDomains 122 self.debug_domains = bb.msg.loggerDefaultDomains 123 self.default_loglevel = bb.msg.loggerDefaultLogLevel 175 raise bb.BBHandledException() 180 return bb.parse.handle(fn, data, include, baseconfig=True) 184 bb.parse.BBHandler.inherit(bbclass, "configuration INHERITs", 0, data) [all …]
|
| H A D | main.py | 22 import bb 23 from bb import event 24 import bb.msg 25 from bb import cooker 26 from bb import ui 27 from bb import server 28 from bb import cookerdata 30 import bb.server.process 31 import bb.server.xmlrpcclient 38 class BBMainFatal(bb.BBHandledException): [all …]
|
| H A D | cooker.py | 20 import bb, bb.command 21 from bb import utils, data, parse, event, cache, providers, taskdata, runqueue, build 36 class NoSpecificMatch(bb.BBHandledException): 46 class CollectionError(bb.BBHandledException): 146 self.configuration = bb.cookerdata.CookerConfiguration() 155 bb.debug(1, "BBCooker starting %s" % time.time()) 162 bb.parse.clear_cache() 163 bb.parse.BBHandler.cached_statements = {} 182 self.command = bb.command.Command(self, self.process_server) 191 bb.debug(1, "BBCooker startup complete %s" % time.time()) [all …]
|
| /openbmc/openbmc/poky/meta/classes/ |
| H A D | prexport.bbclass | 16 import bb.event 17 if not e.data or bb.data.inherits_class('native', e.data) or \ 18 bb.data.inherits_class('crosssdk', e.data): 21 if isinstance(e, bb.event.RecipeParsed): 28 bb.fatal("prexport_handler: export failed!") 31 bb.note("prexport_handler: No AUTOPR values found for %s" % ver) 36 srcpv = bb.fetch2.get_srcrev(e.data) 41 bb.fatal("prexport_handler: export failed!") 44 elif isinstance(e, bb.event.ParseStarted): 45 import bb.utils [all …]
|
| H A D | icecc.bbclass | 21 # If ICECC_PATH is not set in local.conf then the class will try to locate it using 'bb.utils.which' 25 # or the default one provided by icecc-create-env_0.1.bb will be used. 116 def get_cross_kernel_cc(bb,d): 117 if not icecc_is_kernel(bb, d): 132 return d.getVar('ICECC_PATH') or bb.utils.which(os.getenv("PATH"), "icecc") 134 def use_icecc(bb,d): 140 if icecc_is_allarch(bb, d): 143 if icecc_is_cross_canadian(bb, d): 158 if bb.data.inherits_class(bbclass, d): 159 bb.debug(1, "%s: bbclass %s found in disable, disable icecc" % (pn, bbclass)) [all …]
|
| /openbmc/openbmc/meta-arm/meta-arm/recipes-security/optee/ |
| H A D | optee-os-ts.inc | 16 DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-its', \ 18 SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-its', \ 22 DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-storage', \ 24 SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-storage', \ 28 DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-crypto', \ 30 SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-crypto', \ 34 DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-attestation', \ 36 SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-attestation', \ 40 DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-env-test', \ 42 SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-env-test', \ [all …]
|
| /openbmc/openbmc/poky/meta/conf/machine/include/microblaze/ |
| H A D | arch-microblaze.inc | 5 MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "microblaze", "microblaze:", "", d)}" 10 MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "64-bit", "microblaze64:", "", d)}" 16 MBPKGARCH_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "eb", "el", d)}" 18 TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endi… 31 TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "barrel-shift", " -mxl-barrel-shift", " -mno-… 32 TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "pattern-compare", " -mxl-pattern-compare", "… 33 TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "frequency-optimized", " -mxl-frequency", "",… 34 TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "64-bit", " -m64", "", d)}" 37 TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "reorder", \ 38 bb.utils.contains("TUNE_FEATURES", "v8.30", \ [all …]
|
| /openbmc/openbmc/poky/meta/recipes-core/packagegroups/ |
| H A D | packagegroup-base.bb | 16 ${@bb.utils.contains("MACHINE_FEATURES", "acpi", "packagegroup-base-acpi", "",d)} \ 17 ${@bb.utils.contains("MACHINE_FEATURES", "alsa", "packagegroup-base-alsa", "", d)} \ 18 ${@bb.utils.contains("MACHINE_FEATURES", "ext2", "packagegroup-base-ext2", "", d)} \ 19 ${@bb.utils.contains("MACHINE_FEATURES", "vfat", "packagegroup-base-vfat", "", d)} \ 20 … ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "packagegroup-base-keyboard", "", d)} \ 21 ${@bb.utils.contains("MACHINE_FEATURES", "pci", "packagegroup-base-pci", "",d)} \ 22 ${@bb.utils.contains("MACHINE_FEATURES", "pcmcia", "packagegroup-base-pcmcia", "", d)} \ 23 ${@bb.utils.contains("MACHINE_FEATURES", "phone", "packagegroup-base-phone", "", d)} \ 24 ${@bb.utils.contains("MACHINE_FEATURES", "serial", "packagegroup-base-serial", "", d)} \ 25 … ${@bb.utils.contains("MACHINE_FEATURES", "usbgadget", "packagegroup-base-usbgadget", "", d)} \ [all …]
|
| /openbmc/openbmc/poky/scripts/lib/recipetool/ |
| H A D | create_npm.py | 14 import bb 15 from bb.fetch2.npm import NpmEnvironment 16 from bb.fetch2.npm import npm_package 17 from bb.fetch2.npmsw import foreach_dependencies 44 bb.utils.edit_metadata(lines, ["SRC_URI"], _handle_registry) 56 except bb.providers.NoProvider: 57 bb.error("Nothing provides 'nodejs-native' which is required for the build") 58 bb.note("You will likely need to add a layer that provides nodejs") 68 bb.error("Failed to add 'npm' to sysroot") 96 bb.utils.remove(os.path.join(srctree, "node_modules"), recurse=True) [all …]
|
| /openbmc/openbmc/poky/meta/lib/patchtest/selftest/files/ |
| H A D | TestMbox.test_series_merge_on_head.1.skip | 10 .../{selftest-hello_1.0.bb => selftest-hello_1.1.bb} | 3 ++- 12 …rename meta-selftest/recipes-test/selftest-hello/{selftest-hello_1.0.bb => selftest-hello_1.1.bb} … 14 …es-test/selftest-hello/selftest-hello_1.0.bb b/meta-selftest/recipes-test/selftest-hello/selftest-… 16 rename from meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb 17 rename to meta-selftest/recipes-test/selftest-hello/selftest-hello_1.1.bb 19 --- a/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb 20 +++ b/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.1.bb
|
| /openbmc/openbmc/meta-phosphor/recipes-phosphor/sensors/ |
| H A D | dbus-sensors_git.bb | 50 SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'adcsensor', \ 53 SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'cablemonitor', \ 56 SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'exitairtempsensor', \ 59 SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'external', \ 62 SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'fansensor', \ 65 SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'hwmontempsensor', \ 68 SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'intelcpusensor', \ 71 SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'intrusionsensor', \ 74 SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'ipmbsensor', \ 77 SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'leakdetector', \ [all …]
|