Giter Site home page Giter Site logo

pub-oss's Introduction

SPDX Generator and Source Code Extractor for Open Embedded / Poky

The SPDX generator software allows the automatic extraction of open source software packages together with the generation of corresponding SPDX meta data for the Yocto/Poky Linux distribution http://yoctoproject.org.

"The Software Package Data Exchange (SPDX®) specification is a standard format for communicating the components, licenses, and copyrights associated with a software package. An SPDX file is associated with a particular software package and contains information about that package in the SPDX format.", from http://spdx.org.

Instead of manipulating class or implementation files of the Yocto build system bitbake, the present spdx generator software runs as standalone application and takes advantage out of the fact that Yoctos archive class already structures all used open source software packages as directory hierachy with the various license types as top level directory. For more detailed information about the used directory structure refer to the Yocto Project Development Manual.

The software is written in the Clojure programming language which requires a Java virtual machine and some additional libraries for operation.

Build

You need the clojure build tool leinignen for compilation. Download the lein script file from Github

$ cd ~/bin
$ wget http://github.com/technomancy/leiningen/raw/stable/bin/lein
$ chmod +x lein

and type

$ lein self-install

The following commands will generate and stand-alone jar file:

$ lein uberjar

Refer also to Zef's Leiningen page for more specific information about build options.

Invocation

The following command will start the spdx generation

$ java -jar pub-oss-<xyz>-standalone.jar [-oe oe-main-dir] [--source-pkg sources-dir] [--pub pub-dir]
      [--blacklist package-blacklist-file] [--whitelist packages-whitelist-file]

with the following optional arguments:

  • oe-main-dir: top level directory of Yocto/Poky release, usually "oe-core"
  • source dir: input top level directory, provides subdirectory for each OS license
  • pubdir: directory or url where open source archive files and sdpx meta data shall be copied to
  • package-blacklist-file file with list of packes not to integrate
  • package-whitelist-file file with list of packes exclusively to integrate

The application can be started with its default setup by simply invoke

$ scripts/gen-spdx.sh [optional-target-image-name]

Licence

This software stands under the terms of the GNU General Public Licence.

March 2014, Otto Linnemann

Resources and links

Thanks to all the giants whose shoulders we stand on. And the giants theses giants stand on... And special thanks to Rich Hickey (and the team) for Clojure. Really, thanks!

pub-oss's People

Contributors

linneman avatar

Watchers

James Cloos avatar  avatar

Forkers

vishnumadduri

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.