[build] fix some elements in makefiles

- USE_LTO flag in board makefile optional
- quote on shell command to get number of CPU cores
This commit is contained in:
Gautier Hattenberger
2020-09-10 13:50:16 +02:00
parent bfcd114c32
commit 620a80963f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ NPROCS := 1
J ?= AUTO
ifeq ($J,AUTO)
ifeq ($(UNAME),Linux)
NPROCS := $(shell grep -c ^processor /proc/cpuinfo)
NPROCS := $(shell grep -c '^processor' /proc/cpuinfo)
else ifeq ($(UNAME),Darwin)
NPROCS := $(shell sysctl hw.ncpu | awk '{print $$2}')
endif # $(UNAME)
+1 -1
View File
@@ -21,7 +21,7 @@ MCU=cortex-m7
USE_FPU=softfp
USE_FPU_OPT= -mfpu=fpv5-d16
USE_LTO=yes
USE_LTO ?= yes
$(TARGET).CFLAGS += -DSTM32F7 -DPPRZLINK_ENABLE_FD -DUSE_HARD_FAULT_RECOVERY
+1 -1
View File
@@ -20,7 +20,7 @@ MCU=cortex-m7
USE_FPU=softfp
USE_FPU_OPT= -mfpu=fpv5-d16
USE_LTO=yes
USE_LTO ?= yes
$(TARGET).CFLAGS += -DSTM32F7 -DPPRZLINK_ENABLE_FD -DUSE_HARD_FAULT_RECOVERY