From c835ddf4e9e4992e72fdc110ea9e39c506c88d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Mon, 13 Nov 2017 15:18:31 +0100 Subject: [PATCH] cpu/mips32r2_common: only build newlib_syscalls_mips_uhi when needed --- cpu/mips32r2_common/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cpu/mips32r2_common/Makefile b/cpu/mips32r2_common/Makefile index 9524c71294..09b06320e3 100644 --- a/cpu/mips32r2_common/Makefile +++ b/cpu/mips32r2_common/Makefile @@ -1,4 +1,9 @@ MODULE = cpu -DIRS = periph newlib_syscalls_mips_uhi + +DIRS = periph + +ifneq (,$(filter newlib_syscalls_mips_uhi,$(USEMODULE))) + DIRS += newlib_syscalls_mips_uhi +endif include $(RIOTBASE)/Makefile.base