aboutsummaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-10-21 14:39:13 +0100
committerGitHub <noreply@github.com>2021-10-21 14:39:13 +0100
commitb36e0c66581b5ec0e3aff5212857e9694115e66c (patch)
tree9f5b4e7b2a294353598e123a659897cebe83a23d /tmk_core
parent1816006121de991581d50d0bc6b5a653e2b3ccd2 (diff)
downloadqmk_firmware-b36e0c66581b5ec0e3aff5212857e9694115e66c.tar.gz
qmk_firmware-b36e0c66581b5ec0e3aff5212857e9694115e66c.zip
Move USE_CCACHE logic to common location (#14899)
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/arm_atsam.mk2
-rw-r--r--tmk_core/avr.mk2
-rw-r--r--tmk_core/chibios.mk6
-rw-r--r--tmk_core/native.mk2
-rw-r--r--tmk_core/rules.mk7
5 files changed, 8 insertions, 11 deletions
diff --git a/tmk_core/arm_atsam.mk b/tmk_core/arm_atsam.mk
index b29de9132..b49bf764d 100644
--- a/tmk_core/arm_atsam.mk
+++ b/tmk_core/arm_atsam.mk
@@ -2,7 +2,7 @@
2############################################################################## 2##############################################################################
3# Compiler settings 3# Compiler settings
4# 4#
5CC = arm-none-eabi-gcc 5CC = $(CC_PREFIX) arm-none-eabi-gcc
6OBJCOPY = arm-none-eabi-objcopy 6OBJCOPY = arm-none-eabi-objcopy
7OBJDUMP = arm-none-eabi-objdump 7OBJDUMP = arm-none-eabi-objdump
8SIZE = arm-none-eabi-size 8SIZE = arm-none-eabi-size
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk
index 940e95397..c52262273 100644
--- a/tmk_core/avr.mk
+++ b/tmk_core/avr.mk
@@ -2,7 +2,7 @@
2############################################################################## 2##############################################################################
3# Compiler settings 3# Compiler settings
4# 4#
5CC = avr-gcc 5CC = $(CC_PREFIX) avr-gcc
6OBJCOPY = avr-objcopy 6OBJCOPY = avr-objcopy
7OBJDUMP = avr-objdump 7OBJDUMP = avr-objdump
8SIZE = avr-size 8SIZE = avr-size
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk
index c520d6025..957a25922 100644
--- a/tmk_core/chibios.mk
+++ b/tmk_core/chibios.mk
@@ -398,12 +398,6 @@ OPT_DEFS += -DPROTOCOL_CHIBIOS
398# Workaround to stop ChibiOS from complaining about new GCC -- it's been fixed for 7/8/9 already 398# Workaround to stop ChibiOS from complaining about new GCC -- it's been fixed for 7/8/9 already
399OPT_DEFS += -DPORT_IGNORE_GCC_VERSION_CHECK=1 399OPT_DEFS += -DPORT_IGNORE_GCC_VERSION_CHECK=1
400 400
401# Speed up recompilations by opt-in usage of ccache
402USE_CCACHE ?= no
403ifneq ($(USE_CCACHE),no)
404 CC_PREFIX ?= ccache
405endif
406
407# Construct GCC toolchain 401# Construct GCC toolchain
408CC = $(CC_PREFIX) $(TOOLCHAIN)gcc 402CC = $(CC_PREFIX) $(TOOLCHAIN)gcc
409OBJCOPY = $(TOOLCHAIN)objcopy 403OBJCOPY = $(TOOLCHAIN)objcopy
diff --git a/tmk_core/native.mk b/tmk_core/native.mk
index f609fd0e6..eb2424ec5 100644
--- a/tmk_core/native.mk
+++ b/tmk_core/native.mk
@@ -1,7 +1,7 @@
1SYSTEM_TYPE := $(shell gcc -dumpmachine) 1SYSTEM_TYPE := $(shell gcc -dumpmachine)
2GCC_VERSION := $(shell gcc --version 2>/dev/null) 2GCC_VERSION := $(shell gcc --version 2>/dev/null)
3 3
4CC = gcc 4CC = $(CC_PREFIX) gcc
5OBJCOPY = 5OBJCOPY =
6OBJDUMP = 6OBJDUMP =
7SIZE = 7SIZE =
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index 5a629d1eb..4c547cfd2 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -69,8 +69,11 @@ CSTANDARD = -std=gnu99
69#CXXDEFS += -D__STDC_CONSTANT_MACROS 69#CXXDEFS += -D__STDC_CONSTANT_MACROS
70#CXXDEFS += 70#CXXDEFS +=
71 71
72 72# Speed up recompilations by opt-in usage of ccache
73 73USE_CCACHE ?= yes
74ifneq ($(USE_CCACHE),no)
75 CC_PREFIX ?= ccache
76endif
74 77
75#---------------- Compiler Options C ---------------- 78#---------------- Compiler Options C ----------------
76# -g*: generate debugging information 79# -g*: generate debugging information