particle-iot/buildpack-raspberrypi

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Buildpack for Raspberry Pi

Buildpack for Particle firmware running on the Raspberry Pi.

Build Status [](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.

Overview

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.

Building image

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

TODO: The rest of the REAME needs to be updated for RPi

Running
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
Firmware repository

The Particle firmware has to be placed in ~/firmware

Input files

Source files have to be placed in ~/input

Output files

After build ~/output will be propagated with:

Files only available if compilation succeeds:

Updating the toolchain

To 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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.