/openbmc/openbmc/poky/scripts/lib/recipetool/ |
H A D | create_kernel.py | 35 def handle_var(varname, origvalue, op, newlines): argument 37 while newlines[-1].startswith('#'): 38 del newlines[-1] 73 while newlines[-1].startswith('#'): 74 del newlines[-1] 76 while newlines[-1].startswith('#'): 77 del newlines[-1] 83 (_, newlines) = bb.utils.edit_metadata(f, varlist, handle_var) 84 lines_before[:] = [line.rstrip('\n') for line in newlines]
|
H A D | create_npm.py | 38 def _handle_registry(varname, origvalue, op, newlines): argument 261 def _handle_srcuri(varname, origvalue, op, newlines): argument 270 (_, newlines) = bb.utils.edit_metadata(lines_before, ["SRC_URI"], _handle_srcuri) 271 lines_before[:] = [line.rstrip('\n') for line in newlines]
|
H A D | create_go.py | 726 def __update_lines_before(self, updated, newlines, lines_before): argument 729 for line in newlines: 738 def varfunc(varname, origvalue, op, newlines): argument 759 updated, newlines = bb.utils.edit_metadata( 761 return self.__update_lines_before(updated, newlines, lines_before) 765 def varfunc(varname, origvalue, op, newlines): argument 772 updated, newlines = bb.utils.edit_metadata(lines_before, ['SRC_URI'], varfunc) 773 return self.__update_lines_before(updated, newlines, lines_before)
|
H A D | append.py | 375 newlines = f.readlines() 376 diff = difflib.unified_diff(oldlines, newlines, appendfile, newappendfile)
|
/openbmc/openbmc/poky/scripts/lib/devtool/ |
H A D | build.py | 23 def varfunc(varname, origvalue, op, newlines): argument 29 (updated, newlines) = bb.utils.edit_metadata(f, values, varfunc) 33 newlines.append('%s = "%s"' % (item, values[item])) 37 f.writelines(newlines)
|
H A D | __init__.py | 283 def get_bbclassextend_varfunc(varname, origvalue, op, newlines): argument 353 def get_unlockedsigs_varfunc(varname, origvalue, op, newlines): argument
|
/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | utils.py | 1276 newlines = [] 1282 prerun_newlines = newlines[:] 1284 (newvalue, newop, indent, minbreak) = varfunc(in_var, full_value, op, newlines) 1285 changed = (prerun_newlines != newlines) 1307 … newlines.append('%s {\n%s%s\n}\n' % (varset_new, indentspc, ('\n%s' % indentspc).join(newvalue))) 1313 newlines.append('%s {%s}\n' % (varset_new, newvalue)) 1319 newlines.append('%s ""\n' % varset_new) 1323 newlines.append('%s "%s"\n' % (varset_new, newvalue[0])) 1325 newlines.append('%s "%s \\\n' % (varset_new, newvalue[0])) 1327 newlines.append('%s%s \\\n' % (indentspc, item)) [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/tests/ |
H A D | utils.py | 174 def handle_file(varname, origvalue, op, newlines): argument 384 def handle_var(varname, origvalue, op, newlines): argument 386 newlines.append('# A new comment\n') 388 newlines.append('NEWVAR = "value"\n') 389 newlines.append('\n') 398 … (updated, newlines) = bb.utils.edit_metadata(self._origfile.splitlines(True), varlist, handle_var) 400 self.assertEqual(newlines, newfile5.splitlines(True)) 412 def handle_var(varname, origvalue, op, newlines): argument
|
/openbmc/u-boot/lib/ |
H A D | display_options.c | 14 char *display_options_get_banner_priv(bool newlines, const char *build_tag, in display_options_get_banner_priv() argument 19 len = snprintf(buf, size, "%s%s", newlines ? "\n\n" : "", in display_options_get_banner_priv() 35 char *display_options_get_banner(bool newlines, char *buf, int size) in display_options_get_banner() argument 37 return display_options_get_banner_priv(newlines, BUILD_TAG, buf, size); in display_options_get_banner()
|
/openbmc/u-boot/include/ |
H A D | display_options.h | 71 char *display_options_get_banner(bool newlines, char *buf, int size); 74 char *display_options_get_banner_priv(bool newlines, const char *build_tag,
|
/openbmc/openbmc/poky/meta/lib/bbconfigbuild/ |
H A D | configfragments.py | 102 def enable_helper(varname, origvalue, op, newlines): argument 120 def disable_helper(varname, origvalue, op, newlines): argument 135 def disable_all_helper(varname, origvalue, op, newlines): argument
|
/openbmc/openbmc-test-automation/bin/plug_ins/Stop/ |
H A D | cp_stop_check | 215 pel_stop_list = file_to_list(pel_stop_file_path, newlines=0, comments=0) 223 pel_all_list = file_to_list(pel_txt_file_path, newlines=0, comments=0)
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | recipeutils.py | 235 def patch_recipe_varfunc(varname, origvalue, op, newlines): argument 241 outputvalue(k, newlines, rewindcomments=True) 246 outputvalue(varname, newlines) 842 def appendfile_varfunc(varname, origvalue, op, newlines): argument 911 (updated, newlines) = bb.utils.edit_metadata(f, varnames, appendfile_varfunc) 916 newlines = [] 921 newlines.append('%s {\n %s\n}\n' % (line[0], '\n '.join(line[2]))) 923 newlines.append('%s %s "%s"\n\n' % line) 928 f.writelines(newlines)
|
/openbmc/qemu/scripts/coccinelle/ |
H A D | err-bad-newline.cocci | 1 // Error messages should not contain newlines. This script finds
|
/openbmc/openbmc/poky/meta/classes-recipe/ |
H A D | cargo_common.bbclass | 191 newlines = [] 195 newlines.append(line) 198 f.writelines(newlines)
|
/openbmc/linux/tools/scripts/ |
H A D | utilities.mak | 14 # newlines; the default is a bizarre string. 46 # Use this to escape newlines from within a shell call; 62 # Use this to unescape newlines from within a shell call;
|
/openbmc/linux/scripts/kconfig/tests/preprocess/builtin_func/ |
H A D | Kconfig | 21 # but any trailing newlines are deleted.
|
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-supervisor/ |
H A D | supervisord.conf | 23 ; newlines). It can also contain wildcards. The filenames are
|
/openbmc/qemu/scripts/ci/ |
H A D | gitlab-ci-section | 16 # The description can be any printable text without newlines; this is
|
/openbmc/openbmc-test-automation/lib/ |
H A D | gen_misc.py | 323 def file_to_list(file_path, newlines=0, comments=1, trim=0): argument 342 if not newlines:
|
H A D | boot_data.py | 156 boot_list = gm.file_to_list(file_path, newlines=0, comments=0, trim=1)
|
H A D | gen_plug_in_utils.py | 534 save_file_path, newlines=0, comments=0, trim=1
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | devtool.py | 1513 newlines = f.readlines() 1518 self.assertEqual(desiredlines[5:], newlines[5:]) 1540 newlines = f.readlines() 1545 self.assertEqual(desiredlines[5:], newlines[5:]) 1928 newlines = f.readlines() 1929 self.assertEqual(desiredlines, newlines) 1964 newlines = f.readlines() 1965 self.assertEqual(desiredlines, newlines) 1993 newlines = f.readlines() 1994 self.assertEqual(desiredlines, newlines) [all …]
|
/openbmc/linux/Documentation/driver-api/serial/ |
H A D | driver.rst | 32 character by character write, translating newlines to CRLF sequences.
|
/openbmc/qemu/scripts/ |
H A D | checkpatch.pl | 2101 my @newlines = ($c =~ /\n/gs); 2102 my $cond_lines = 1 + $#newlines; 2640 my @newlines = ($c =~ /\n/gs); 2641 my $cond_lines = 1 + $#newlines;
|