Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
41
sources/poky/meta-selftest/lib/recipetool/bbpath.py
Normal file
41
sources/poky/meta-selftest/lib/recipetool/bbpath.py
Normal file
@@ -0,0 +1,41 @@
|
||||
import argparse
|
||||
|
||||
already_loaded = False
|
||||
register_count = 0
|
||||
|
||||
def plugin_name(filename):
|
||||
return os.path.splitext(os.path.basename(filename))[0]
|
||||
|
||||
def plugin_init(plugins):
|
||||
global already_loaded
|
||||
already_loaded = plugin_name(__file__) in (plugin_name(p.__name__) for p in plugins)
|
||||
|
||||
def print_name(opts):
|
||||
print (__file__)
|
||||
|
||||
def print_bbdir(opts):
|
||||
print (__file__.replace('/lib/recipetool/bbpath.py',''))
|
||||
|
||||
def print_registered(opts):
|
||||
#global kept_context
|
||||
#print(kept_context.loaded)
|
||||
print ("1")
|
||||
|
||||
def multiloaded(opts):
|
||||
global already_loaded
|
||||
print("yes" if already_loaded else "no")
|
||||
|
||||
def register_commands(subparsers):
|
||||
global register_count
|
||||
register_count += 1
|
||||
|
||||
def addparser(name, helptxt, func):
|
||||
parser = subparsers.add_parser(name, help=helptxt,
|
||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||
parser.set_defaults(func=func)
|
||||
return parser
|
||||
|
||||
addparser('pluginfile', 'Print the filename of this plugin', print_name)
|
||||
addparser('bbdir', 'Print the BBPATH directory of this plugin', print_bbdir)
|
||||
addparser('count', 'How many times have this plugin been registered.', print_registered)
|
||||
addparser('multiloaded', 'How many times have this plugin been initialized', multiloaded)
|
||||
Reference in New Issue
Block a user