#NEWLINE# def prepare_params( self ) : #NEWLINE# #INDENT# self . archive_file_name = 'core.a' #NEWLINE# self . params [ 'build.path' ] = self . build_path #NEWLINE# self . params [ 'build.project_name' ] = self . project . get_name ( ) #NEWLINE# self . params [ 'archive_file' ] = self . archive_file_name #NEWLINE# extra_flag = ( ' ' + self . settings . get ( 'extra_flag' , '' ) ) #NEWLINE# c_flags = ( self . params . get ( 'compiler.c.flags' , '' ) + extra_flag ) #NEWLINE# cpp_flags = ( self . params . get ( 'compiler.cpp.flags' , '' ) + extra_flag ) #NEWLINE# S_flags = ( self . params . get ( 'compiler.S.flags' , '' ) + extra_flag ) #NEWLINE# self . params [ 'compiler.c.flags' ] = c_flags #NEWLINE# self . params [ 'compiler.cpp.flags' ] = cpp_flags #NEWLINE# self . params [ 'compiler.S.flags' ] = S_flags #NEWLINE# project_path = self . project . get_path ( ) #NEWLINE# include_paths = ( [ project_path ] + self . core_paths ) #NEWLINE# target_arch = self . arduino_info . get_target_board_info ( ) . get_target_arch ( ) #NEWLINE# for lib in self . libraries : #NEWLINE# #INDENT# src_dirs = lib . list_src_dirs ( target_arch ) #NEWLINE# include_paths += [ d . get_path ( ) for d in src_dirs ] #NEWLINE# #UNINDENT# includes = [ ( '"-I%s"' % path ) for path in include_paths ] #NEWLINE# self . params [ 'includes' ] = ' ' . join ( includes ) #NEWLINE# ide_path = self . arduino_info . get_ide_dir ( ) . get_path ( ) #NEWLINE# if ( not ( 'compiler.path' in self . params ) ) : #NEWLINE# #INDENT# compiler_path = '{runtime.ide.path}/hardware/tools/avr/bin/' #NEWLINE# self . params [ 'compiler.path' ] = compiler_path #NEWLINE# #UNINDENT# compiler_path = self . params . get ( 'compiler.path' ) #NEWLINE# compiler_path = compiler_path . replace ( '{runtime.ide.path}' , ide_path ) #NEWLINE# if ( not os . path . isdir ( compiler_path ) ) : #NEWLINE# #INDENT# self . params [ 'compiler.path' ] = '' #NEWLINE# #UNINDENT# self . params = arduino_target_params . replace_param_values ( self . params )