| /OK3568_Linux_fs/yocto/poky/scripts/lib/devtool/ |
| H A D | __init__.py | 3 # Development tool - utility functions for plugins 7 # SPDX-License-Identifier: GPL-2.0-only 38 logger.debug('Executing command: "%s" using init path %s' % (cmd, init_path)) 44 if sys.stdout.isatty(): 46 cmd = 'script -e -q -c "%s" /dev/null' % cmd 52 """Run program with stdout shown on sys.stdout""" 58 cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, **options 61 reader = codecs.getreader('utf-8')(process.stdout) 66 sys.stdout.write(out) 67 sys.stdout.flush() [all …]
|
| H A D | standard.py | 1 # Development tool - standard commands plugin 3 # Copyright (C) 2014-2017 Intel Corporation 5 # SPDX-License-Identifier: GPL-2.0-only 28 override_branch_prefix = 'devtool-override-' 37 …e_oe.ArgumentUsageError('At least one of recipename, srctree, fetchuri or -f/--fetch must be speci… 45 raise DevtoolError('URI specified as positional argument as well as -f/--fetch') 51 raise DevtoolError('URI specified as positional argument as well as -f/--fetch') 58 elif os.path.isdir(args.recipename): 59 …logger.warning('Ambiguous argument "%s" - assuming you mean it to be the recipe name' % args.recip… 63 … raise DevtoolError('The -S/--srcrev option is only valid when fetching from an SCM repository') [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/contrib/ |
| H A D | image-manifest | 8 # SPDX-License-Identifier: GPL-2.0-only 21 scripts_path = os.path.dirname(__file__) 23 sys.path = sys.path + [lib_path] 26 logger = scriptutils.logger_create(os.path.basename(__file__)) 32 logger.error("Unable to find bitbake by searching parent directory of this script or PATH") 34 logger.debug('Using standard bitbake path %s' % bitbakepath) 61 if "-native" in pkg: 66 pkgdatafile = os.path.join(pkgdata_dir, 'runtime-reverse', pkg) 103 if os.path.exists(os.path.join(checkpth, '.git')): 105 checkpth = os.path.dirname(checkpth) [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/ |
| H A D | chosen.txt | 2 --------------- 11 kaslr-seed 12 ----------- 22 kaslr-seed = <0xfeedbeef 0xc0def00d>; 31 stdout-path 32 ----------- 35 with a stdout-path property under /chosen, as described in the Devicetree 40 stdout-path = "/serial@f00:115200"; 44 compatible = "vendor,some-uart"; 49 If the character ":" is present in the value, this terminates the path. [all …]
|
| /OK3568_Linux_fs/u-boot/tools/patman/ |
| H A D | checkpatch.py | 3 # SPDX-License-Identifier: GPL-2.0+ 18 os.path.join(os.getcwd(), '..', '..'), 19 os.path.join(top_level, 'tools'), 20 os.path.join(top_level, 'scripts'), 24 for path in try_list: 25 fname = os.path.join(path, 'checkpatch.pl') 26 if os.path.isfile(fname): 30 while not os.path.ismount(path): 31 fname = os.path.join(path, 'src', 'third_party', 'kernel', 'files', 33 if os.path.isfile(fname): [all …]
|
| /OK3568_Linux_fs/kernel/scripts/kconfig/tests/ |
| H A D | conftest.py | 1 # SPDX-License-Identifier: GPL-2.0 18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf')) 24 This class provides methods to run text-based interface of Kconfig 26 stdout, and stderr. It also provides methods to compare those 36 self._test_dir = os.path.dirname(str(request.fspath)) 41 """Run text-based Kconfig executable and save the result. 43 mode: input mode option (--oldaskconfig, --defconfig=<file> etc.) 62 shutil.copyfile(os.path.join(self._test_dir, dot_config), 63 os.path.join(temp_dir, '.config')) 67 stdout=subprocess.PIPE, [all …]
|
| /OK3568_Linux_fs/u-boot/tools/buildman/ |
| H A D | builderthread.py | 3 # SPDX-License-Identifier: GPL-2.0+ 15 RETURN_CODE_RETRY = -1 73 """This thread builds U-Boot for a particular board. 75 An input queue provides each new job. We run 'make' to build U-Boot 80 thread_num: Our thread number (0-n-1), used to decide on a 101 mrproper - can be called to clean source 102 config - called to configure for a board 103 build - the main make invocation - it does the build 118 the build and just return the previously-saved results. 121 commit_upto: Commit number to build (0...n-1) [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | legacy_serial.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <asm/pci-bridge.h> 17 #include <asm/ppc-pci.h> 41 {.type = "tsi-bridge",}, 44 {.compatible = "simple-bus",}, 45 {.compatible = "wrs,epld-localbus",}, 50 static int legacy_serial_console = -1; 58 offset = offset << p->regshift; in tsi_serial_in() 60 tmp = readl(p->membase + (UART_IIR & ~3)); in tsi_serial_in() 63 return readb(p->membase + offset); in tsi_serial_in() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/kunit/ |
| H A D | kunit_kernel.py | 1 # SPDX-License-Identifier: GPL-2.0 39 subprocess.check_output(['make', 'mrproper'], stderr=subprocess.STDOUT) 52 subprocess.check_output(command, stderr=subprocess.STDOUT) 68 stdout=subprocess.DEVNULL, 69 stderr=subprocess.STDOUT) 81 command = ['make', 'ARCH=um', '--jobs=' + str(jobs)] 89 stdout=subprocess.DEVNULL) 102 linux_bin = os.path.join(build_dir, 'linux') 106 stdout=output, 107 stderr=subprocess.STDOUT) [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/lib/recipetool/ |
| H A D | append.py | 1 # Recipe creation tool - append plugin 5 # SPDX-License-Identifier: GPL-2.0-only 38 …"""Find the recipe installing the specified target path, optionally limited to a select list of pa… 52 …e': '${sysconfdir}/hostname contents should be set by setting hostname:pn-base-files = "value" in … 61 for root, dirs, files in os.walk(os.path.join(pkgdata_dir, 'runtime')): 67 pkgdatafile = os.path.join(root, fn) 68 if pkglist and not os.path.exists(pkgdatafile): 83 … scriptval = line.split(': ', 1)[1].strip().encode('utf-8').decode('unicode_escape') 84 if 'update-alternatives --install %s ' % targetpath in scriptval: 111 logger.debug('source path: %s' % srcpath) [all …]
|
| H A D | create_kernel.py | 1 # Recipe creation tool - kernel support plugin 5 # SPDX-License-Identifier: GPL-2.0-only 28 if not os.path.exists(os.path.join(srctree, tell)): 34 …template = os.path.join(tinfoil.config_data.getVar('COREBASE'), 'meta-skeleton', 'recipes-kernel',… 37 while newlines[-1].startswith('#'): 38 del newlines[-1] 40 stdout, _ = bb.process.run('git rev-parse HEAD', cwd=srctree, shell=True) 42 stdout = None 43 if stdout: 44 return stdout.strip(), op, 0, True [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/lib/oe/package_manager/ipk/ |
| H A D | __init__.py | 2 # SPDX-License-Identifier: GPL-2.0-only 16 opkg_index_cmd = bb.utils.which(os.getenv('PATH'), "opkg-make-index") 22 if not os.path.exists(os.path.join(self.deploy_dir, "Packages")): 23 open(os.path.join(self.deploy_dir, "Packages"), "w").close() 33 pkgs_dir = os.path.join(self.deploy_dir, arch) 34 pkgs_file = os.path.join(pkgs_dir, "Packages") 36 if not os.path.isdir(pkgs_dir): 39 if not os.path.exists(pkgs_file): 42 index_cmds.add('%s --checksum md5 --checksum sha256 -r %s -p %s -m %s' % 67 self.opkg_cmd = bb.utils.which(os.getenv('PATH'), "opkg") [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/librepo/librepo/ |
| H A D | 0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch | 6 Upstream-Status: Inappropriate [oe-core specific] 7 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 8 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> 9 --- 10 librepo/python/CMakeLists.txt | 12 ++++++------ 11 1 file changed, 6 insertions(+), 6 deletions(-) 13 diff --git a/librepo/python/CMakeLists.txt b/librepo/python/CMakeLists.txt 15 --- a/librepo/python/CMakeLists.txt 17 @@ -16,12 +16,12 @@ SET (librepomodule_SRCS 21 -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c " [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/lib/oe/package_manager/deb/ |
| H A D | __init__.py | 2 # SPDX-License-Identifier: GPL-2.0-only 12 bb.utils.mkdirhier(os.path.join(self.apt_conf_dir, "lists", "partial")) 13 bb.utils.mkdirhier(os.path.join(self.apt_conf_dir, "apt.conf.d")) 14 bb.utils.mkdirhier(os.path.join(self.apt_conf_dir, "preferences.d")) 16 with open(os.path.join(self.apt_conf_dir, "preferences"), 19 with open(os.path.join(self.apt_conf_dir, "sources.list"), 24 with open(os.path.join(self.d.expand("${STAGING_ETCDIR_NATIVE}"), 32 self.apt_conf_dir = os.path.join(self.d.expand("${APTCONF_TARGET}"), 33 "apt-ftparchive") 34 self.apt_conf_file = os.path.join(self.apt_conf_dir, "apt.conf") [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/classes/ |
| H A D | chrpath.bbclass | 14 out = subprocess.check_output([cmd, "-l", fpath], universal_newlines=True) 28 if rpath.find("$ORIGIN") != -1: 31 rpath = os.path.normpath(rpath) 35 bb.warn("Skipping RPATH %s as is a standard search path for %s" % (rpath, fpath)) 40 …new_rpaths.append("$ORIGIN/" + os.path.relpath(rpath, os.path.dirname(fpath.replace(rootdir, "/"))… 51 subprocess.check_output([cmd, "-r", args, fpath], 54 … bb.fatal("chrpath command failed with exit code %d:\n%s\n%s" % (e.returncode, e.stdout, e.stderr)) 59 p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L', fpath],stdout=sub.PIPE,stderr=sub.PIPE) 61 # If returned successfully, process stdout for results 74 … newpath = "@loader_path/" + os.path.relpath(rpath, os.path.dirname(fpath.replace(rootdir, "/"))) [all …]
|
| H A D | patch.bbclass | 6 PATCHDEPENDENCY = "${PATCHTOOL}-native:do_populate_sysroot" 13 PATCHDEPENDENCY:append:class-target = " patch-replacement-native:do_populate_sysroot" 38 workdir = os.path.abspath(d.getVar('WORKDIR')) 39 testsrcdir = os.path.abspath(srcsubdir) 41 # Double-check that either workdir or S or some directory in-between is a git repository 44 if os.path.exists(os.path.join(testsrcdir, '.git')): 49 testsrcdir = os.path.dirname(testsrcdir) 53 patchdir = os.path.join(srcsubdir, 'patches') 54 if os.path.exists(patchdir): 68 if os.path.exists(srcsubdir): [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/core/target/ |
| H A D | ssh.py | 4 # SPDX-License-Identifier: MIT 22 filePath = os.path.join(os.getcwd(), 'remoteTarget.log') 23 fileHandler = logging.FileHandler(filePath, 'w', 'utf-8') 37 '-o', 'ServerAliveCountMax=2', 38 '-o', 'ServerAliveInterval=30', 39 '-o', 'UserKnownHostsFile=/dev/null', 40 '-o', 'StrictHostKeyChecking=no', 41 '-o', 'LogLevel=ERROR' 43 self.ssh = ['ssh', '-l', self.user ] + ssh_options 46 self.ssh = self.ssh + [ '-p', port ] [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/lib/oe/ |
| H A D | reproducible.py | 2 # SPDX-License-Identifier: GPL-2.0-only 14 # See https://reproducible-builds.org/specs/source-date-epoch/ 28 # with recipe-specific functionality to write the appropriate 49 # This works for well-kept repositories distributed via tarball. 64 filepath = os.path.join(sourcedir, file) 65 if os.path.isfile(filepath): 77 # This is the default git fetcher unpack path 79 gitpath = os.path.join(workdir, "git/.git") 80 if os.path.isdir(gitpath): 84 gitpath = os.path.join(sourcedir, ".git") [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/utils/ |
| H A D | sshcontrol.py | 4 # SPDX-License-Identifier: MIT 21 "stdout": subprocess.PIPE, 22 "stderr": subprocess.STDOUT, 25 "bufsize": -1, 57 if select.select([self.process.stdout], [], [], 5)[0] != []: 58 data = os.read(self.process.stdout.fileno(), 1024) 60 self.process.stdout.close() 63 data = data.decode("utf-8") 78 …lastline = "\nProcess killed - no output for %d seconds. Total running time: %d seconds." % (timeo… 108 '-o', 'UserKnownHostsFile=/dev/null', [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/toaster/orm/management/commands/ |
| H A D | lsupdates.py | 4 # Copyright (C) 2016-2017 Intel Corporation 6 # SPDX-License-Identifier: GPL-2.0-only 26 # Add path to bitbake modules for layerindexlib 33 path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.absp… variable 34 sys.path.insert(0, path) 47 os.system('setterm -cursor off') 49 for char in ["/", "-", "\\", "|"]: 50 sys.stdout.write("\r" + char) 51 sys.stdout.flush() 53 os.system('setterm -cursor on') [all …]
|
| /OK3568_Linux_fs/kernel/scripts/clang-tools/ |
| H A D | run-clang-tools.py | 2 # SPDX-License-Identifier: GPL-2.0 8 """A helper routine run clang-tidy and the clang static-analyzer on 21 """Set up and parses command-line arguments. 24 Has keys: [path, type] 26 usage = """Run clang-tidy or the clang static-analyzer on a 32 choices=["clang-tidy", "clang-analyzer"], 34 path_help = "Path to the compilation database to parse" 35 parser.add_argument("path", type=str, help=path_help) 48 # Disable all checks, then re-enable the ones we want 49 checks = "-checks=-*," [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/powermac/ |
| H A D | udbg_scc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2001-2005 PPC 64 Team, IBM Corp 40 return -1; in udbg_scc_getc_poll() 42 return -1; in udbg_scc_getc_poll() 52 return -1; in udbg_scc_getc() 69 struct device_node *stdout = NULL, *escc = NULL, *macio = NULL; in udbg_scc_init() local 71 const char *path; in udbg_scc_init() local 80 path = of_get_property(of_chosen, "linux,stdout-path", NULL); in udbg_scc_init() 81 if (path != NULL) in udbg_scc_init() 82 stdout = of_find_node_by_path(path); in udbg_scc_init() [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/lib/oe/package_manager/ |
| H A D | __init__.py | 2 # SPDX-License-Identifier: GPL-2.0-only 15 import oe.path 26 … result = subprocess.check_output(index_cmd, stderr=subprocess.STDOUT, shell=True).decode("utf-8") 57 filename = os.path.basename(filename) 101 "arc": ["--uint32-align=4", "--little-endian"], 102 "arceb": ["--uint32-align=4", "--big-endian"], 103 "arm": ["--uint32-align=4", "--little-endian"], 104 "armeb": ["--uint32-align=4", "--big-endian"], 105 "aarch64": ["--uint32-align=4", "--little-endian"], 106 "aarch64_be": ["--uint32-align=4", "--big-endian"], [all …]
|
| /OK3568_Linux_fs/u-boot/tools/binman/ |
| H A D | binman | 6 # SPDX-License-Identifier: GPL-2.0+ 19 our_path = os.path.dirname(os.path.realpath(__file__)) 21 sys.path.insert(0, os.path.join(our_path, dirname)) 24 sys.path.insert(0, 'scripts/dtc/pylibfdt') 26 # Also allow entry-type modules to be brought in from the etype directory. 27 sys.path.insert(0, os.path.join(our_path, 'etype')) 62 '--include "tools/binman/*.py" --omit "*test*,*binman.py" ' 63 'tools/binman/binman.py -t' % options.build_dir) 65 stdout = command.Output('coverage', 'report') 66 coverage = stdout.splitlines()[-1].split(' ')[-1] [all …]
|
| H A D | binman.py | 6 # SPDX-License-Identifier: GPL-2.0+ 19 our_path = os.path.dirname(os.path.realpath(__file__)) 21 sys.path.insert(0, os.path.join(our_path, dirname)) 24 sys.path.insert(0, 'scripts/dtc/pylibfdt') 26 # Also allow entry-type modules to be brought in from the etype directory. 27 sys.path.insert(0, os.path.join(our_path, 'etype')) 62 '--include "tools/binman/*.py" --omit "*test*,*binman.py" ' 63 'tools/binman/binman.py -t' % options.build_dir) 65 stdout = command.Output('coverage', 'report') 66 coverage = stdout.splitlines()[-1].split(' ')[-1] [all …]
|