mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-4995: Updated pcodetest framework to python3 and additional config
This commit is contained in:
parent
93c19e3cc6
commit
00687c8db8
9 changed files with 473 additions and 385 deletions
|
@ -1,51 +1,58 @@
|
|||
## ###
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
##
|
||||
# Default values can be modified here, or (in
|
||||
# some cases) on the build command line (see ./build --help)
|
||||
|
||||
# PCodeTest.defaults that can be overridden on command line
|
||||
# defaults that can be overridden on command line
|
||||
|
||||
PCodeTest.defaults.toolchain_root = '/local/ToolChains'
|
||||
PCodeTest.defaults.build_root = '/local/build-pcodetest'
|
||||
PCodeTest.defaults.gcc_version = '9.2.0'
|
||||
PCodeTest.defaults.skip_files = []
|
||||
PCodeTest.defaults.export_root = os.getcwd() + '/../../../../../ghidra.bin/Ghidra/Test/TestResources/data/pcodetests/'
|
||||
PCodeTest.defaults.pcodetest_src = os.getcwd() + '/c_src'
|
||||
from types import SimpleNamespace
|
||||
import os
|
||||
|
||||
# PCodeTest.defaults that cannot be overridden on the command line
|
||||
filePath = os.path.abspath(os.path.dirname(__file__))
|
||||
pcodeTestDefaults = SimpleNamespace()
|
||||
|
||||
pcodeTestDefaults.toolchain_root = '/data/ToolChains'
|
||||
pcodeTestDefaults.build_root = '/data/build'
|
||||
pcodeTestDefaults.gcc_version = 'latest'
|
||||
pcodeTestDefaults.gcc_config = pcodeTestDefaults.gcc_version
|
||||
pcodeTestDefaults.skip_files = []
|
||||
pcodeTestDefaults.export_root = os.path.join(filePath, '../../../../../ghidra.bin/Ghidra/Test/TestResources/data/pcodetests/')
|
||||
pcodeTestDefaults.pcodetest_src = os.path.join(filePath, 'c_src')
|
||||
# defaults that cannot be overridden on the command line
|
||||
# These are set by processor test definitions in the pcode_defs.py file
|
||||
PCodeTest.defaults.build_all = 0
|
||||
PCodeTest.defaults.ccflags = ''
|
||||
PCodeTest.defaults.has_decimal128 = 0
|
||||
PCodeTest.defaults.has_decimal32 = 0
|
||||
PCodeTest.defaults.has_decimal64 = 0
|
||||
PCodeTest.defaults.has_double = 1
|
||||
PCodeTest.defaults.has_float = 1
|
||||
PCodeTest.defaults.has_longlong = 1
|
||||
PCodeTest.defaults.has_shortfloat = 0
|
||||
PCodeTest.defaults.has_vector = 0
|
||||
PCodeTest.defaults.small_build = 0
|
||||
PCodeTest.defaults.ld_library_path = ''
|
||||
PCodeTest.defaults.toolchain_type = 'gcc'
|
||||
PCodeTest.defaults.compile_exe = 'bin/gcc'
|
||||
PCodeTest.defaults.objdump_exe = 'bin/objdump'
|
||||
PCodeTest.defaults.objdump_option = ''
|
||||
PCodeTest.defaults.readelf_exe = 'bin/readelf'
|
||||
PCodeTest.defaults.nm_exe = 'bin/nm'
|
||||
PCodeTest.defaults.strip_exe = 'bin/strip'
|
||||
PCodeTest.defaults.variants = {'O0': '-O0', 'O3': '-O3'}
|
||||
PCodeTest.defaults.proc_test = ''
|
||||
|
||||
pcodeTestDefaults.build_all = 0
|
||||
pcodeTestDefaults.ccflags = ''
|
||||
pcodeTestDefaults.cclibs = ''
|
||||
pcodeTestDefaults.has_decimal128 = 0
|
||||
pcodeTestDefaults.has_decimal32 = 0
|
||||
pcodeTestDefaults.has_decimal64 = 0
|
||||
pcodeTestDefaults.has_double = 1
|
||||
pcodeTestDefaults.has_float = 1
|
||||
pcodeTestDefaults.has_longlong = 1
|
||||
pcodeTestDefaults.has_shortfloat = 0
|
||||
pcodeTestDefaults.has_vector = 0
|
||||
pcodeTestDefaults.small_build = 0
|
||||
pcodeTestDefaults.ld_library_path = ''
|
||||
pcodeTestDefaults.toolchain_type = 'gcc'
|
||||
pcodeTestDefaults.compile_exe = 'bin/gcc'
|
||||
pcodeTestDefaults.objdump_exe = 'bin/objdump'
|
||||
pcodeTestDefaults.objdump_option = ''
|
||||
pcodeTestDefaults.readelf_exe = 'bin/readelf'
|
||||
pcodeTestDefaults.nm_exe = 'bin/nm'
|
||||
pcodeTestDefaults.strip_exe = 'bin/strip'
|
||||
pcodeTestDefaults.variants = {'O0': '-O0', 'O3': '-O3'}
|
||||
pcodeTestDefaults.proc_test = ''
|
||||
pcodeTestDefaults.force = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue