diff options
Diffstat (limited to 'scripts/yocto-kernel')
| -rwxr-xr-x | scripts/yocto-kernel | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/yocto-kernel b/scripts/yocto-kernel index 69fe344d8d..c9b2821e00 100755 --- a/scripts/yocto-kernel +++ b/scripts/yocto-kernel | |||
| @@ -287,6 +287,26 @@ def yocto_kernel_feature_create_subcommand(args, usage_str): | |||
| 287 | yocto_kernel_feature_create(scripts_path, machine, args) | 287 | yocto_kernel_feature_create(scripts_path, machine, args) |
| 288 | 288 | ||
| 289 | 289 | ||
| 290 | def yocto_kernel_feature_destroy_subcommand(args, usage_str): | ||
| 291 | """ | ||
| 292 | Command-line handling for removing a recipe-space kernel feature | ||
| 293 | from a BSP. The real work is done by | ||
| 294 | bsp.kernel.yocto_kernel_feature_destroy(). | ||
| 295 | """ | ||
| 296 | logging.debug("yocto_kernel_feature_destroy_subcommand") | ||
| 297 | |||
| 298 | parser = optparse.OptionParser(usage = usage_str) | ||
| 299 | |||
| 300 | (options, args) = parser.parse_args(args) | ||
| 301 | |||
| 302 | if len(args) != 2: | ||
| 303 | logging.error("Wrong number of arguments, exiting\n") | ||
| 304 | parser.print_help() | ||
| 305 | sys.exit(1) | ||
| 306 | |||
| 307 | yocto_kernel_feature_destroy(scripts_path, args[0], args[1]) | ||
| 308 | |||
| 309 | |||
| 290 | subcommands = { | 310 | subcommands = { |
| 291 | "config-list": [yocto_kernel_config_list_subcommand, | 311 | "config-list": [yocto_kernel_config_list_subcommand, |
| 292 | yocto_kernel_config_list_usage, | 312 | yocto_kernel_config_list_usage, |
| @@ -324,6 +344,9 @@ subcommands = { | |||
| 324 | "feature-create": [yocto_kernel_feature_create_subcommand, | 344 | "feature-create": [yocto_kernel_feature_create_subcommand, |
| 325 | yocto_kernel_feature_create_usage, | 345 | yocto_kernel_feature_create_usage, |
| 326 | yocto_kernel_feature_create_help], | 346 | yocto_kernel_feature_create_help], |
| 347 | "feature-destroy": [yocto_kernel_feature_destroy_subcommand, | ||
| 348 | yocto_kernel_feature_destroy_usage, | ||
| 349 | yocto_kernel_feature_destroy_help], | ||
| 327 | } | 350 | } |
| 328 | 351 | ||
| 329 | 352 | ||
