2020-07-09 07:27:20 -07:00
|
|
|
#!/bin/bash
|
2020-07-01 11:09:01 -07:00
|
|
|
|
|
|
|
echo "Compiling for Kinetis MKE16F512"
|
|
|
|
# TODO: somehow this -DDUMMY is helping us to not mess up the parameters, why?!
|
|
|
|
# https://github.com/rusefi/rusefi/issues/684
|
2022-04-18 12:45:29 -07:00
|
|
|
export "EXTRA_PARAMS=-DDUMMY -DCPU_MKE16F512VLH16 -DCPU_MKE16F512VLH16_cm4 -D__USE_CMSIS \
|
2022-02-09 16:55:04 -08:00
|
|
|
-DEFI_ENABLE_ASSERTS=FALSE \
|
|
|
|
-DCH_DBG_ENABLE_CHECKS=FALSE \
|
|
|
|
-DCH_DBG_ENABLE_ASSERTS=FALSE \
|
|
|
|
-DCH_DBG_ENABLE_STACK_CHECK=FALSE \
|
|
|
|
-DCH_DBG_FILL_THREADS=FALSE \
|
|
|
|
-DCH_DBG_THREADS_PROFILING=FALSE \
|
|
|
|
"
|
2020-07-01 11:09:01 -07:00
|
|
|
# set BUILDDIR=build_kinetis
|
|
|
|
export BUILDDIR=build
|
|
|
|
export DEBUG_LEVEL_OPT="-O2"
|
|
|
|
export USE_FATFS=no
|
|
|
|
export USE_BOOTLOADER=no
|
|
|
|
# -DCH_DBG_ENABLE_CHECKS=FALSE
|
|
|
|
|
|
|
|
# rm -f ${BUILDDIR}/rusefi_kinetis.*
|
|
|
|
|
|
|
|
# make -r -j4
|
|
|
|
|
2022-04-18 16:05:27 -07:00
|
|
|
bash ../common_make.sh kinetis kinetis
|