yosys: add new package (#41416)
* Add EDA tools, yosys to Spack * Add maintainers * Move from format to f-strings
This commit is contained in:
		
							
								
								
									
										46
									
								
								var/spack/repos/builtin/packages/yosys/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								var/spack/repos/builtin/packages/yosys/package.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | |||||||
|  | # Copyright 2013-2023 Lawrence Livermore National Security, LLC and other | ||||||
|  | # Spack Project Developers. See the top-level COPYRIGHT file for details. | ||||||
|  | # | ||||||
|  | # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||||||
|  | 
 | ||||||
|  | from spack.package import * | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class Yosys(MakefilePackage): | ||||||
|  |     """Yosys is a framework for RTL synthesis tools. It currently has extensive | ||||||
|  |     Verilog-2005 support and provides a basic set of synthesis algorithms for | ||||||
|  |     various application domains. | ||||||
|  | 
 | ||||||
|  |     Yosys can be adapted to perform any synthesis job by combining the existing | ||||||
|  |     passes (algorithms) using synthesis scripts and adding additional passes | ||||||
|  |     as needed by extending the yosys C++ code base. | ||||||
|  | 
 | ||||||
|  |     Yosys is free software licensed under the ISC license (a GPL compatible | ||||||
|  |     license that is similar in terms to the MIT license or the 2-clause BSD license). | ||||||
|  |     """ | ||||||
|  | 
 | ||||||
|  |     homepage = "https://yosyshq.net/yosys" | ||||||
|  |     url = "https://github.com/YosysHQ/yosys/archive/refs/tags/yosys-0.35.tar.gz" | ||||||
|  |     git = "https://github.com/YosysHQ/yosys.git" | ||||||
|  | 
 | ||||||
|  |     maintainers("davekeeshan") | ||||||
|  | 
 | ||||||
|  |     version("master", branch="master") | ||||||
|  | 
 | ||||||
|  |     version("0.35", sha256="a00643cf4cf83701bfa2b358066eb9d360393d30e8f5a8e65f619ab1fd10474a") | ||||||
|  |     version("0.34", sha256="57897bc3fe5fdc940e9f3f3ae03b84f5f8e9149b6f26d3699f7ecb9f31a41ae0") | ||||||
|  | 
 | ||||||
|  |     depends_on("automake", type="build") | ||||||
|  |     depends_on("readline") | ||||||
|  |     depends_on("pkg-config") | ||||||
|  |     depends_on("tcl") | ||||||
|  |     depends_on("zlib") | ||||||
|  |     depends_on("llvm") | ||||||
|  | 
 | ||||||
|  |     def setup_build_environment(self, env): | ||||||
|  |         env.set("PREFIX", self.prefix) | ||||||
|  |         env.set("CXXFLAGS", f'-I{self.spec["readline"].prefix.include}') | ||||||
|  |         env.set( | ||||||
|  |             "LDFLAGS", f'-L{self.spec["readline"].prefix.lib} -L{self.spec["zlib"].prefix.lib}' | ||||||
|  |         ) | ||||||
|  |         env.set("ABC_READLINE_INCLUDES", f'-I{self.spec["readline"].prefix.include}') | ||||||
		Reference in New Issue
	
	Block a user
	 Dave Keeshan
					Dave Keeshan