mirror of
https://github.com/chipsec/chipsec
synced 2026-06-08 13:31:00 +00:00
ac2ca7264f
UEFI shell. 2. Decompression of images in SPI flash parsing is only supported in Windows. 3. UEFI - Support for IA32 and i586 (Quark) 4. Added capability to use modules from an arbitrary path with the -I / --import command line option 5. Module functionality encapsulated in class inheriting BaseModule 6. Fixed loading platform specific configuration 7. Fixed issue with modules which run on multiple logical CPUs hanging on Bay Trail (Windows/Linux). The issue still exist when running from UEFI shell 8. Added template for a module - module_template.py 9. Added options to flush log files 10. Added ability to define custom platforms Driver changes: 1. Windows - Added IOCTL_ALLOC_PHYSMEM to allocate physical memory buffer 2. Linux - Fix wrpci defect
81 lines
2.8 KiB
Python
81 lines
2.8 KiB
Python
#!/usr/local/bin/python
|
|
#CHIPSEC: Platform Security Assessment Framework
|
|
#Copyright (c) 2010-2014, Intel Corporation
|
|
#
|
|
#This program is free software; you can redistribute it and/or
|
|
#modify it under the terms of the GNU General Public License
|
|
#as published by the Free Software Foundation; Version 2.
|
|
#
|
|
#This program is distributed in the hope that it will be useful,
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
#GNU General Public License for more details.
|
|
#
|
|
#You should have received a copy of the GNU General Public License
|
|
#along with this program; if not, write to the Free Software
|
|
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
#
|
|
#Contact information:
|
|
#chipsec@intel.com
|
|
#
|
|
|
|
|
|
|
|
|
|
## \addtogroup aux Auxiliary Components
|
|
# Components for auxiliar tasks
|
|
|
|
## \addtogroup aux
|
|
# setup.py -- setup module for installing chipsec with distutils as a package
|
|
#
|
|
#
|
|
import os
|
|
from distutils.core import setup
|
|
from distutils import dir_util
|
|
|
|
WIN_DRIVER_INSTALL_PATH = "Lib/site-packages/chipsec/helper/win"
|
|
|
|
tool_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
data_files = [
|
|
#(WIN_DRIVER_INSTALL_PATH + "/win7_amd64", ['chipsec/win/win7_amd64/chipsec_hlpr.sys','chipsec/win/win7_amd64/chipsec_amd64.cat','chipsec/win/win7_amd64/chipsec.inf']),
|
|
(WIN_DRIVER_INSTALL_PATH + "/win7_amd64", ['chipsec/helper/win/win7_amd64/chipsec_hlpr.sys']),
|
|
("Lib/site-packages" , ['VERSION']),
|
|
#(WIN_DRIVER_INSTALL_PATH + "/win7_x86" , ['chipsec/helper/win/win7_x86/chipsec_hlpr.sys'])
|
|
#(WIN_DRIVER_INSTALL_PATH + "/winxp", ['chipsec/helper/win/winxp/chipsec_hlpr.sys'])
|
|
]
|
|
|
|
version = ""
|
|
VERSION_FILE = os.path.join( os.path.dirname( __file__ ),'VERSION' )
|
|
if os.path.exists( VERSION_FILE ):
|
|
with open(VERSION_FILE, "r") as verFile:
|
|
version = "." + verFile.read()
|
|
|
|
build_dir = os.path.join(tool_dir, "build")
|
|
if os.path.exists( build_dir ):
|
|
dir_util.remove_tree( build_dir )
|
|
|
|
mypackages = ['.']
|
|
for current, dirs, files in os.walk(tool_dir ):
|
|
for file in files:
|
|
if file == "__init__.py":
|
|
pkg = current.replace(tool_dir+os.path.sep,"")
|
|
pkg = pkg.replace(os.path.sep,'.')
|
|
mypackages.append(pkg)
|
|
|
|
#print mypackages
|
|
|
|
|
|
setup(
|
|
name = 'chipsec',
|
|
description = 'CHIPSEC: Platform Security Assessment Framework',
|
|
version = '1.1.0',
|
|
author = 'chipsec developers',
|
|
author_email = '',
|
|
url = 'https://github.com/chipsec/chipsec',
|
|
|
|
data_files = data_files,
|
|
packages = mypackages
|
|
|
|
)
|