sbsv2/raptor/python/raptor_makefile.py
branchwip
changeset 5 593a8820b912
parent 3 e1eecf4d390d
equal deleted inserted replaced
3:e1eecf4d390d 5:593a8820b912
   132 		if guard:
   132 		if guard:
   133 			self.file.write("endif\n\n")
   133 			self.file.write("endif\n\n")
   134 
   134 
   135 		return True
   135 		return True
   136 
   136 
       
   137 	def addInclude(self, makefilename):
       
   138 		"""
       
   139 		"""
       
   140 		# create the directory if it does not exist
       
   141 
       
   142 		self.open()
       
   143 		# now we can write the values into the makefile
       
   144 		self.file.write("include %s\n" % (makefilename+"."+self.selector.name))
       
   145 
   137 	def close(self):
   146 	def close(self):
   138 		if self.file is not None:
   147 		if self.file is not None:
   139 			if self.epilogue != None:
   148 			if self.epilogue != None:
   140 				self.file.write(self.epilogue)
   149 				self.file.write(self.epilogue)
   141 			self.file.write('# END OF GENERATED MAKEFILE : DO NOT EDIT\n')
   150 			self.file.write('# END OF GENERATED MAKEFILE : DO NOT EDIT\n')
   189 		"""Find out which makefiles to write this FLM call to 
   198 		"""Find out which makefiles to write this FLM call to 
   190 		   and write it to those (e.g. the exports makefile) """
   199 		   and write it to those (e.g. the exports makefile) """
   191 		for f in self.makefiles:
   200 		for f in self.makefiles:
   192 			f.addCall(specname, configname, ifname, useAllInterfaces, flmpath, parameters, guard)
   201 			f.addCall(specname, configname, ifname, useAllInterfaces, flmpath, parameters, guard)
   193 
   202 
       
   203 	def addInclude(self, makefilename):
       
   204 		"""include a makefile from each of the makefiles in the set - has the selector name appended to it."""
       
   205 		for f in self.makefiles:
       
   206 			f.addInclude(makefilename)
       
   207 
   194 	def makefileNames(self):
   208 	def makefileNames(self):
   195 		for mf in self.makefiles:
   209 		for mf in self.makefiles:
   196 			yield str(mf.filename)
   210 			yield str(mf.filename)
   197 	
   211 	
   198 	def ignoreTargets(self, makefile):
   212 	def ignoreTargets(self, makefile):