From b0b273f8561d19b17fd86a9cdf22958a97519ed5 Mon Sep 17 00:00:00 2001 From: Dan McGregor Date: Mon, 16 Nov 2015 10:22:17 -0600 Subject: [PATCH 1/2] Add global tags to gitignore Ignore the file generated by GNU Global (gtags). --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index d2d0724136..06845168fb 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,7 @@ build/ .DS_Store !converter/*/binary/*.hex !keyboard/*/binary/*.hex +GPATH +GRTAGS +GTAGS +GTAGSROOT From 70b08de2b5d49e5b1440b7b3b2e9e87854e180b5 Mon Sep 17 00:00:00 2001 From: Dan McGregor Date: Tue, 25 Apr 2017 15:30:41 -0600 Subject: [PATCH 2/2] Use -pipe to avoid temporary files With this the debugging information has predictable filenames, which helps to support reproducable builds. --- tmk_core/rules.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk index 66b4cbd88e..d8bc992266 100644 --- a/tmk_core/rules.mk +++ b/tmk_core/rules.mk @@ -116,6 +116,7 @@ CPPDEFS += $(OPT_DEFS) # -O*: optimization level # -f...: tuning, see GCC manual and avr-libc documentation # -Wall...: warning level +# -pipe: avoid temporary files # -Wa,...: tell GCC to pass this to the assembler. # -adhlns...: create assembler listing CFLAGS = -g$(DEBUG) @@ -136,6 +137,7 @@ CFLAGS += -Wstrict-prototypes #CFLAGS += -Wundef #CFLAGS += -Wunreachable-code #CFLAGS += -Wsign-compare +CFLAGS += -pipe CFLAGS += -Wa,-adhlns=$(@:%.o=%.lst) CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) CFLAGS += $(CSTANDARD) @@ -149,6 +151,7 @@ endif # -O*: optimization level # -f...: tuning, see GCC manual and avr-libc documentation # -Wall...: warning level +# -pipe: avoid temporary files # -Wa,...: tell GCC to pass this to the assembler. # -adhlns...: create assembler listing CPPFLAGS = -g$(DEBUG) @@ -170,6 +173,7 @@ CPPFLAGS += -Wundef #CPPFLAGS += -Wstrict-prototypes #CPPFLAGS += -Wunreachable-code #CPPFLAGS += -Wsign-compare +CPPFLAGS += -pipe CPPFLAGS += -Wa,-adhlns=$(@:%.o=%.lst) CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) #CPPFLAGS += $(CSTANDARD) @@ -179,6 +183,7 @@ endif #---------------- Assembler Options ---------------- +# -pipe: tell gcc to avoid temporary files # -Wa,...: tell GCC to pass this to the assembler. # -adhlns: create listing # -gstabs: have the assembler create line number information; note that @@ -187,7 +192,7 @@ endif # files -- see avr-libc docs [FIXME: not yet described there] # -listing-cont-lines: Sets the maximum number of continuation lines of hex # dump that will be displayed for a given single line of source input. -ASFLAGS = $(ADEFS) -Wa,-adhlns=$(@:%.o=%.lst),-gstabs,--listing-cont-lines=100 +ASFLAGS = $(ADEFS) -pipe -Wa,-adhlns=$(@:%.o=%.lst),-gstabs,--listing-cont-lines=100 ASFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) ifdef CONFIG_H ASFLAGS += -include $(CONFIG_H)