Tweak firmware Makefile, scripting (#4796)
* firmware: Makefile uses spaces ... * firmware: use CC and CPPC for LD * firmware: clean_compile_two_versions.sh passes arguments to make
This commit is contained in:
parent
1caeeb631b
commit
fcca331773
|
@ -182,7 +182,7 @@ include $(CHIBIOS)/os/rt/rt.mk
|
|||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||
# EX files (optional).
|
||||
ifneq ($(USE_LIS302),no)
|
||||
include $(CHIBIOS)/os/ex/devices/ST/lis302dl.mk
|
||||
include $(CHIBIOS)/os/ex/devices/ST/lis302dl.mk
|
||||
endif
|
||||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
||||
include $(CHIBIOS)/os/various/cpp_wrappers/chcpp.mk
|
||||
|
@ -194,13 +194,13 @@ endif
|
|||
include $(CHIBIOS)/os/hal/lib/complex/mfs/hal_mfs.mk
|
||||
|
||||
ifeq ($(USE_FATFS),yes)
|
||||
include $(CHIBIOS)/os/various/fatfs_bindings/fatfs.mk
|
||||
include $(CHIBIOS)/os/various/fatfs_bindings/fatfs.mk
|
||||
endif
|
||||
|
||||
#Now include RusEFI mk files
|
||||
include console/binary/tunerstudio.mk
|
||||
ifeq ($(USE_FATFS),yes)
|
||||
include $(PROJECT_DIR)/ext/FatFS/fatfs.mk
|
||||
include $(PROJECT_DIR)/ext/FatFS/fatfs.mk
|
||||
endif
|
||||
|
||||
include $(PROJECT_DIR)/hw_layer/mass_storage/mass_storage.mk
|
||||
|
@ -212,7 +212,7 @@ ifeq ($(BOOTLOADERINC),)
|
|||
endif
|
||||
|
||||
ifeq ($(USE_BOOTLOADER),yes)
|
||||
include $(PROJECT_DIR)/bootloader/bootloader.mk
|
||||
include $(PROJECT_DIR)/bootloader/bootloader.mk
|
||||
endif
|
||||
|
||||
ifeq ($(USE_OPENBLT),yes)
|
||||
|
@ -303,7 +303,7 @@ INCDIR = \
|
|||
development/hw_layer \
|
||||
development/test \
|
||||
$(CHIBIOS_CONTRIB)/os/various
|
||||
# contrib/os/various must go at the end because it also contains pid.h which conflicts with our pid.h
|
||||
# contrib/os/various must go at the end because it also contains pid.h which conflicts with our pid.h
|
||||
|
||||
#
|
||||
# Project, sources and paths
|
||||
|
@ -323,10 +323,10 @@ CPPC = $(CCPREFIX) $(TRGT)g++
|
|||
# Enable loading with g++ only if you need C++ runtime support.
|
||||
# NOTE: You can use C++ even without C++ support if you are careful. C++
|
||||
# runtime support makes code size explode.
|
||||
LD = $(TRGT)gcc
|
||||
#LD = $(TRGT)g++
|
||||
LD = $(CC)
|
||||
#LD = $(CPPC)
|
||||
CP = $(TRGT)objcopy
|
||||
AS = $(TRGT)gcc -x assembler-with-cpp
|
||||
AS = $(CC) -x assembler-with-cpp
|
||||
AR = $(TRGT)ar
|
||||
OD = $(TRGT)objdump
|
||||
SZ = $(TRGT)size
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "Compiler gcc version"
|
||||
arm-none-eabi-gcc -v
|
||||
|
@ -10,7 +12,7 @@ mkdir deliver
|
|||
#echo "TIMESTAMP $(date "+%D %T.%2N")"
|
||||
|
||||
#EXTRA_PARAMS="-DDUMMY -DFIRMWARE_ID=\\\"default_no_assert\\\" -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE"
|
||||
#make -j$(nproc) DEBUG_LEVEL_OPT='-O2'
|
||||
#make -j$(nproc) DEBUG_LEVEL_OPT='-O2' $@
|
||||
#EXTRA_PARAMS=""
|
||||
|
||||
# mv build/rusefi.elf deliver/rusefi_no_asserts.elf
|
||||
|
@ -25,7 +27,7 @@ mkdir deliver
|
|||
bash clean.sh
|
||||
echo "TIMESTAMP $(date "+%D %T.%2N")"
|
||||
EXTRA_PARAMS="-DDUMMY -DFIRMWARE_ID=\\\"default\\\""
|
||||
make -j$(nproc)
|
||||
make -j$(nproc) $@
|
||||
EXTRA_PARAMS=""
|
||||
|
||||
mv build/rusefi.elf deliver/rusefi.elf
|
||||
|
|
Loading…
Reference in New Issue