diff options
| author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2013-03-11 18:52:50 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-17 23:10:28 +0000 |
| commit | 0bfe83edbb65f94fca8028be0ca20fdfec5ffc81 (patch) | |
| tree | a53b8b15769ac71156b2a3e400f7d44b5d0b6375 /scripts/lib/bsp/help.py | |
| parent | 6911fd0889261fb173775727db61dffaac355ed7 (diff) | |
| download | poky-0bfe83edbb65f94fca8028be0ca20fdfec5ffc81.tar.gz | |
yocto-kernel: add support for kernel feature add/rm/list
Add yocto-kernel commands allowing users to add, remove, and list
kernel features with respect to a given BSP.
Features managed by these commands modify a special
machine-user-features.scc file associated with the kernel recipe
(.bbappend) of a yocto-bsp-generated BSP. This is analagous to the
implementation of similar support for bare config items and patches
already implemented for yocto-bsp-generated BSPs.
Future patches will add support for providing a list of eligible
features as defined by linux-yocto kernels and locally-defined
(recipe-space) kernel features.
(From meta-yocto rev: ae68d906c5c9854f2cd7ee0870556fbfbd7d94d0)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/bsp/help.py')
| -rw-r--r-- | scripts/lib/bsp/help.py | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py index 346bf0f2bd..2d7b6fe6d2 100644 --- a/scripts/lib/bsp/help.py +++ b/scripts/lib/bsp/help.py | |||
| @@ -383,6 +383,9 @@ yocto_kernel_usage = """ | |||
| 383 | patch list List the patches associated with a BSP | 383 | patch list List the patches associated with a BSP |
| 384 | patch add Patch the Yocto kernel for a BSP | 384 | patch add Patch the Yocto kernel for a BSP |
| 385 | patch rm Remove patches from a BSP | 385 | patch rm Remove patches from a BSP |
| 386 | feature list List the features used by a BSP | ||
| 387 | feature add Have a BSP use a feature | ||
| 388 | feature rm Have a BSP stop using a feature | ||
| 386 | 389 | ||
| 387 | See 'yocto-kernel help COMMAND' for more information on a specific command. | 390 | See 'yocto-kernel help COMMAND' for more information on a specific command. |
| 388 | 391 | ||
| @@ -594,6 +597,101 @@ DESCRIPTION | |||
| 594 | remove. | 597 | remove. |
| 595 | """ | 598 | """ |
| 596 | 599 | ||
| 600 | yocto_kernel_feature_list_usage = """ | ||
| 601 | |||
| 602 | List the BSP features that are being used by a BSP | ||
| 603 | |||
| 604 | usage: yocto-kernel feature list <bsp-name> | ||
| 605 | |||
| 606 | This command lists the features being used by a BSP i.e. the features | ||
| 607 | which are eligible for modification or removal by other yocto-kernel | ||
| 608 | commands. | ||
| 609 | |||
| 610 | 'modifiable' features are the features listed in a BSP's | ||
| 611 | user-features.scc file. | ||
| 612 | """ | ||
| 613 | |||
| 614 | |||
| 615 | yocto_kernel_feature_list_help = """ | ||
| 616 | |||
| 617 | NAME | ||
| 618 | yocto-kernel feature list - List the modifiable set of features | ||
| 619 | being used by a BSP | ||
| 620 | |||
| 621 | SYNOPSIS | ||
| 622 | yocto-kernel feature list <bsp-name> | ||
| 623 | |||
| 624 | DESCRIPTION | ||
| 625 | This command lists the 'modifiable' features being used by a BSP | ||
| 626 | i.e. the features which are eligible for modification or removal | ||
| 627 | by other yocto-kernel commands. | ||
| 628 | """ | ||
| 629 | |||
| 630 | |||
| 631 | yocto_kernel_feature_add_usage = """ | ||
| 632 | |||
| 633 | Add to or modify the list of features being used for a BSP | ||
| 634 | |||
| 635 | usage: yocto-kernel feature add <bsp-name> [/xxxx/yyyy/feature.scc ...] | ||
| 636 | |||
| 637 | This command adds one or more feature items to a BSP's kernel | ||
| 638 | user-features.scc file, which is the file used to manage features in | ||
| 639 | a yocto-bsp-generated BSP. Features to be added must be specified as | ||
| 640 | fully-qualified feature names. | ||
| 641 | """ | ||
| 642 | |||
| 643 | |||
| 644 | yocto_kernel_feature_add_help = """ | ||
| 645 | |||
| 646 | NAME | ||
| 647 | yocto-kernel feature add - Add to or modify the list of features | ||
| 648 | being used for a BSP | ||
| 649 | |||
| 650 | SYNOPSIS | ||
| 651 | yocto-kernel feature add <bsp-name> [/xxxx/yyyy/feature.scc ...] | ||
| 652 | |||
| 653 | DESCRIPTION | ||
| 654 | This command adds one or more feature items to a BSP's | ||
| 655 | user-features.scc file, which is the file used to manage features | ||
| 656 | in a yocto-bsp-generated BSP. Features to be added must be | ||
| 657 | specified as fully-qualified feature names. | ||
| 658 | """ | ||
| 659 | |||
| 660 | |||
| 661 | yocto_kernel_feature_rm_usage = """ | ||
| 662 | |||
| 663 | Remove a feature from the list of features being used for a BSP | ||
| 664 | |||
| 665 | usage: yocto-kernel feature rm <bsp-name> | ||
| 666 | |||
| 667 | This command removes (turns off) one or more features from a BSP's | ||
| 668 | user-features.scc file, which is the file used to manage features in | ||
| 669 | a yocto-bsp-generated BSP. | ||
| 670 | |||
| 671 | The set of features available to be removed by this command for a BSP | ||
| 672 | is listed and the user prompted for the specific items to remove. | ||
| 673 | """ | ||
| 674 | |||
| 675 | |||
| 676 | yocto_kernel_feature_rm_help = """ | ||
| 677 | |||
| 678 | NAME | ||
| 679 | yocto-kernel feature rm - Remove a feature from the list of | ||
| 680 | features being used for a BSP | ||
| 681 | |||
| 682 | SYNOPSIS | ||
| 683 | yocto-kernel feature rm <bsp-name> | ||
| 684 | |||
| 685 | DESCRIPTION | ||
| 686 | This command removes (turns off) one or more features from a BSP's | ||
| 687 | user-features.scc file, which is the file used to manage features | ||
| 688 | in a yocto-bsp-generated BSP. | ||
| 689 | |||
| 690 | The set of features available to be removed by this command for a | ||
| 691 | BSP is listed and the user prompted for the specific items to | ||
| 692 | remove. | ||
| 693 | """ | ||
| 694 | |||
| 597 | ## | 695 | ## |
| 598 | # yocto-layer help and usage strings | 696 | # yocto-layer help and usage strings |
| 599 | ## | 697 | ## |
