2015-07-10 06:01:56 -07:00
|
|
|
##############################################################################
|
2021-07-09 10:29:03 -07:00
|
|
|
# see readme.md
|
|
|
|
# see setup_linux_environment.sh but Windows is also totally fine
|
2015-07-10 06:01:56 -07:00
|
|
|
#
|
|
|
|
|
2021-11-05 16:28:55 -07:00
|
|
|
.PHONY: openblt
|
|
|
|
|
2019-03-20 05:45:15 -07:00
|
|
|
CHIBIOS = ChibiOS
|
2021-01-19 12:20:35 -08:00
|
|
|
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk
|
2018-12-15 21:22:24 -08:00
|
|
|
RULESFILE = $(RULESPATH)/rules.mk
|
|
|
|
|
2019-12-02 07:26:16 -08:00
|
|
|
include rusefi_rules.mk
|
|
|
|
|
2019-03-29 07:29:01 -07:00
|
|
|
# Define project name here
|
|
|
|
PROJECT = rusefi
|
|
|
|
PROJECT_DIR = .
|
|
|
|
|
2021-07-25 18:23:23 -07:00
|
|
|
# Configure precompiled header
|
|
|
|
PCH_DIR = $(PROJECT_DIR)/pch
|
|
|
|
PCHSRC = $(PCH_DIR)/pch.h
|
2021-11-08 12:52:58 -08:00
|
|
|
PCHSUB = firmware
|
2021-07-25 18:23:23 -07:00
|
|
|
|
2019-03-29 07:29:01 -07:00
|
|
|
# Imported source files and paths
|
|
|
|
CHIBIOS_CONTRIB = ChibiOS-Contrib
|
|
|
|
|
2018-12-15 21:55:03 -08:00
|
|
|
include rusefi.mk
|
2018-12-13 18:29:24 -08:00
|
|
|
|
2017-04-02 08:50:05 -07:00
|
|
|
# by default EXTRA_PARAMS is empty and we create 'debug' version of the firmware with additional assertions and statistics
|
|
|
|
# for 'release' options see 'clean_compile_two_versions.bat' file
|
|
|
|
|
|
|
|
ifeq ($(DEBUG_LEVEL_OPT),)
|
2020-02-24 18:49:04 -08:00
|
|
|
# Default to a release build - but leave in debug info. It doesn't change the hex/bin output.
|
2021-01-31 11:13:55 -08:00
|
|
|
DEBUG_LEVEL_OPT = -O2 -ggdb -g
|
2020-02-24 18:49:04 -08:00
|
|
|
# Comment the above and uncomment the line below if you want to debug the firmware (it's difficult-to-impossible
|
|
|
|
# to debug firmware with optimization enabled).
|
2021-01-31 11:13:55 -08:00
|
|
|
# DEBUG_LEVEL_OPT = -O0 -ggdb -g
|
2017-04-02 08:50:05 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2019-04-20 18:35:14 -07:00
|
|
|
ifeq ($(CCACHE_DIR),)
|
|
|
|
$(info No CCACHE_DIR)
|
|
|
|
else
|
2019-04-20 18:31:24 -07:00
|
|
|
$(info CCACHE_DIR is ${CCACHE_DIR})
|
|
|
|
CCPREFIX=ccache
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
# Compiler options here.
|
2022-05-25 07:44:34 -07:00
|
|
|
# yes we have two kinds of EXTRA_*PARAMS so that we can define those in two different places independently
|
|
|
|
#
|
2015-07-10 06:01:56 -07:00
|
|
|
ifeq ($(USE_OPT),)
|
2022-05-25 07:44:34 -07:00
|
|
|
USE_OPT = $(EXTRA_PARAMS) $(EXTRA_2_PARAMS) $(DEBUG_LEVEL_OPT) $(RFLAGS) -fomit-frame-pointer -falign-functions=16 -fsingle-precision-constant
|
2015-07-10 06:01:56 -07:00
|
|
|
endif
|
|
|
|
|
2020-11-11 17:34:39 -08:00
|
|
|
# EFI_UNIT_TEST determines if we are running in a unit test (hide things from hw/sim)
|
|
|
|
# EFI_PROD_CODE determines if we are running on real hardware (hide things from tests/sim)
|
|
|
|
# EFI_SIMULATOR determines if we are running in the simulator (hide things from hw/tests)
|
|
|
|
USE_OPT += $(RUSEFI_OPT) -DEFI_UNIT_TEST=0 -DEFI_PROD_CODE=1 -DEFI_SIMULATOR=0
|
2019-12-02 07:26:16 -08:00
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
# C specific options here (added to USE_OPT).
|
|
|
|
ifeq ($(USE_COPT),)
|
2020-02-08 13:34:29 -08:00
|
|
|
USE_COPT = -fgnu89-inline -std=gnu99 -Wno-error=implicit-fallthrough
|
2015-07-10 06:01:56 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
# C++ specific options here (added to USE_OPT).
|
|
|
|
ifeq ($(USE_CPPOPT),)
|
2021-12-21 11:38:49 -08:00
|
|
|
USE_CPPOPT = -std=c++2a -Wno-register -fno-rtti -fno-threadsafe-statics -fno-exceptions -fno-use-cxa-atexit
|
|
|
|
# gcc-10 c++ 2a depricated uses of volatile errors
|
|
|
|
USE_CPPOPT += -Wno-deprecated
|
2015-07-10 06:01:56 -07:00
|
|
|
endif
|
|
|
|
|
2020-09-26 01:13:02 -07:00
|
|
|
# Hellen is one of the boards which cares
|
|
|
|
USE_CPPOPT += -Wno-error=tautological-compare
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
# Enable this if you want the linker to remove unused code and data
|
|
|
|
ifeq ($(USE_LINK_GC),)
|
|
|
|
USE_LINK_GC = yes
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Linker extra options here.
|
|
|
|
ifeq ($(USE_LDOPT),)
|
2017-03-22 16:16:45 -07:00
|
|
|
USE_LDOPT =
|
2015-07-10 06:01:56 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Enable this if you want link time optimizations (LTO)
|
|
|
|
ifeq ($(USE_LTO),)
|
2019-06-04 16:59:37 -07:00
|
|
|
USE_LTO = yes
|
2015-07-10 06:01:56 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
# If enabled, this option allows to compile the application in THUMB mode.
|
|
|
|
ifeq ($(USE_THUMB),)
|
|
|
|
USE_THUMB = yes
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Enable this if you want to see the full log while compiling.
|
|
|
|
ifeq ($(USE_VERBOSE_COMPILE),)
|
|
|
|
USE_VERBOSE_COMPILE = no
|
|
|
|
endif
|
|
|
|
|
2017-03-22 04:08:20 -07:00
|
|
|
# If enabled, this option makes the build process faster by not compiling
|
|
|
|
# modules not used in the current configuration.
|
2021-02-10 16:38:24 -08:00
|
|
|
# without USE_SMART_BUILD all ChibiOS (including all drivers) are builded. And all drivers includes get included.
|
2017-03-22 04:08:20 -07:00
|
|
|
ifeq ($(USE_SMART_BUILD),)
|
2021-02-10 16:38:24 -08:00
|
|
|
USE_SMART_BUILD = no
|
2017-03-22 04:08:20 -07:00
|
|
|
endif
|
|
|
|
|
2017-06-02 09:33:45 -07:00
|
|
|
ifeq ($(USE_BOOTLOADER),)
|
|
|
|
USE_BOOTLOADER = no
|
|
|
|
endif
|
|
|
|
|
2021-11-05 16:28:55 -07:00
|
|
|
ifeq ($(USE_OPENBLT),)
|
|
|
|
USE_OPENBLT = no
|
|
|
|
endif
|
|
|
|
|
2019-03-29 07:29:01 -07:00
|
|
|
ifeq ($(USE_FATFS),)
|
|
|
|
USE_FATFS = yes
|
|
|
|
endif
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
#
|
|
|
|
# Build global options
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# Architecture or project specific options
|
|
|
|
#
|
|
|
|
|
2017-03-22 04:08:20 -07:00
|
|
|
# Stack size to be allocated to the Cortex-M process stack. This stack is
|
|
|
|
# the stack used by the main() thread.
|
|
|
|
ifeq ($(USE_PROCESS_STACKSIZE),)
|
|
|
|
USE_PROCESS_STACKSIZE = 0x0600
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Stack size to the allocated to the Cortex-M main/exceptions stack. This
|
|
|
|
# stack is used for processing interrupts and exceptions.
|
|
|
|
ifeq ($(USE_EXCEPTIONS_STACKSIZE),)
|
|
|
|
USE_EXCEPTIONS_STACKSIZE = 0x1000
|
|
|
|
endif
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
# Enables the use of FPU on Cortex-M4 (no, softfp, hard).
|
|
|
|
ifeq ($(USE_FPU),)
|
2018-12-28 18:43:46 -08:00
|
|
|
USE_FPU = hard
|
2015-07-10 06:01:56 -07:00
|
|
|
endif
|
|
|
|
|
2018-12-31 07:17:55 -08:00
|
|
|
# and this is not working for be :( See https://github.com/rusefi/rusefi/issues/638
|
|
|
|
# use -j4 unless some value was specified
|
|
|
|
NUMJOBS=${NUMJOBS:-" -j4 "}
|
|
|
|
|
|
|
|
MAKEFLAGS += ${NUMJOBS}
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
#
|
|
|
|
# Architecture or project specific options
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# Project, sources and paths
|
|
|
|
#
|
|
|
|
|
2020-04-25 13:32:32 -07:00
|
|
|
BOARDS_DIR = $(PROJECT_DIR)/config/boards
|
|
|
|
|
|
|
|
include $(PROJECT_DIR)/config/boards/$(PROJECT_BOARD)/board.mk
|
|
|
|
|
2021-01-17 06:32:06 -08:00
|
|
|
# Include various ChibiOS mk files
|
|
|
|
# Licensing files.
|
|
|
|
include $(CHIBIOS)/os/license/license.mk
|
2017-03-22 04:08:20 -07:00
|
|
|
# Startup files.
|
2019-03-29 07:29:01 -07:00
|
|
|
include $(CPU_STARTUP_DIR)
|
2017-03-22 04:08:20 -07:00
|
|
|
# HAL-OSAL files (optional).
|
2017-03-22 11:42:36 -07:00
|
|
|
include $(CHIBIOS_CONTRIB)/os/hal/hal.mk
|
2021-07-05 06:53:45 -07:00
|
|
|
include $(CPU_PLATFORM)
|
2021-01-19 12:20:35 -08:00
|
|
|
include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
|
2017-03-22 04:08:20 -07:00
|
|
|
# RTOS files (optional).
|
|
|
|
include $(CHIBIOS)/os/rt/rt.mk
|
2018-01-23 18:17:30 -08:00
|
|
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
2021-01-17 06:32:06 -08:00
|
|
|
# EX files (optional).
|
2021-02-05 17:58:34 -08:00
|
|
|
ifneq ($(USE_LIS302),no)
|
2021-01-19 12:20:35 -08:00
|
|
|
include $(CHIBIOS)/os/ex/devices/ST/lis302dl.mk
|
2021-02-05 17:58:34 -08:00
|
|
|
endif
|
2021-01-17 06:32:06 -08:00
|
|
|
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
|
|
|
include $(CHIBIOS)/os/various/cpp_wrappers/chcpp.mk
|
2021-10-09 22:15:49 -07:00
|
|
|
|
|
|
|
ifeq ($(LWIP),yes)
|
|
|
|
include $(CHIBIOS)/os/various/lwip_bindings/lwip.mk
|
|
|
|
endif
|
|
|
|
|
2021-08-14 06:36:08 -07:00
|
|
|
include $(CHIBIOS)/os/hal/lib/complex/mfs/hal_mfs.mk
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-03-29 07:29:01 -07:00
|
|
|
ifeq ($(USE_FATFS),yes)
|
2015-07-10 06:01:56 -07:00
|
|
|
include $(CHIBIOS)/os/various/fatfs_bindings/fatfs.mk
|
2019-03-29 07:29:01 -07:00
|
|
|
endif
|
2017-03-22 04:08:20 -07:00
|
|
|
|
2021-01-17 06:32:06 -08:00
|
|
|
#Now include RusEFI mk files
|
2015-07-10 06:01:56 -07:00
|
|
|
include console/binary/tunerstudio.mk
|
2019-03-29 07:29:01 -07:00
|
|
|
ifeq ($(USE_FATFS),yes)
|
2017-03-24 05:55:32 -07:00
|
|
|
include $(PROJECT_DIR)/ext/fatfs.mk
|
2019-03-29 07:29:01 -07:00
|
|
|
endif
|
2017-03-22 11:45:11 -07:00
|
|
|
|
2019-11-19 17:05:12 -08:00
|
|
|
include $(PROJECT_DIR)/hw_layer/mass_storage/mass_storage.mk
|
2022-01-06 16:02:35 -08:00
|
|
|
include $(PROJECT_DIR)/common.mk
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-03-31 23:51:34 -07:00
|
|
|
ifeq ($(BOOTLOADERINC),)
|
|
|
|
# include default bootloader code
|
|
|
|
BOOTLOADERINC= $(PROJECT_DIR)/bootloader/
|
|
|
|
endif
|
|
|
|
|
2017-06-02 09:33:45 -07:00
|
|
|
ifeq ($(USE_BOOTLOADER),yes)
|
|
|
|
include $(PROJECT_DIR)/bootloader/bootloader.mk
|
|
|
|
endif
|
|
|
|
|
2021-11-05 16:28:55 -07:00
|
|
|
ifeq ($(USE_OPENBLT),yes)
|
|
|
|
# Reserve start of flash for OpenBLT
|
|
|
|
USE_OPT += -Wl,--defsym=BOOTLOADER=1
|
|
|
|
endif
|
|
|
|
|
2021-01-19 12:20:35 -08:00
|
|
|
$(info PROJECT_BOARD: $(PROJECT_BOARD))
|
|
|
|
$(info PROJECT_CPU: $(PROJECT_CPU))
|
|
|
|
$(info CONFDIR: $(CONFDIR))
|
|
|
|
$(info LDSCRIPT: $(LDSCRIPT))
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
|
|
|
# setting.
|
2021-12-20 13:17:53 -08:00
|
|
|
# check.c goes first to throw error as soon as possible
|
|
|
|
CSRC = check.c \
|
|
|
|
$(ALLCSRC) \
|
2022-01-04 15:50:25 -08:00
|
|
|
$(BOARDSRC) \
|
2021-03-03 04:50:53 -08:00
|
|
|
$(CHIBIOS_CONTRIB)/os/various/ramdisk.c \
|
2021-10-09 22:15:49 -07:00
|
|
|
$(CHIBIOS)/os/various/evtimer.c \
|
2021-01-17 06:32:06 -08:00
|
|
|
$(DEV_SRC) \
|
|
|
|
$(BOOTLOADERSRC) \
|
2016-06-10 12:01:47 -07:00
|
|
|
${HW_MASS_STORAGE_SRC_C} \
|
2015-07-10 06:01:56 -07:00
|
|
|
$(HW_LAYER_EMS) \
|
2019-03-12 07:12:37 -07:00
|
|
|
$(HW_LAYER_DRIVERS_CORE) \
|
|
|
|
$(HW_LAYER_DRIVERS) \
|
2019-09-22 18:28:19 -07:00
|
|
|
main_hardfault.c
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
|
|
|
# setting.
|
2022-01-06 17:52:49 -08:00
|
|
|
CPPSRC = \
|
|
|
|
$(ALLCPPSRC) \
|
2022-01-04 15:50:25 -08:00
|
|
|
$(BOARDCPPSRC) \
|
2015-07-10 06:01:56 -07:00
|
|
|
$(DEV_SRC_CPP) \
|
2021-01-17 06:32:06 -08:00
|
|
|
$(HW_LAYER_DRIVERS_CORE_CPP) \
|
2019-03-25 12:08:32 -07:00
|
|
|
$(HW_LAYER_DRIVERS_CPP) \
|
2015-07-10 06:01:56 -07:00
|
|
|
$(CONSOLE_SRC_CPP) \
|
2022-01-06 18:48:48 -08:00
|
|
|
rusefi.cpp \
|
2015-07-10 06:01:56 -07:00
|
|
|
main.cpp
|
|
|
|
|
|
|
|
# C sources to be compiled in ARM mode regardless of the global setting.
|
|
|
|
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
|
|
|
|
# option that results in lower performance and larger code size.
|
|
|
|
ACSRC =
|
|
|
|
|
|
|
|
# C++ sources to be compiled in ARM mode regardless of the global setting.
|
|
|
|
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
|
|
|
|
# option that results in lower performance and larger code size.
|
|
|
|
ACPPSRC =
|
|
|
|
|
|
|
|
# C sources to be compiled in THUMB mode regardless of the global setting.
|
|
|
|
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
|
|
|
|
# option that results in lower performance and larger code size.
|
|
|
|
TCSRC =
|
|
|
|
|
|
|
|
# C sources to be compiled in THUMB mode regardless of the global setting.
|
|
|
|
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
|
|
|
|
# option that results in lower performance and larger code size.
|
|
|
|
TCPPSRC =
|
|
|
|
|
|
|
|
# List ASM source files here
|
2021-01-17 06:32:06 -08:00
|
|
|
ASMXSRC = $(ALLXASMSRC) \
|
2022-07-07 12:14:31 -07:00
|
|
|
$(RUSEFIASM) \
|
|
|
|
main_hardfault_asm.S
|
2017-03-22 04:08:20 -07:00
|
|
|
|
2022-01-06 17:52:49 -08:00
|
|
|
#
|
|
|
|
# WARNING! order of variables is important here - for instance cypress own folders should go before default folders
|
|
|
|
#
|
2021-07-25 18:23:23 -07:00
|
|
|
INCDIR = \
|
|
|
|
$(PCH_DIR) \
|
2022-01-04 16:56:36 -08:00
|
|
|
$(BOARDINC) \
|
2022-01-06 17:52:49 -08:00
|
|
|
$(ALLINC) \
|
2017-03-22 04:08:20 -07:00
|
|
|
$(TESTINC) \
|
2017-06-02 09:33:45 -07:00
|
|
|
$(BOOTLOADERINC) \
|
2017-03-22 04:08:20 -07:00
|
|
|
$(CHIBIOS)/os/various \
|
2019-02-05 15:36:25 -08:00
|
|
|
$(CHIBIOS)/os/hal/lib/peripherals/sensors \
|
2021-01-17 06:32:06 -08:00
|
|
|
$(CONFDIR) \
|
2015-07-10 06:01:56 -07:00
|
|
|
ext \
|
2020-08-02 17:46:40 -07:00
|
|
|
$(PROJECT_DIR)/hw_layer/mass_storage \
|
2020-03-13 17:36:07 -07:00
|
|
|
$(PROJECT_DIR)/hw_layer/serial_over_usb \
|
|
|
|
$(PROJECT_DIR)/hw_layer/lcd \
|
|
|
|
$(PROJECT_DIR)/hw_layer/mass_storage \
|
2019-08-03 16:58:38 -07:00
|
|
|
$(HW_INC) \
|
2015-07-10 06:01:56 -07:00
|
|
|
development/hw_layer \
|
|
|
|
development/test \
|
2021-02-13 05:53:10 -08:00
|
|
|
$(CHIBIOS_CONTRIB)/os/various
|
|
|
|
# contrib/os/various must go at the end because it also contains pid.h which conflicts with our pid.h
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Project, sources and paths
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# Compiler settings
|
|
|
|
#
|
|
|
|
|
2019-04-09 16:12:35 -07:00
|
|
|
ifeq ($(CROSS_COMPILE),)
|
|
|
|
TRGT = arm-none-eabi-
|
|
|
|
else
|
|
|
|
TRGT = $(CROSS_COMPILE)
|
|
|
|
endif
|
2019-04-20 18:31:24 -07:00
|
|
|
CC = $(CCPREFIX) $(TRGT)gcc
|
|
|
|
CPPC = $(CCPREFIX) $(TRGT)g++
|
2015-07-10 06:01:56 -07:00
|
|
|
# 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++
|
|
|
|
CP = $(TRGT)objcopy
|
|
|
|
AS = $(TRGT)gcc -x assembler-with-cpp
|
2017-03-22 04:08:20 -07:00
|
|
|
AR = $(TRGT)ar
|
2015-07-10 06:01:56 -07:00
|
|
|
OD = $(TRGT)objdump
|
|
|
|
SZ = $(TRGT)size
|
|
|
|
HEX = $(CP) -O ihex
|
|
|
|
BIN = $(CP) -O binary
|
2021-11-02 04:41:41 -07:00
|
|
|
# OpenBLT flasher expects srec files
|
|
|
|
SREC = $(CP) -O srec
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
# ARM-specific options here
|
|
|
|
AOPT =
|
|
|
|
|
|
|
|
# THUMB-specific options here
|
|
|
|
TOPT = -mthumb -DTHUMB
|
|
|
|
|
|
|
|
# Define C warning options here
|
|
|
|
CWARN = -Wall -Wextra -Wstrict-prototypes
|
|
|
|
|
|
|
|
# Define C++ warning options here
|
|
|
|
CPPWARN = -Wall -Wextra
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compiler settings
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# Start of user section
|
|
|
|
#
|
|
|
|
|
|
|
|
# List all user C define here, like -D_DEBUG=1
|
|
|
|
UDEFS =
|
|
|
|
|
|
|
|
# Define ASM defines here
|
|
|
|
UADEFS =
|
|
|
|
|
|
|
|
# List all user directories here
|
|
|
|
UINCDIR =
|
|
|
|
|
|
|
|
# List the user directory to look for the libraries here
|
|
|
|
ULIBDIR =
|
|
|
|
|
|
|
|
# List all user libraries here
|
2021-04-27 04:57:08 -07:00
|
|
|
ULIBS = -lm --specs=nano.specs
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# End of user defines
|
|
|
|
##############################################################################
|
|
|
|
|
2018-12-15 21:21:15 -08:00
|
|
|
include $(RULESFILE)
|
2021-07-25 18:23:23 -07:00
|
|
|
|
2021-11-05 16:28:55 -07:00
|
|
|
openblt:
|
2022-05-24 12:23:55 -07:00
|
|
|
make -f $(PROJECT_DIR)/hw_layer/openblt/openblt.mk
|
2021-11-05 16:28:55 -07:00
|
|
|
|
|
|
|
openblt_clean:
|
2022-05-24 12:23:55 -07:00
|
|
|
make -f $(PROJECT_DIR)/hw_layer/openblt/openblt.mk clean
|
2021-11-05 16:28:55 -07:00
|
|
|
|
2021-07-25 18:23:23 -07:00
|
|
|
# Enable precompiled header
|
|
|
|
include rusefi_pch.mk
|
2021-11-11 08:51:35 -08:00
|
|
|
|
|
|
|
POST_MAKE_ALL_RULE_HOOK: $(BUILDDIR)/$(PROJECT).elf
|
|
|
|
@java -jar ../java_tools/gcc_map_reader.jar $(BUILDDIR)/$(PROJECT).map | grep Total || echo Unable to run gcc_map_reader
|
|
|
|
@$(TRGT)objdump -h $(BUILDDIR)/$(PROJECT).elf | grep -w ram4
|