Skip to content

Commit 9673ea4

Browse files
committed
Add a makefile to cross-compile for raspbian
1 parent d9e0742 commit 9673ea4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

mpy-cross/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
mpy-cross{,.exe}
22
mpy-cross.static{,.exe}
33
build-*
4+
pitools

mpy-cross/Makefile.static-raspbian

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
PROG=mpy-cross.static-raspbian
2+
BUILD=build-static-raspbian
3+
STATIC_BUILD=1
4+
5+
CROSS_COMPILE = pitools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-
6+
include mpy-cross.mk
7+
8+
$(shell [ -d pitools ] || git clone --progress --verbose https://github.com/raspberrypi/tools.git --depth=1 pitools)

0 commit comments

Comments
 (0)