diff options
| author | Peter Jones <pjones@redhat.com> | 2021-03-08 12:42:21 -0500 |
|---|---|---|
| committer | Jan Setje-Eilers <73182357+jsetje@users.noreply.github.com> | 2021-03-09 13:52:53 -0800 |
| commit | 7d5df1cebdbdc3ed11cde165a752cf358878aa8a (patch) | |
| tree | 02433cd8c51f40885f059c8137f4154dbd426037 /Make.defaults | |
| parent | 1954ef164a55cbc4369f513cca3fb43f3550d81a (diff) | |
| download | efi-boot-shim-7d5df1cebdbdc3ed11cde165a752cf358878aa8a.tar.gz efi-boot-shim-7d5df1cebdbdc3ed11cde165a752cf358878aa8a.zip | |
static analysis: make our build targets work better
This improves our static analysis targets by making them work better
with our make variables, and inhibits the use of ccache while building
those.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Make.defaults')
| -rw-r--r-- | Make.defaults | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Make.defaults b/Make.defaults index 5f30e292..7f1b8015 100644 --- a/Make.defaults +++ b/Make.defaults @@ -28,6 +28,15 @@ DASHJ ?= -j$(shell echo $$(($$(grep -c "^model name" /proc/cpuinfo) + 1))) ARCH ?= $(shell $(CC) -dumpmachine | cut -f1 -d- | sed s,i[3456789]86,ia32,) OBJCOPY_GTE224 = $(shell expr `$(OBJCOPY) --version |grep ^"GNU objcopy" | sed 's/^.*\((.*)\|version\) //g' | cut -f1-2 -d.` \>= 2.24) OPTIMIZATIONS ?= -Os +FA_OPTIMIZATIONS ?= -O2 +ifneq ($(FANALYZER),) +override OPTIMIZATIONS := $(FA_OPTIMIZATIONS) +override CCACHE_DISABLE := true +endif +export OPTIMIZATIONS +ifneq ($(CCACHE_DISABLE),) +export CCACHE_DISABLE +endif SUBDIRS = $(TOPDIR)/Cryptlib $(TOPDIR)/lib |
