From 55a5cab48f8c7694856296096ed2dec568e12ba7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 5 Apr 2015 13:26:25 -0600 Subject: Calypso: SPI built only if CONFIG_SPI --- nuttx/arch/arm/src/calypso/Make.defs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nuttx/arch/arm/src/calypso/Make.defs b/nuttx/arch/arm/src/calypso/Make.defs index 07145d053..009100c43 100644 --- a/nuttx/arch/arm/src/calypso/Make.defs +++ b/nuttx/arch/arm/src/calypso/Make.defs @@ -1,7 +1,7 @@ ############################################################################ # calypso/Make.defs # -# Copyright (C) 2007, 2013-2014 Gregory Nutt. All rights reserved. +# Copyright (C) 2007, 2013-2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt # # Copyright (C) 2011 Stefan Richter. All rights reserved. @@ -57,8 +57,12 @@ CMN_CSRCS += up_checkstack.c endif CHIP_ASRCS = calypso_lowputc.S -CHIP_CSRCS = calypso_irq.c calypso_heap.c calypso_serial.c calypso_spi.c -CHIP_CSRCS += clock.c calypso_uwire.c calypso_armio.c calypso_keypad.c +CHIP_CSRCS = calypso_irq.c calypso_heap.c calypso_serial.c clock.c +CHIP_CSRCS += calypso_uwire.c calypso_armio.c calypso_keypad.c + +ifeq ($(CONFIG_SPI),y) +CHIP_CSRCS += calypso_spi.c +endif ifneq ($(CONFIG_SCHED_TICKLESS),y) CHIP_CSRCS += calypso_timer.c -- cgit v1.2.3