From 2df619d986ab0254409d3a34047c944a8ebe61bc Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Fri, 6 Aug 2010 14:53:21 +0000 Subject: [PATCH] update run_module.c git-svn-id: https://rt-thread.googlecode.com/svn/trunk@833 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/mini2440/SConscript | 4 ++-- bsp/mini2440/run_module.c | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bsp/mini2440/SConscript b/bsp/mini2440/SConscript index ef49448b7b..0f27b296e1 100644 --- a/bsp/mini2440/SConscript +++ b/bsp/mini2440/SConscript @@ -11,8 +11,8 @@ group['CPPPATH'] = [RTT_ROOT + '/bsp/mini2440'] group['CPPDEFINES'] = [] group['LINKFLAGS'] = '' -src_bsp = ['application.c', 'startup.c', 'board.c', 'rtc_calendar.c', 'calibration.c', 'info.c', 'today.c', 'picture.c', 'osc.c', 'device_info.c', 'run_module.c'] -src_drv = ['console.c', 'led.c'] +src_bsp = ['application.c', 'startup.c', 'board.c', 'rtc_calendar.c', 'calibration.c'] +src_drv = ['console.c', 'led.c', 'run_module.c'] if rtconfig.RT_USING_DFS: src_drv += ['sdcard.c'] diff --git a/bsp/mini2440/run_module.c b/bsp/mini2440/run_module.c index 30e2cfaa7c..0ad6ac5e2b 100644 --- a/bsp/mini2440/run_module.c +++ b/bsp/mini2440/run_module.c @@ -43,10 +43,6 @@ void run_module(const char* filename) rt_kprintf("read %d bytes from file\n", length); module_name = strrchr(filename, '/'); module = rt_module_load((void *)buffer, ++module_name); - if(module != RT_NULL) - { - // rt_module_run(module); - } close(fd); }