[bugfix] Open the #define RT_USING_LWIP in rtconfig.h , then build it , the stm32_eth.h can not find.

Signed-off-by: pangwei <271372443@qq.com>
This commit is contained in:
pangwei 2015-05-08 11:34:17 +08:00
parent 59da84d85a
commit d01bab0e39
4 changed files with 5930 additions and 2 deletions

View File

@ -20,7 +20,7 @@
#include <lwip/sys.h>
#include <lwip/api.h>
#include <netif/ethernetif.h>
#include "stm32_eth.h"
#include "stm32f4xx_eth.h"
#endif
#ifdef RT_USING_GDB

View File

@ -3,9 +3,25 @@ Import('rtconfig')
from building import *
cwd = os.path.join(str(Dir('#')), 'drivers')
src = Glob('*.c')
# add the general drivers.
src = Split("""
board.c
stm32f4xx_it.c
usart.c
""")
# add Ethernet drivers.
if GetDepend('RT_USING_LWIP'):
src += ['stm32f4xx_eth.c']
# add gpio drivers.
if GetDepend('RT_USING_PIN'):
src += ['gpio.c']
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff