imyller / bitbake-npm

OpenEmbedded layer with Bitbake fetch support for Node.js NPM repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bitbake-npm

BitBake 1.28 (Yocto 2.0) layer adding fetch support for Node.js NPM repositories.

Adds support for npm://<package name>;version=<package version> in recipe SRC_URI.

Installation

  1. Add bitbake-npm layer to sources/layers.txt

      bitbake-npm,git://github.com/imyller/bitbake-npm.git,master,HEAD
    
  2. Add bitbake-npm layer to EXTRALAYERS in conf/bblayers.conf

        EXTRALAYERS +=" \
            ${TOPDIR}/sources/bitbake-npm \
        "
    
  3. Run oebb.sh update

Usage

  1. Inherit npm-fetch class in recipe

        inherit npm-fetch
    
  2. Use npm:// URI sources in the recipe SRC_URI

      SRC_URI = "npm://forever;version=0.15.1"

Note: defining a version is optional

About

OpenEmbedded layer with Bitbake fetch support for Node.js NPM repositories

License:MIT License


Languages

Language:Python 85.3%Language:BitBake 14.7%