Giter Site home page Giter Site logo

buildpack-hal's Introduction

Buildpack for HAL firmware

Buildpack for modern (HAL based) Particle firmware.

Build Status

Particle firmware
HAL (you are here) / Legacy
Wiring preprocessor
Base

This image inherits Wiring preprocessor and calls preprocess-ino function before doing build.

Building image

Before building this image, build or pull buildpack-wiring-preprocessor.

$ export BUILDPACK_IMAGE=hal
$ git clone "[email protected]:spark/buildpack-${BUILDPACK_IMAGE}.git"
$ cd buildpack-$BUILDPACK_IMAGE
$ docker build -t particle/buildpack-$BUILDPACK_IMAGE .

Running

$ mkdir -p ~/tmp/input && mkdir -p ~/tmp/output && mkdir -p ~/tmp/cache
$ docker run --rm \
  --privileged \
  -v ~/tmp/input:/input \
  -v ~/tmp/output:/output \
  -v ~/tmp/cache:/cache \
  -e FIRMWARE_REPO=https://github.com/spark/firmware.git#photon_043 \
  -e PLATFORM_ID=6
  particle/buildpack-hal

Input files

Source files have to be placed in ~/tmp/input

Output files

After build ~/tmp/output will be propagated with:

  • run.log - stdout combined with stderr
  • stderr.log - contents of stderr, usefull to parse gcc errors

Files only available if compilation succeeds:

  • firmware.bin - compiled firmware
  • memory-use.log - firmware memory use

buildpack-hal's People

Contributors

suda avatar

Watchers

 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.