summaryrefslogtreecommitdiffstats
path: root/scripts/yocto-kernel
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2013-03-12 02:46:37 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-17 23:10:28 (GMT)
commit2518215438119804290aa8149936ebde0fcc89d3 (patch)
treea3e986b4c29fbf6129516c62e5ec5a4982fa049d /scripts/yocto-kernel
parent934f2ed2539e046f91a234d30fc4da71ffbe28a0 (diff)
downloadpoky-2518215438119804290aa8149936ebde0fcc89d3.tar.gz
yocto-kernel: add support for printing kernel feature descriptions
Add a yocto-kernel command allowing users to print the description and compatibility of a given kernel feature. (From meta-yocto rev: 73b4f1a8d156af6810cdde3af672d6286a7071e7) 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-kernel26
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/yocto-kernel b/scripts/yocto-kernel
index a66a727..1f6ed67 100755
--- a/scripts/yocto-kernel
+++ b/scripts/yocto-kernel
@@ -243,6 +243,29 @@ def yocto_kernel_available_features_list_subcommand(args, usage_str):
243 yocto_kernel_available_features_list(scripts_path, args[0]) 243 yocto_kernel_available_features_list(scripts_path, args[0])
244 244
245 245
246def yocto_kernel_feature_describe_subcommand(args, usage_str):
247 """
248 Command-line handling for listing the description of a specific
249 kernel feature available for use in a BSP. This includes the
250 features present in the meta branch(es) of the pointed-to repo(s)
251 as well as the local features added in recipe-space to the current
252 BSP as well. The real work is done by
253 bsp.kernel.yocto_kernel_feature_describe().
254 """
255 logging.debug("yocto_kernel_feature_describe_subcommand")
256
257 parser = optparse.OptionParser(usage = usage_str)
258
259 (options, args) = parser.parse_args(args)
260
261 if len(args) != 2:
262 logging.error("Wrong number of arguments, exiting\n")
263 parser.print_help()
264 sys.exit(1)
265
266 yocto_kernel_feature_describe(scripts_path, args[0], args[1])
267
268
246subcommands = { 269subcommands = {
247 "config-list": [yocto_kernel_config_list_subcommand, 270 "config-list": [yocto_kernel_config_list_subcommand,
248 yocto_kernel_config_list_usage, 271 yocto_kernel_config_list_usage,
@@ -274,6 +297,9 @@ subcommands = {
274 "features-list": [yocto_kernel_available_features_list_subcommand, 297 "features-list": [yocto_kernel_available_features_list_subcommand,
275 yocto_kernel_available_features_list_usage, 298 yocto_kernel_available_features_list_usage,
276 yocto_kernel_available_features_list_help], 299 yocto_kernel_available_features_list_help],
300 "feature-describe": [yocto_kernel_feature_describe_subcommand,
301 yocto_kernel_feature_describe_usage,
302 yocto_kernel_feature_describe_help],
277} 303}
278 304
279 305