2009-12-26 15:18:48 +00:00
|
|
|
############################################################################
|
|
|
|
# configs/ea3131/src/Makefile
|
|
|
|
#
|
2010-03-28 21:28:12 +00:00
|
|
|
# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
2012-09-06 22:25:51 +00:00
|
|
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
2009-12-26 15:18:48 +00:00
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in
|
|
|
|
# the documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
|
|
|
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
|
|
# used to endorse or promote products derived from this software
|
|
|
|
# without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
-include $(TOPDIR)/Make.defs
|
|
|
|
|
2013-11-15 15:56:24 -06:00
|
|
|
ASRCS =
|
2015-03-21 14:12:58 -06:00
|
|
|
CSRCS = lpc31_boot.c lpc31_clkinit.c
|
2009-12-26 15:18:48 +00:00
|
|
|
|
2010-09-11 01:58:26 +00:00
|
|
|
ifeq ($(CONFIG_ARCH_BUTTONS),y)
|
2015-03-21 14:12:58 -06:00
|
|
|
CSRCS += lpc31_buttons.c
|
2010-09-11 01:58:26 +00:00
|
|
|
endif
|
2013-11-15 15:56:24 -06:00
|
|
|
|
2013-07-24 10:08:32 -06:00
|
|
|
ifeq ($(CONFIG_LPC31_EXTDRAM),y)
|
2015-03-21 14:12:58 -06:00
|
|
|
CSRCS += lpc31_mem.c
|
2010-09-11 01:58:26 +00:00
|
|
|
endif
|
2013-11-15 15:56:24 -06:00
|
|
|
|
2010-09-11 01:58:26 +00:00
|
|
|
ifeq ($(CONFIG_ARCH_LEDS),y)
|
2015-03-21 14:12:58 -06:00
|
|
|
CSRCS += lpc31_leds.c
|
2010-09-11 01:58:26 +00:00
|
|
|
endif
|
2013-11-15 15:56:24 -06:00
|
|
|
|
2012-09-06 22:25:51 +00:00
|
|
|
ifeq ($(CONFIG_LPC31_SPI),y)
|
2015-03-21 14:12:58 -06:00
|
|
|
CSRCS += lpc31_spi.c
|
2010-09-11 01:58:26 +00:00
|
|
|
endif
|
2013-11-15 15:56:24 -06:00
|
|
|
|
2011-03-18 20:35:31 +00:00
|
|
|
ifeq ($(CONFIG_NSH_ARCHINIT),y)
|
2016-02-04 12:03:09 -06:00
|
|
|
CSRCS += lpc31_appinit.c
|
2009-12-26 15:18:48 +00:00
|
|
|
endif
|
2013-11-15 15:56:24 -06:00
|
|
|
|
2010-08-17 19:28:51 +00:00
|
|
|
ifeq ($(CONFIG_PAGING),y)
|
2015-03-21 14:12:58 -06:00
|
|
|
CSRCS += lpc31_fillpage.c
|
2013-11-15 15:56:24 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_LPC31_USBOTG),y)
|
|
|
|
ifeq ($(CONFIG_USBHOST),y)
|
2015-03-21 14:12:58 -06:00
|
|
|
CSRCS += lpc31_usbhost.c
|
2010-08-17 19:28:51 +00:00
|
|
|
endif
|
2012-01-25 20:17:59 +00:00
|
|
|
ifeq ($(CONFIG_USBMSC),y)
|
2015-03-21 14:12:58 -06:00
|
|
|
CSRCS += lpc31_usbmsc.c
|
2010-03-28 21:28:12 +00:00
|
|
|
endif
|
2013-11-15 15:56:24 -06:00
|
|
|
endif
|
|
|
|
|
2015-09-04 16:42:34 -06:00
|
|
|
include $(TOPDIR)/configs/Board.mk
|