aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2019-05-12 13:42:25 +0900
committerjaseg <git@jaseg.net>2019-05-12 13:42:25 +0900
commitbeaff00ee905a507727195e67ab828a19516047c (patch)
tree83a7930b2488570d8fe33466c8b4fa6f70b23b3c
parentd83285ef7a04c3b385bd3857ec98847b532b7f35 (diff)
download8seg-beaff00ee905a507727195e67ab828a19516047c.tar.gz
8seg-beaff00ee905a507727195e67ab828a19516047c.tar.bz2
8seg-beaff00ee905a507727195e67ab828a19516047c.zip
Add .clang logic
-rw-r--r--center_fw/Makefile3
-rw-r--r--driver_fw/Makefile3
2 files changed, 6 insertions, 0 deletions
diff --git a/center_fw/Makefile b/center_fw/Makefile
index 2123b18..9839afe 100644
--- a/center_fw/Makefile
+++ b/center_fw/Makefile
@@ -52,6 +52,9 @@ LDFLAGS += -L$(CMSIS_PATH)/Lib/GCC -larm_cortexM0l_math
all: main.elf
+.clang:
+ echo flags = $(CFLAGS) > .clang
+
cmsis_exports.c: $(CMSIS_DEV_PATH)/Include/stm32f030x6.h $(CMSIS_PATH)/Include/core_cm0.h
python3 tools/gen_cmsis_exports.py $^ > $@
diff --git a/driver_fw/Makefile b/driver_fw/Makefile
index 84098e2..f6a20ae 100644
--- a/driver_fw/Makefile
+++ b/driver_fw/Makefile
@@ -39,6 +39,9 @@ SOURCES = main.c startup_stm32f030x6.s system_stm32f0xx.c base.c $(HAL_PATH)/Src
all: main.elf
+.clang:
+ echo flags = $(CFLAGS) > .clang
+
cmsis_exports.c: $(CMSIS_DEV_PATH)/Include/stm32f030x6.h $(CMSIS_PATH)/Include/core_cm0.h
python3 gen_cmsis_exports.py $^ > $@