Name: buildpack-raspberrypi
Owner: Particle
Description: Buildpack for Particle firmware running on the Raspberry Pi
Created: 2016-09-20 20:53:57.0
Updated: 2018-04-11 03:29:07.0
Pushed: 2018-02-28 17:30:43.0
Homepage: null
Size: 9
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Buildpack for Particle firmware running on the Raspberry Pi.
[](https://imagelayers.io/?images=particle/buildpack-raspberrypi:latest 'Get your own badge on imagelayers.io')
| | |—| | Raspberry Pi (you are here) | | Base |
This image inherits base buildpack.
This buildpack contains a cross-compiler and other build tools configured for the Raspberry Pi. The toolchain is built using the crosstool-ng toolchain builder.
Before building this image, build or pull buildpack-base.
This image takes about 45 minutes to build. Go grab a coffee :coffee:
port BUILDPACK_IMAGE=raspberry-pi
t clone "git@github.com:spark/buildpack-${BUILDPACK_IMAGE}.git"
buildpack-$BUILDPACK_IMAGE
scripts/build-and-push
t clone -b feature/raspberry-pi https://github.com/particle-iot/firmware.git
dir -p ~/app && mkdir -p ~/output && mkdir -p ~/cache
uch ~/app/application.cpp
cker run --rm \
~/firmware:/firmware \
~/input:/input \
~/output:/output \
~/cache:/cache \
rticle/buildpack-raspberrypi
The Particle firmware has to be placed in ~/firmware
Source files have to be placed in ~/input
After build ~/output
will be propagated with:
run.log
- stdout
combined with stderr
stderr.log
- contents of stderr
, usefull to parse gcc
errorsFiles only available if compilation succeeds:
firmware.bin
- compiled firmwareTo update the toolchain, run ct-ng to generate a new .config file, update the repo with this .config file and rebuild the buildpack.
er run --rm -ti particle/buildpack-raspberrypi /bin/bash
tmp
< .config
py-paste the current .config and press Ctrl-D
g menuconfig
.config
py-paste the new config into the git repo and rebuild the container