mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-21 03:43:26 +08:00
[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:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user