forked from RT-Thread/rt-thread
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: GuEe-GUI <[email protected]>
- Loading branch information
Showing
7 changed files
with
1,331 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
source "$RTT_DIR/components/drivers/mtd/Kconfig.nand" | ||
source "$RTT_DIR/components/drivers/mtd/Kconfig.nor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
menuconfig RT_USING_MTD_NAND | ||
bool "Using MTD Nand Flash device drivers" | ||
default n | ||
|
||
if RT_USING_MTD_NAND | ||
config RT_MTD_NAND_DEBUG | ||
bool "Enable MTD Nand operations debug information" | ||
default n | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
menuconfig RT_USING_MTD_NOR | ||
bool "Using MTD Nor Flash device drivers" | ||
default n | ||
|
||
config RT_USING_MTD_NOR_CFI | ||
bool "CFI Flash driver" | ||
depends on RT_USING_MTD_NOR | ||
depends on RT_USING_DM | ||
default n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
from building import * | ||
|
||
cwd = GetCurrentDir() | ||
src = [] | ||
depend = [''] | ||
group = [] | ||
|
||
if not GetDepend(['RT_USING_MTD_NOR']) and not GetDepend(['RT_USING_MTD_NAND']): | ||
Return('group') | ||
|
||
cwd = GetCurrentDir() | ||
CPPPATH = [cwd + '/../include'] | ||
group = [] | ||
|
||
src = [] | ||
|
||
if GetDepend(['RT_USING_MTD_NOR']): | ||
src += ['mtd_nor.c'] | ||
depend += ['RT_USING_MTD_NOR'] | ||
|
||
if GetDepend(['RT_USING_MTD_NAND']): | ||
src += ['mtd_nand.c'] | ||
depend += ['RT_USING_MTD_NAND'] | ||
|
||
if src: | ||
group = DefineGroup('DeviceDrivers', src, depend = depend, CPPPATH = CPPPATH) | ||
if GetDepend(['RT_USING_MTD_NOR_CFI']): | ||
src += ['mtd-cfi.c'] | ||
|
||
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH) | ||
|
||
Return('group') |
Oops, something went wrong.