diff options
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 |