mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
1. change mtd to mtd_nor, 2. update jffs2
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2140 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
Import('RTT_ROOT')
|
||||
Import('rtconfig')
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = Glob('*.c')
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
|
||||
mtd_nor = ['mtd_nor.c']
|
||||
|
||||
mtd_nand = ['mtd_nand.c']
|
||||
|
||||
if GetDepend(['RT_USING_MTD_NOR']):
|
||||
src = src + mtd_nor
|
||||
if GetDepend(['RT_USING_MTD_NAND']):
|
||||
src = src + mtd_nand
|
||||
|
||||
CPPPATH = [cwd + '/../include']
|
||||
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_MTD'], CPPPATH = CPPPATH)
|
||||
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
|
||||
Reference in New Issue
Block a user