Sign inSign up

particle/buildpack-hal

By particle

Updated 17 days ago

Buildpack for modern (HAL) Particle firmware

Artifact
Image
1

50K+

particle/buildpack-hal repository overview

Buildpack for HAL firmware

Buildpack for modern (HAL based) Particle firmware.

Build Status

This image inherits base buildpack.

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 \
  -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

Tag summary

Content type

Image

Digest

sha256:da6c9d665

Size

151.4 MB

Last updated

17 days ago

docker pull particle/buildpack-hal