在devtool命令行工具中,finish子命令是删除还是替换?

时间:2018-05-09 15:46:09

标签: embedded-linux yocto

我发现在Yocto工作流程中使用devtool的唯一相关且易于理解的示例是Video from Tim Orling in Embedded Linux Conference

在他的工作流程中:

  1. 他使用devtool add添加nano
  2. devtool build来构建它
  3. devtool deploy-target将其部署在qemu
  4. devtool undeploy-target删除nano
  5. devtool finish nano ../meta-foo
  6. 我尝试做同样的事情,但finish

    中没有子命令devtool

    当我尝试devtool finish --help

    devtool finish --help
    ERROR: argument <subcommand>: invalid choice: 'finish' (choose from 'create-workspace', 'add', 'modify', 'extract', 'sync', 'update-recipe', 'status', 'reset', 'build-image', 'deploy-target', 'undeploy-target', 'build', 'search', 'upgrade', 'edit-recipe', 'configure-help')
    

    devtool finish的等效子命令是什么。是devtool reset吗?

    构建主机环境

    Ubuntu 16.04.4 LTS 虚拟机

    Bitbake版本:1.30.0

    devtool信息

    usage: devtool [--basepath BASEPATH] [--bbpath BBPATH] [-d] [-q]
                   [--color COLOR] [-h]
                   <subcommand> ...
    
    OpenEmbedded development tool
    
    optional arguments:
      --basepath BASEPATH  Base directory of SDK / build directory
      --bbpath BBPATH      Explicitly specify the BBPATH, rather than getting it
                           from the metadata
      -d, --debug          Enable debug output
      -q, --quiet          Print only errors
      --color COLOR        Colorize output (where COLOR is auto, always, never)
      -h, --help           show this help message and exit
    
    subcommands:
      Beginning work on a recipe:
        add                  Add a new recipe
        modify               Modify the source for an existing recipe
        upgrade              Upgrade an existing recipe
      Getting information:
        status               Show workspace status
        search               Search available recipes
      Working on a recipe in the workspace:
        build                Build a recipe
        edit-recipe          Edit a recipe file in your workspace
        configure-help       Get help on configure script options
        update-recipe        Apply changes from external source tree to recipe
        reset                Remove a recipe from your workspace
      Testing changes on target:
        deploy-target        Deploy recipe output files to live target machine
        undeploy-target      Undeploy recipe output files in live target machine
        build-image          Build image including workspace recipe packages
      Advanced:
        create-workspace     Set up workspace in an alternative location
        extract              Extract the source for an existing recipe
        sync                 Synchronize the source tree for an existing recipe
    Use devtool <subcommand> --help to get help on a specific command
    

1 个答案:

答案 0 :(得分:0)

Krogoth

根据Yocto 2.1.2 Development Manual devtool manual对于krogoth

创建的食谱需要手动放入自定义meta-foo层中。

对于其他版本,devtool finish recipe-name ../meta-foo应该为您完成。