Coder Social home page Coder Social logo

bitbake-el's Introduction

bitbake.el - Bitbake integration with emacs

This package provides integration of the Yocto Bitbake tool with emacs. Its main features are:

  • interacting with the bitbake script so that you can run bitbake seamlessly from emacs. If your editing a recipe, recompiling is just one M-x bb-recompile command away,

  • deploying recipes output directly to your target device over ssh for direct testing (if your image supports read-write mode),

  • generating wic images,

  • a global minor mode providing menu and shortcuts,

  • an mmm based mode to edit bitbake recipes.

Usage

Calling bitbake from emacs

First you'll need to start bitbake as a server. Use M-x bb-start-server to do so. If you haven't setup the bb-poky-directory and bb-build-directory variables, emacs will prompt for your poky and build directory. You can permanently set them by running M-x customize-group bitbake.

Now that the server is started, you can execute tasks for the current recipe or any recipe by running M-x bb-task. There are shortcut for the most common task, see the BitBake menu in Bitbake minor mode.

Deploying recipes

If your target device supports ssh and writing to the root file system, you can use M-x bb-deploy to deploy a recipe on the device. It will use tar to create an archive of the files generated on the host and deploy them on the device. You should make sure that the recipe has already been build before or use the M-x bb-recompile-deploy command.

Generating wic images

If you use wic to create images, you can use M-x wic-create to generate an image. It will prompt for the definition file the image name. You need to first build the Yocto image or use the command M-x bb-hdd-image which will first run bitbake image and then wic. If you set the custom variable bb-flash-device you'll be able rebuild and put your wic image directly on the device with the command M-x bb-flash-image.

Bitbake global minor mode

There is also a minor mode which provides shortcut and menu for those commands, run M-x bitbake-minor-mode and look at the BitBake menu for commands and key strokes.

Bitbake recipe mode

Finally, you should get syntax highlighting when editing bitbake recipe files. It uses mmm-mode to provide python and shell support in tasks.

Development

Development is done on GitHub. Any bugs or patches are welcome.

License

This emacs extension is distributed under the terms of the GPLv3. See COPYING file for details.

bitbake-el's People

Watchers

Noah Evans avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.