From 6f06be77f8574c50e54ab61095901ceb922de0ae Mon Sep 17 00:00:00 2001 From: mikeller Date: Fri, 24 Jun 2016 21:06:40 +1200 Subject: [PATCH] Changed 'Makefile' to enable 'make' (without parameters to make use of multicore CPUs. --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c083a6190..37b2dd292 100644 --- a/Makefile +++ b/Makefile @@ -664,7 +664,7 @@ all: $(VALID_TARGETS) $(VALID_TARGETS): echo "" && \ echo "Building $@" && \ - $(MAKE) -j binary hex TARGET=$@ && \ + $(MAKE) binary hex TARGET=$@ && \ echo "Building $@ succeeded." ## clean : clean up all temporary / machine-generated files @@ -700,8 +700,11 @@ st-flash_$(TARGET): $(TARGET_BIN) ## st-flash : flash firmware (.bin) onto flight controller st-flash: st-flash_$(TARGET) -binary: $(TARGET_BIN) -hex: $(TARGET_HEX) +binary: + $(MAKE) -j $(TARGET_BIN) + +hex: + $(MAKE) -j $(TARGET_HEX) unbrick_$(TARGET): $(TARGET_HEX) stty -F $(SERIAL_DEVICE) raw speed 115200 -crtscts cs8 -parenb -cstopb -ixon