mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
add EMAC driver.
This commit is contained in:
@@ -3,7 +3,16 @@ Import('rtconfig')
|
||||
from building import *
|
||||
|
||||
cwd = os.path.join(str(Dir('#')), 'drivers')
|
||||
src = Glob('*.c')
|
||||
|
||||
src = ['board.c']
|
||||
|
||||
# add uart driver.
|
||||
src += ['uart.c']
|
||||
|
||||
# add EMAC driver for Lwip.
|
||||
if GetDepend('RT_USING_LWIP') == True:
|
||||
src += ['emac.c', 'app_phy.c']
|
||||
|
||||
CPPPATH = [cwd]
|
||||
|
||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Reference in New Issue
Block a user