From 302f2cc8ce756ab61042f1d904df4d18071a976a Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 13 Apr 2012 11:51:17 +0100 Subject: 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 Signed-off-by: Dongxiao Xu Signed-off-by: Richard Purdie --- bitbake/lib/bb/command.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bitbake/lib/bb/command.py') 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: """ return bb.utils.cpu_count() + def setConfFilter(self, command, params): + """ + Set the configuration file parsing filter + """ + filterfunc = params[0] + bb.parse.parse_py.ConfHandler.confFilters.append(filterfunc) + class CommandsAsync: """ A class of asynchronous commands -- cgit v1.2.3-54-g00ecf