diff options
Diffstat (limited to 'bitbake/lib/bb/command.py')
| -rw-r--r-- | bitbake/lib/bb/command.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 4e9e8d657e..be269372f0 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
| @@ -179,6 +179,12 @@ class CommandsSync: | |||
| 179 | """ | 179 | """ |
| 180 | return bb.utils.cpu_count() | 180 | return bb.utils.cpu_count() |
| 181 | 181 | ||
| 182 | def triggerEvent(self, command, params): | ||
| 183 | """ | ||
| 184 | Trigger a certain event | ||
| 185 | """ | ||
| 186 | event = params[0] | ||
| 187 | bb.event.fire(eval(event), command.cooker.configuration.data) | ||
| 182 | 188 | ||
| 183 | class CommandsAsync: | 189 | class CommandsAsync: |
| 184 | """ | 190 | """ |
