From 5edc7af428cccfbf53780fc98ed1685b655f43d1 Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Mon, 11 Mar 2013 22:19:07 -0500 Subject: yocto-kernel: add support for creating recipe-space kernel features Add a yocto-kernel command allowing users to create a recipe-space kernel feature local to a particular BSP. The new feature is subsequently available for the normal feature addition and removal yocto-kernel commands used with features defined in the meta branch of linux-yocto kernel repos. (From meta-yocto rev: 13abcd93b9e1591bc45ff5f9eb17b8feb9ac9ae5) Signed-off-by: Tom Zanussi Signed-off-by: Richard Purdie --- scripts/lib/bsp/help.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'scripts/lib/bsp/help.py') diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py index 91de60017e..d7c0360a7a 100644 --- a/scripts/lib/bsp/help.py +++ b/scripts/lib/bsp/help.py @@ -388,6 +388,7 @@ yocto_kernel_usage = """ feature rm Have a BSP stop using a feature features list List the features available to BSPs feature describe Describe a particular feature + feature create Create a new BSP-local feature See 'yocto-kernel help COMMAND' for more information on a specific command. @@ -752,6 +753,41 @@ DESCRIPTION """ +yocto_kernel_feature_create_usage = """ + + Create a recipe-space kernel feature in a BSP + + usage: yocto-kernel feature create newfeature.scc \ + "Feature Description" capabilities [ ...] [ ...] + + This command creates a new kernel feature from the bare config + options and patches specified on the command-line. +""" + + +yocto_kernel_feature_create_help = """ + +NAME + yocto-kernel feature create - create a recipe-space kernel feature + in a BSP + +SYNOPSIS + yocto-kernel feature create newfeature.scc \ + "Feature Description" capabilities [ ...] [ ...] + +DESCRIPTION + This command creates a new kernel feature from the bare config + options and patches specified on the command-line. The new + feature will be created in recipe-space, specifically in either + the kernel .bbappend's /files/cfg or /files/features subdirectory, + depending on whether or not the feature contains config items only + or config items along with patches. The named feature must end + with .scc and must not contain a feature directory to contain the + feature (this will be determined automatically), and a feature + decription in double-quotes along with a capabilities string + (which for the time being can be one of: 'all' or 'board'). +""" + ## # yocto-layer help and usage strings ## -- cgit v1.2.3-54-g00ecf