diff options
Diffstat (limited to 'scripts/yocto-kernel')
| -rwxr-xr-x | scripts/yocto-kernel | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/yocto-kernel b/scripts/yocto-kernel index 1f6ed67c04..69fe344d8d 100755 --- a/scripts/yocto-kernel +++ b/scripts/yocto-kernel | |||
| @@ -266,6 +266,27 @@ def yocto_kernel_feature_describe_subcommand(args, usage_str): | |||
| 266 | yocto_kernel_feature_describe(scripts_path, args[0], args[1]) | 266 | yocto_kernel_feature_describe(scripts_path, args[0], args[1]) |
| 267 | 267 | ||
| 268 | 268 | ||
| 269 | def yocto_kernel_feature_create_subcommand(args, usage_str): | ||
| 270 | """ | ||
| 271 | Command-line handling for creating a recipe-space kernel feature | ||
| 272 | in a BSP. The real work is done by | ||
| 273 | bsp.kernel.yocto_kernel_feature_create(). | ||
| 274 | """ | ||
| 275 | logging.debug("yocto_kernel_feature_create_subcommand") | ||
| 276 | |||
| 277 | parser = optparse.OptionParser(usage = usage_str) | ||
| 278 | |||
| 279 | (options, args) = parser.parse_args(args) | ||
| 280 | |||
| 281 | if len(args) < 4: | ||
| 282 | logging.error("Wrong number of arguments, exiting\n") | ||
| 283 | parser.print_help() | ||
| 284 | sys.exit(1) | ||
| 285 | |||
| 286 | machine = args.pop(0) | ||
| 287 | yocto_kernel_feature_create(scripts_path, machine, args) | ||
| 288 | |||
| 289 | |||
| 269 | subcommands = { | 290 | subcommands = { |
| 270 | "config-list": [yocto_kernel_config_list_subcommand, | 291 | "config-list": [yocto_kernel_config_list_subcommand, |
| 271 | yocto_kernel_config_list_usage, | 292 | yocto_kernel_config_list_usage, |
| @@ -300,6 +321,9 @@ subcommands = { | |||
| 300 | "feature-describe": [yocto_kernel_feature_describe_subcommand, | 321 | "feature-describe": [yocto_kernel_feature_describe_subcommand, |
| 301 | yocto_kernel_feature_describe_usage, | 322 | yocto_kernel_feature_describe_usage, |
| 302 | yocto_kernel_feature_describe_help], | 323 | yocto_kernel_feature_describe_help], |
| 324 | "feature-create": [yocto_kernel_feature_create_subcommand, | ||
| 325 | yocto_kernel_feature_create_usage, | ||
| 326 | yocto_kernel_feature_create_help], | ||
| 303 | } | 327 | } |
| 304 | 328 | ||
| 305 | 329 | ||
