diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/runqemu | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index bdb559f82f..5f2b38febc 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
| @@ -1209,6 +1209,10 @@ class BaseConfig(object): | |||
| 1209 | self.bitbake_e = '' | 1209 | self.bitbake_e = '' |
| 1210 | logger.warn("Couldn't run 'bitbake -e' to gather environment information:\n%s" % err.output.decode('utf-8')) | 1210 | logger.warn("Couldn't run 'bitbake -e' to gather environment information:\n%s" % err.output.decode('utf-8')) |
| 1211 | 1211 | ||
| 1212 | def validate_combos(self): | ||
| 1213 | if (self.fstype in self.vmtypes) and self.kernel: | ||
| 1214 | raise RunQemuError("%s doesn't need kernel %s!" % (self.fstype, self.kernel)) | ||
| 1215 | |||
| 1212 | @property | 1216 | @property |
| 1213 | def bindir_native(self): | 1217 | def bindir_native(self): |
| 1214 | result = self.get('STAGING_BINDIR_NATIVE') | 1218 | result = self.get('STAGING_BINDIR_NATIVE') |
| @@ -1240,6 +1244,8 @@ def main(): | |||
| 1240 | config.check_args() | 1244 | config.check_args() |
| 1241 | config.read_qemuboot() | 1245 | config.read_qemuboot() |
| 1242 | config.check_and_set() | 1246 | config.check_and_set() |
| 1247 | # Check whether the combos is valid or not | ||
| 1248 | config.validate_combos() | ||
| 1243 | config.print_config() | 1249 | config.print_config() |
| 1244 | config.setup_network() | 1250 | config.setup_network() |
| 1245 | config.setup_rootfs() | 1251 | config.setup_rootfs() |
