summaryrefslogtreecommitdiff
path: root/mpy-cross
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-08-16 21:17:41 -0500
committerJeff Epler <jepler@gmail.com>2020-08-16 21:26:24 -0500
commitead2554c78d698bf5e70a3afd33d1154885e60d5 (patch)
treeb3814e4bc245a99c33741a88608d95e9b0bfbf76 /mpy-cross
parent880fe1a6942a6e37a0e11b86b5773682cfa280fb (diff)
mpy-cross: Silently clone when building for static-raspbian
Also move the construct earlier. This prevents the message ``` make: pitools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc: Command not found ``` from occurring during the first build, since make was evaluating the line ``` mpy-cross.mk:COMPILER_TARGET := $(shell $(CC) -dumpmachine) ``` before $(CC) was created by the clone. Nothing bad seems to have come of this, but it's nice to fix it anyhow. (And interesting that it was lost among the spewed messages we're removing now)
Diffstat (limited to 'mpy-cross')
-rw-r--r--mpy-cross/Makefile.static-raspbian2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpy-cross/Makefile.static-raspbian b/mpy-cross/Makefile.static-raspbian
index f895f998b..6329ebdb5 100644
--- a/mpy-cross/Makefile.static-raspbian
+++ b/mpy-cross/Makefile.static-raspbian
@@ -6,7 +6,7 @@ PROG=mpy-cross.static-raspbian
BUILD=build-static-raspbian
STATIC_BUILD=1
+$(shell if ! [ -d pitools ]; then echo 1>&2 "Fetching pi build tools. This may take awhile."; git clone -q https://github.com/raspberrypi/tools.git --depth=1 pitools; fi)
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)