path: root/contrib
AgeCommit message (Collapse)AuthorFilesLines
2018-02-09contrib/dump_cache.py: make it can dump everythingRobert Yang1-34/+51
Have a simple tool to dump bb_cache.dat is useful for investigating and studying bitbake cache. The old contrib/dump_cache.py can dump pn, pv and packages for it, now enhance it dump everything. Here is the usage: $ /path/to/dump_cache.py --help usage: dump_cache.py [-h] [-r RECIPE] [-m MEMBERS] [-s] cachefile bb_cache.dat's dumper positional arguments: cachefile specify bb_cache.dat optional arguments: -h, --help show this help message and exit -r RECIPE, --recipe RECIPE specify the recipe, default: all recipes -m MEMBERS, --members MEMBERS specify the member, use comma as separator for multiple ones, default: all members -s, --skip skip skipped recipes Use dump_cache.py --help to get help Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-08-19dump_cache.py: use python3 as interpreterRobert Yang1-1/+1
Fixed: File "bitbake/contrib/dump_cache.py", line 39 print("Error, need one argument!", file=sys.stderr) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01bitbake: Convert to python 3Richard Purdie1-1/+1
Various misc changes to convert bitbake to python3 which don't warrant separation into separate commits. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-12contrib/dump_cache.py, cache: Fix to use python 3 syntaxRichard Purdie1-2/+2
Some tweaks to use python 3 syntax in a python 2 compatible way. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-19newbb.vim: remove PRRobert Yang1-1/+0
We don't need the "PR = r0" in the bb, so remove it to avoid misleading the user. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-11-12newbb.vim: fix spellingTrevor Woerner1-1/+1
Signed-off-by: Trevor Woerner <trevor.woerner@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-09-06contrib/vim: merge changes from vim-bitbake repoChristopher Larson3-9/+13
commit 00ca441614695b4261d8d4f31b7ef0e3e3784282 Merge: 8cc367d bb88c0f Author: Christopher Larson <kergoth@gmail.com> Date: Thu Aug 22 16:42:42 2013 -0700 Merge pull request #6 from staticshock/multi-line-strings Remove "keepend" and "excludenl" directives commit bb88c0fd4ad2b7b9c8c4c73def2b3cb20c473ac3 Author: Anton Backer <olegov@gmail.com> Date: Sat Jul 13 01:24:15 2013 -0400 Remove "keepend" and "excludenl" directives It looks like these were never actually used correctly, and were doing more harm than good. "keepend" on bbString, for instance, prevented proper nesting of ${@python} in strings. Similarly, a balanced pair of { } braces inside a shell function would force the function to terminate early if the closing brace was on its own line. So far I've seen absolutely no negative consequences from removing these, but a bunch of positive consequences. Fixes #1 commit 8cc367d01f4c699be5fcc072de59e6f2f14a138b Merge: c58628c eec6b7f Author: Christopher Larson <kergoth@gmail.com> Date: Thu Aug 22 09:46:46 2013 -0700 Merge pull request #4 from staticshock/function-names Parse function names with nested vars commit c58628ca517cd25985361fc0d27863521cc28a5d Merge: dfb0f7c a890982 Author: Christopher Larson <kergoth@gmail.com> Date: Thu Aug 22 09:43:40 2013 -0700 Merge pull request #5 from yoyko/master syntax: python expansion (${@...}) inside shell functions commit a890982b7c33a6e363b12d6cb69e22b4bbc0f317 Author: Jozef Šiška <yoyo@ksp.sk> Date: Thu Aug 22 13:20:45 2013 +0200 syntax: python expansion (${@...}) inside shell functions Signed-off-by: Jozef Šiška <jsiska@nuvotechnologies.com> commit eec6b7f6f0472787929f424968f9a0d78ac4af08 Author: Anton Backer <olegov@gmail.com> Date: Fri Jul 12 22:16:01 2013 -0400 Parse function names with nested vars For instance, pkg_postinst_${PN} Fixes #3 commit dfb0f7c0d51556448cba79b474b8c19b9cded9af Author: Christopher Larson <chris_larson@mentor.com> Date: Fri Jun 1 18:57:13 2012 -0400 syntax: add ?= flag def Signed-off-by: Christopher Larson <chris_larson@mentor.com> commit 589a62a00709ca822a42327e7086008aba2d9933 Author: Christopher Larson <kergoth@gmail.com> Date: Fri Dec 9 22:25:47 2011 -0700 ftplugin: set commentstring Signed-off-by: Christopher Larson <kergoth@gmail.com> commit 7ffc80b3fb4ddf68cc5a69bdc63ab03d70c44f87 Author: Chris Larson <chris_larson@mentor.com> Date: Thu Jun 2 15:27:48 2011 -0700 Handle +=/=+ for flags Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-09-06newbb.vim: Use 'git config' instead of git-configKhem Raj1-2/+2
Newer versions of git do not have the '-' concatenated command Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-12-14bitbake.vim: detect *.bbappend files in ftdetect automaticallyEren Türkay1-2/+2
Currently, *.bb and *.bbclass files are automatically highlighted and detected as a bitbake file. Since *.bbappend files are also bitbake files, vim plugin should automatically detect and highlight it as well. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-03Fix script location after mishandled mergeRichard Purdie1-0/+68
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-12-20vim/syntax: Recognize ?? operatorKhem Raj1-2/+2
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-10vim: properly highlight python inside of ${@}Chris Larson1-10/+9
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-10vim: handle highlighting exports without assignmentChris Larson1-0/+2
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-10vim: add an ftplugin for indentation settingsChris Larson1-0/+1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-01-21contrib/vim: Update with the changes from Ricardo Salveti and other fixes.Khem Raj3-104/+204
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2008-09-11Vim syntax:Chris Larson1-14/+21
- Highlight variable expansions as PreProc, both the braces & the contents. - Highlight inline python (${@...}) as PreProc for the braces and as actual python inside.
2006-07-10Contrib: update the Vim syntax highlighting to include the 'require' keyword ↵Chris Larson2-4/+8
and '.=' and '=.'. Add a Vim ftdetect plugin to properly set the filetype on bitbake files.
2004-12-14renamed to get less ambiguous nameMarcin Juszkiewicz1-0/+0
2004-12-10Clean out the cruft in the vim syntax.Chris Larson1-31/+12
2004-12-09Vim syntax: bugfix in the match of 'def' lines.Chris Larson1-1/+1
2004-12-09Vim syntax update: let syntax/python.vim do the highlighting for the actual ↵Chris Larson1-4/+5
'def' line, rather than ripping it apart and doing it ourselves.
2004-12-08Adjust whitespace handling in the vim syntax a bit.Chris Larson1-3/+3
2004-12-08Vim syntax: add a catchall which should flag anything which isn't explicitly ↵Chris Larson1-0/+4
matched as Error, thereby highlighting some incorrect syntax as such.
2004-12-08Vim syntax bugfix: make it a bit more tolerant about locating the end of ↵Chris Larson1-4/+4
bitbake shell & python functions (noticed zap_root_password's ending } was followed by whitespace).
2004-12-08Vim syntax: match variables defined using ?=.Chris Larson1-2/+2
2004-12-08Vim syntax: match & highlight the 'fakeroot' flag for functions.Chris Larson1-1/+3
2004-12-08Vim syntax: limit the areas in which variable dereferences are matched and ↵Chris Larson1-7/+7
2004-12-08Vim syntax update: bugfix: don't recognize an empty line as the end of a ↵Chris Larson1-1/+1
'def' block, but only a line which isnt empty and which doesn't start with whitespace.
2004-12-08Vim syntax update: 1) Add EXPORT_FUNCTIONS to our list of valid statements, ↵Chris Larson1-7/+7
and 2) Add '.' to the variable character class (so that things like IMAGE_FSTYPE_ext2.gz are properly highlighted).
2004-12-08Vim syntax update: match and highlight variable definitions flagged as 'export'.Chris Larson1-1/+4
2004-12-08Vim syntax update: Fix the statements (include/inherit/addtask/addhandler) ↵Chris Larson1-1/+3
to only match at the beginning of a line, in an oe statement.
2004-12-08Vim syntax update: highlight := variable assignment.Chris Larson1-2/+2
2004-12-08oe to bb rename in oedev.sh.Chris Larson1-3/+3
2004-12-08Vim syntax update: Fix the var deref in var overrides to be more versatile ↵Chris Larson1-4/+5
and highlight them as string rather than statement+identifier.
2004-12-08Vim syntax update: 1) Highlight the quotes around a string as a String ↵Chris Larson1-1/+3
rather than as a Statement (like .conf highlighting rather than .sh), and 2) Highlight the value of a bitbake variable even if it isn't quoted.
2004-12-08Vim syntax update: Highlight overrides that include variable derefences ↵Chris Larson1-1/+3
(i.e. FILES_${PN}).
2004-12-08Vim syntax update: highlight backslashes used as line continuation within ↵Chris Larson1-2/+4
strings as 'Special'.
2004-12-08Vim syntax update: match anonymous python functions with no specified name.Chris Larson1-1/+1
2004-12-08Add copyright & license to the vim syntax file.Chris Larson1-0/+4
2004-12-08Add README to contrib/.Chris Larson1-0/+1
2004-12-08Vim syntax update: highlight the ending ':' on a 'def' line.Chris Larson1-1/+1
2004-12-08Vim syntax update: highlight definitions of variable flags.Chris Larson1-0/+12
2004-12-08Vim syntax update: highlight the 'def' as a Statement, and add highlighting ↵Chris Larson1-2/+5
of the bitbake 'addtask', 'addhandler', 'inherit', and 'include' statements.
2004-12-08Vim syntax update: highlight the 'def'd python functions as such.Chris Larson1-2/+13
2004-12-08Vim syntax update: highlight the shell functions as shell.Chris Larson1-1/+17
2004-12-08Start adding vim syntax highlighting.Chris Larson1-0/+74
2004-12-07Initial import.Chris Larson2-59/+31
2004-07-17mvdirChris Larson1-0/+59