Initial Commit
- initial default booting image
This commit is contained in:
44
package/z3/Config.in
Normal file
44
package/z3/Config.in
Normal file
@@ -0,0 +1,44 @@
|
||||
# z3 supports arch for which libc fenv.h provides all four macros:
|
||||
# FE_DOWNWARD, FE_TONEAREST, FE_TOWARDZERO, FE_UPWARD
|
||||
# See for example in glibc https://sourceware.org/git/glibc.git
|
||||
# git grep -E '^[[:space:]]*#[[:space:]]*define[[:space:]]+FE_(TONEAREST|UPWARD|DOWNWARD|TOWARDZERO)' sysdeps/
|
||||
config BR2_PACKAGE_Z3_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_aarch64 || BR2_aarch64_be
|
||||
default y if BR2_arcle
|
||||
default y if BR2_arm || BR2_armeb
|
||||
default y if BR2_i386
|
||||
default y if BR2_m68k
|
||||
# BR2_microblaze has only FE_TONEAREST
|
||||
default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
|
||||
default y if BR2_or1k
|
||||
default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
|
||||
default y if BR2_riscv
|
||||
default y if BR2_s390x
|
||||
# BR2_sh has only FE_{TONEAREST,TOWARDZERO}
|
||||
default y if BR2_sparc || BR2_sparc64
|
||||
default y if BR2_x86_64
|
||||
# BR2_xtensa supports only uclibc which does not have fenv.h
|
||||
|
||||
config BR2_PACKAGE_Z3
|
||||
bool "z3"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # c++17
|
||||
# z3 needs fenv.h which is not provided by uclibc
|
||||
depends on !BR2_TOOLCHAIN_USES_UCLIBC
|
||||
depends on BR2_PACKAGE_Z3_ARCH_SUPPORTS
|
||||
help
|
||||
Z3, also known as the Z3 Theorem Prover, is a cross-platform
|
||||
satisfiability modulo theories (SMT) solver.
|
||||
|
||||
https://github.com/Z3Prover/z3
|
||||
|
||||
if BR2_PACKAGE_Z3
|
||||
|
||||
config BR2_PACKAGE_Z3_PYTHON
|
||||
bool "Python bindings"
|
||||
depends on BR2_PACKAGE_PYTHON3
|
||||
select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime
|
||||
select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime
|
||||
|
||||
endif
|
||||
3
package/z3/z3.hash
Normal file
3
package/z3/z3.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 c68c3e5e4810b16126b8cb4c47eee85c1ac3e24a81914c8e371b40de9dd33ac7 z3-4.16.0.tar.gz
|
||||
sha256 e617cad2ab9347e3129c2b171e87909332174e17961c5c3412d0799469111337 LICENSE.txt
|
||||
22
package/z3/z3.mk
Normal file
22
package/z3/z3.mk
Normal file
@@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
#
|
||||
# z3
|
||||
#
|
||||
################################################################################
|
||||
|
||||
Z3_VERSION = 4.16.0
|
||||
Z3_SITE = $(call github,Z3Prover,z3,z3-$(Z3_VERSION))
|
||||
Z3_LICENSE = MIT
|
||||
Z3_LICENSE_FILES = LICENSE.txt
|
||||
Z3_INSTALL_STAGING = YES
|
||||
Z3_SUPPORTS_IN_SOURCE_BUILD = NO
|
||||
|
||||
ifeq ($(BR2_PACKAGE_Z3_PYTHON),y)
|
||||
Z3_CONF_OPTS += \
|
||||
-DCMAKE_INSTALL_PYTHON_PKG_DIR=/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages \
|
||||
-DZ3_BUILD_PYTHON_BINDINGS=ON
|
||||
else
|
||||
Z3_CONF_OPTS += -DZ3_BUILD_PYTHON_BINDINGS=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user