Add a makefile to cross-compile for raspbian

This commit is contained in:
Jeff Epler 2020-01-25 15:02:02 -06:00
parent d9e0742a07
commit 9673ea4a50
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,4 @@
mpy-cross{,.exe}
mpy-cross.static{,.exe}
build-*
pitools

View File

@ -0,0 +1,8 @@
PROG=mpy-cross.static-raspbian
BUILD=build-static-raspbian
STATIC_BUILD=1
CROSS_COMPILE = pitools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-
include mpy-cross.mk
$(shell [ -d pitools ] || git clone --progress --verbose https://github.com/raspberrypi/tools.git --depth=1 pitools)