forked from xuos/xiuos
APP_Framework/Applications/:add configuration file about NNoM mnist example
This commit is contained in:
parent
cde42331ee
commit
7ece915772
|
@ -10,6 +10,7 @@ menu "knowing app"
|
||||||
source "$APP_DIR/Applications/knowing_app/k210_fft_test/Kconfig"
|
source "$APP_DIR/Applications/knowing_app/k210_fft_test/Kconfig"
|
||||||
source "$APP_DIR/Applications/knowing_app/image_processing/Kconfig"
|
source "$APP_DIR/Applications/knowing_app/image_processing/Kconfig"
|
||||||
source "$APP_DIR/Applications/knowing_app/cmsis_5_demo/Kconfig"
|
source "$APP_DIR/Applications/knowing_app/cmsis_5_demo/Kconfig"
|
||||||
|
source "$APP_DIR/Applications/knowing_app/nnom_demo/Kconfig"
|
||||||
|
|
||||||
endif
|
endif
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
menuconfig USING_NNOM_DEMOAPP
|
||||||
|
bool "NNOM demo app"
|
||||||
|
depends on USING_NNOM
|
||||||
|
default n
|
||||||
|
|
||||||
|
if USING_NNOM_DEMOAPP
|
||||||
|
|
||||||
|
config USING_NNOM_MNIST_DEMOAPP
|
||||||
|
bool "Using NNOM mnist demo app"
|
||||||
|
default n
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
import os
|
||||||
|
Import('RTT_ROOT')
|
||||||
|
from building import *
|
||||||
|
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
objs = []
|
||||||
|
list = os.listdir(cwd)
|
||||||
|
|
||||||
|
for d in list:
|
||||||
|
path = os.path.join(cwd, d)
|
||||||
|
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||||
|
objs = objs + SConscript(os.path.join(path, 'SConscript'))
|
||||||
|
|
||||||
|
Return('objs')
|
|
@ -0,0 +1,10 @@
|
||||||
|
import os
|
||||||
|
from building import *
|
||||||
|
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
src = Glob('*.c')
|
||||||
|
path = [cwd]
|
||||||
|
|
||||||
|
group = DefineGroup('NNOM mnist application', src, depend = ['USING_NNOM_MNIST_DEMOAPP'], CPPPATH = path)
|
||||||
|
|
||||||
|
Return('group')
|
Loading…
Reference in New Issue