Home
last modified time | relevance | path

Searched refs:newlines (Results 1 – 25 of 44) sorted by relevance

12

/openbmc/openbmc/poky/scripts/lib/recipetool/
H A Dcreate_kernel.py35 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 Dcreate_npm.py38 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 Dcreate_go.py726 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 Dappend.py375 newlines = f.readlines()
376 diff = difflib.unified_diff(oldlines, newlines, appendfile, newappendfile)
/openbmc/openbmc/poky/scripts/lib/devtool/
H A Dbuild.py23 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__.py283 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 Dutils.py1276 newlines = []
1282 prerun_newlines = newlines[:]
1284 (newvalue, newop, indent, minbreak) = varfunc(in_var, full_value, op, newlines)
1285 changed = (prerun_newlines != newlines)
1307newlines.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 Dutils.py174 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 Ddisplay_options.c14 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 Ddisplay_options.h71 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 Dconfigfragments.py102 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 Dcp_stop_check215 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 Drecipeutils.py235 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 Derr-bad-newline.cocci1 // Error messages should not contain newlines. This script finds
/openbmc/openbmc/poky/meta/classes-recipe/
H A Dcargo_common.bbclass191 newlines = []
195 newlines.append(line)
198 f.writelines(newlines)
/openbmc/linux/tools/scripts/
H A Dutilities.mak14 # 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 DKconfig21 # but any trailing newlines are deleted.
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-supervisor/
H A Dsupervisord.conf23 ; newlines). It can also contain wildcards. The filenames are
/openbmc/qemu/scripts/ci/
H A Dgitlab-ci-section16 # The description can be any printable text without newlines; this is
/openbmc/openbmc-test-automation/lib/
H A Dgen_misc.py323 def file_to_list(file_path, newlines=0, comments=1, trim=0): argument
342 if not newlines:
H A Dboot_data.py156 boot_list = gm.file_to_list(file_path, newlines=0, comments=0, trim=1)
H A Dgen_plug_in_utils.py534 save_file_path, newlines=0, comments=0, trim=1
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Ddevtool.py1513 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 Ddriver.rst32 character by character write, translating newlines to CRLF sequences.
/openbmc/qemu/scripts/
H A Dcheckpatch.pl2101 my @newlines = ($c =~ /\n/gs);
2102 my $cond_lines = 1 + $#newlines;
2640 my @newlines = ($c =~ /\n/gs);
2641 my $cond_lines = 1 + $#newlines;

12