27 lines
		
	
	
		
			641 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			641 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from building import * | ||
|  | from gcc import GetGCCLikePLATFORM | ||
|  | 
 | ||
|  | cwd     = GetCurrentDir() | ||
|  | src     = Split('''
 | ||
|  | shell.c | ||
|  | msh.c | ||
|  | msh_parse.c | ||
|  | ''')
 | ||
|  | 
 | ||
|  | CPPPATH = [cwd] | ||
|  | LOCAL_CFLAGS = '' | ||
|  | 
 | ||
|  | if rtconfig.PLATFORM in ['gcc']: # only for GCC | ||
|  |     LOCAL_CFLAGS += ' -Wstack-usage=' + str(GetConfigValue('FINSH_THREAD_STACK_SIZE')) # check finsh thread stack size | ||
|  | 
 | ||
|  | if GetDepend('MSH_USING_BUILT_IN_COMMANDS'): | ||
|  |     src += ['cmd.c'] | ||
|  | 
 | ||
|  | if GetDepend('DFS_USING_POSIX'): | ||
|  |     src += ['msh_file.c'] | ||
|  | 
 | ||
|  | group = DefineGroup('Finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH, | ||
|  |                     LOCAL_CFLAGS = LOCAL_CFLAGS) | ||
|  | 
 | ||
|  | Return('group') |