diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-11 23:35:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-11 23:35:36 +0000 |
commit | bf91815c3fd4be584af323447605624b33932f63 (patch) | |
tree | 3f20fc7294bd7fdf20bcd4b5110f1dccb6165cd0 /nuttx/arch/arm/src/lpc17xx/Make.defs | |
parent | df9cb3ba59cdd40da994ff9ab6b153ef12875d9e (diff) | |
download | px4-nuttx-bf91815c3fd4be584af323447605624b33932f63.tar.gz px4-nuttx-bf91815c3fd4be584af323447605624b33932f63.tar.bz2 px4-nuttx-bf91815c3fd4be584af323447605624b33932f63.zip |
Add a stub that can be used when networking is enabled, but there is no ethernet driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3368 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/Make.defs')
-rwxr-xr-x | nuttx/arch/arm/src/lpc17xx/Make.defs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/Make.defs b/nuttx/arch/arm/src/lpc17xx/Make.defs index 3665b9cce..74f0e3188 100755 --- a/nuttx/arch/arm/src/lpc17xx/Make.defs +++ b/nuttx/arch/arm/src/lpc17xx/Make.defs @@ -48,6 +48,12 @@ CMN_CSRCS = up_assert.c up_blocktask.c up_copystate.c up_createstack.c \ up_sigdeliver.c up_unblocktask.c up_usestack.c up_doirq.c \ up_hardfault.c up_svcall.c +ifeq ($(CONFIG_NET),y) +ifneq ($(CONFIG_LPC17_ETHERNET),y) +CMN_CSRCS += up_etherstub.c +endif +endif + # Required LPC17xx files CHIP_ASRCS = @@ -77,6 +83,8 @@ ifeq ($(CONFIG_LPC17_GPDMA),y) CHIP_CSRCS += lpc17_gpdma.c endif -ifdef CONFIG_NET +ifeq ($(CONFIG_NET),y) +ifeq ($(CONFIG_LPC17_ETHERNET),y) CHIP_CSRCS += lpc17_ethernet.c endif +endif |