summaryrefslogtreecommitdiff
path: root/scripts/yocto-kernel
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2013-03-11 22:19:07 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-17 23:10:28 +0000
commitdf6588d42895d3b2b923d46f06c8ab9564a85ce3 (patch)
treeeea777acb6ef192332afab0dba8ca041c223829e /scripts/yocto-kernel
parent418b93054224c4a124367d0da8a4e2b4ac288e10 (diff)
downloadtizen-distro-df6588d42895d3b2b923d46f06c8ab9564a85ce3.tar.gz
tizen-distro-df6588d42895d3b2b923d46f06c8ab9564a85ce3.tar.bz2
tizen-distro-df6588d42895d3b2b923d46f06c8ab9564a85ce3.zip
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 <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/yocto-kernel')
-rwxr-xr-xscripts/yocto-kernel24
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):
yocto_kernel_feature_describe(scripts_path, args[0], args[1])
+def yocto_kernel_feature_create_subcommand(args, usage_str):
+ """
+ Command-line handling for creating a recipe-space kernel feature
+ in a BSP. The real work is done by
+ bsp.kernel.yocto_kernel_feature_create().
+ """
+ logging.debug("yocto_kernel_feature_create_subcommand")
+
+ parser = optparse.OptionParser(usage = usage_str)
+
+ (options, args) = parser.parse_args(args)
+
+ if len(args) < 4:
+ logging.error("Wrong number of arguments, exiting\n")
+ parser.print_help()
+ sys.exit(1)
+
+ machine = args.pop(0)
+ yocto_kernel_feature_create(scripts_path, machine, args)
+
+
subcommands = {
"config-list": [yocto_kernel_config_list_subcommand,
yocto_kernel_config_list_usage,
@@ -300,6 +321,9 @@ subcommands = {
"feature-describe": [yocto_kernel_feature_describe_subcommand,
yocto_kernel_feature_describe_usage,
yocto_kernel_feature_describe_help],
+ "feature-create": [yocto_kernel_feature_create_subcommand,
+ yocto_kernel_feature_create_usage,
+ yocto_kernel_feature_create_help],
}