diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-13 11:51:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-13 12:04:18 +0100 |
commit | 302f2cc8ce756ab61042f1d904df4d18071a976a (patch) | |
tree | 78b753507109222f0c902502573a1137a02cd4ec /bitbake/lib/bb/command.py | |
parent | 6703173449ad21e1623ac75a66535cb2ed52aeeb (diff) | |
download | poky-302f2cc8ce756ab61042f1d904df4d18071a976a.tar.gz |
ConfHandler.py: Add a hook for config parsing
To make the UI settings take effect, we need to hook at the end of each
config file parsing and set UI specific values.
(Bitbake rev: f54e733c7863110896f43900d9e4e791602f9d65)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r-- | bitbake/lib/bb/command.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 73aaca0474..fd8912ab40 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -179,6 +179,13 @@ class CommandsSync: | |||
179 | """ | 179 | """ |
180 | return bb.utils.cpu_count() | 180 | return bb.utils.cpu_count() |
181 | 181 | ||
182 | def setConfFilter(self, command, params): | ||
183 | """ | ||
184 | Set the configuration file parsing filter | ||
185 | """ | ||
186 | filterfunc = params[0] | ||
187 | bb.parse.parse_py.ConfHandler.confFilters.append(filterfunc) | ||
188 | |||
182 | class CommandsAsync: | 189 | class CommandsAsync: |
183 | """ | 190 | """ |
184 | A class of asynchronous commands | 191 | A class of asynchronous commands |