Add support for building different RPIs

This commit is contained in:
Amrit Panesar committed 2016-11-05 20:47:29 -07:00
1 parent 4dcc8f52a9
commit 023620616b
3 files changed
+16 -2

No files matched your search

+2
View File
@@ -8,3 +8,5 @@
export DeployDirectory='/Volumes/boot/'
export DeployDevice='/Volumes/boot'
export BuildType='RPI'
Vendored
+14 -2
View File
@@ -1,3 +1,15 @@
#!/bin/sh
#!/bin/bash
cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=./src/toolchain-arm-none-eabi-rpi.cmake ./
source .local_config
if [ "$BuildType" = "RPI" ]; then
cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=./.attic/toolchain-arm-none-eabi-rpi.cmake ./
fi
if [ "$BuildType" = "RPI-BPlus" ]; then
cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=./.attic/toolchain-arm-none-eabi-rpibplus.cmake ./
fi
if [ "$BuildType" = "RPI-2" ]; then
cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=./.attic/toolchain-arm-none-eabi-rpi2.cmake ./
fi