diff options
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r-- | Makefile.toolchain | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain index 8bbac56dcd..1d1b458e3e 100644 --- a/Makefile.toolchain +++ b/Makefile.toolchain @@ -88,3 +88,9 @@ LDFLAGS=-nostdlib -Wl,-X -Wl,--gc-sections -Wl,--build-id=none $(LDFLAGS_EXTRA) BUILD_LDFLAGS=$(LIBFTDI_LDLIBS) HOST_TEST_LDFLAGS=-T core/host/host_exe.lds -lrt -pthread -rdynamic -lm\ $(if $(TEST_COVERAGE),-fprofile-arcs,) + +# utility function to provide overridable defaults +# $1: name of variable to set +# $2: first default to use +# $3: second default to use +set-option = $(eval $1?=$$(if $(2),$(2),$(3))) |