#!/bin/bash -ex

git clone git://github.com/raspberrypi/tools.git rpi-tools

rbld create --base ubuntu:16.04 rpi-raspbian
rbld modify rpi-raspbian:initial -- "sudo apt-get update && sudo apt-get install -y make"
rbld modify rpi-raspbian:initial -- sudo cp -r rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64 /
rbld modify rpi-raspbian:initial -- "echo export CC=/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- | sudo tee -a /rebuild/rebuild.rc > /dev/null"

rbld commit rpi-raspbian --tag v001
rbld rm rpi-raspbian:initial

rm -rf rpi-tools

Add script for Raspberry Pi environment creation
examples: Add script for Raspberry Pi environment creation

[ci skip]

Signed-off-by: Dmitry Fleytman <a8cf97adadec4e1b734a39bc5aea71b5741cfca1@daynix.com>
