diff options
Diffstat (limited to 'bitbake/lib/bb/tinfoil.py')
-rw-r--r-- | bitbake/lib/bb/tinfoil.py | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py index 00cec59b83..19b41be46c 100644 --- a/bitbake/lib/bb/tinfoil.py +++ b/bitbake/lib/bb/tinfoil.py | |||
@@ -1,6 +1,6 @@ | |||
1 | # tinfoil: a simple wrapper around cooker for bitbake-based command-line utilities | 1 | # tinfoil: a simple wrapper around cooker for bitbake-based command-line utilities |
2 | # | 2 | # |
3 | # Copyright (C) 2012-2016 Intel Corporation | 3 | # Copyright (C) 2012-2017 Intel Corporation |
4 | # Copyright (C) 2011 Mentor Graphics Corporation | 4 | # Copyright (C) 2011 Mentor Graphics Corporation |
5 | # | 5 | # |
6 | # This program is free software; you can redistribute it and/or modify | 6 | # This program is free software; you can redistribute it and/or modify |
@@ -84,6 +84,34 @@ class TinfoilDataStoreConnector: | |||
84 | # Not currently implemented - indicate that setting should | 84 | # Not currently implemented - indicate that setting should |
85 | # be redirected to local side | 85 | # be redirected to local side |
86 | return True | 86 | return True |
87 | def setVarFlag(self, varname, flagname, value): | ||
88 | if self.dsindex is None: | ||
89 | self.tinfoil.run_command('dataStoreConnectorSetVarFlag', self.dsindex, varname, flagname, value) | ||
90 | else: | ||
91 | # Not currently implemented - indicate that setting should | ||
92 | # be redirected to local side | ||
93 | return True | ||
94 | def delVar(self, varname): | ||
95 | if self.dsindex is None: | ||
96 | self.tinfoil.run_command('dataStoreConnectorDelVar', self.dsindex, varname) | ||
97 | else: | ||
98 | # Not currently implemented - indicate that setting should | ||
99 | # be redirected to local side | ||
100 | return True | ||
101 | def delVarFlag(self, varname, flagname): | ||
102 | if self.dsindex is None: | ||
103 | self.tinfoil.run_command('dataStoreConnectorDelVar', self.dsindex, varname, flagname) | ||
104 | else: | ||
105 | # Not currently implemented - indicate that setting should | ||
106 | # be redirected to local side | ||
107 | return True | ||
108 | def renameVar(self, name, newname): | ||
109 | if self.dsindex is None: | ||
110 | self.tinfoil.run_command('dataStoreConnectorRenameVar', self.dsindex, name, newname) | ||
111 | else: | ||
112 | # Not currently implemented - indicate that setting should | ||
113 | # be redirected to local side | ||
114 | return True | ||
87 | 115 | ||
88 | class TinfoilCookerAdapter: | 116 | class TinfoilCookerAdapter: |
89 | """ | 117 | """ |