Nathaniel Mitchell
da2ea9532f
Remove old docker images that are not active and add some new ones
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-01-24 16:39:46 -08:00
Nathaniel Mitchell
21691ce214
Add *.log to .gitignore
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-01-24 13:19:25 -08:00
brentholtsclaw
2c31254a61
Change level code
...
level class was moved outside of logger class in #1646
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-23 16:54:37 -08:00
brentholtsclaw
33e193b0ba
Disable chipsecLogger propogate
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-19 13:22:23 -08:00
brentholtsclaw
cc479e6891
Amend chipsecstreamlogger logic
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-19 13:22:23 -08:00
brentholtsclaw
81caf7b056
Update python color logic
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-19 13:22:23 -08:00
brentholtsclaw
845a7a8031
Address comments
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-19 13:22:23 -08:00
brentholtsclaw
a0e4186d9c
Change logger to use formatter
...
Add two formatting classes for stream and logfile
Add filter to apply additional labels based upon logging level
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-19 13:22:23 -08:00
Nathaniel Mitchell
47bc4b2198
Fix issue with modifying variables in variables.py
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-01-18 17:42:42 -08:00
Frinzell, Aaron
ceb2f77e8b
Add Type Hints and move to fstrings in acpi_tables.py
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2023-01-18 17:12:37 -08:00
brentholtsclaw
22816aa4a0
use log_error not error
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-18 17:12:19 -08:00
brentholtsclaw
00efed8997
Addressing comments
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-18 17:12:19 -08:00
brentholtsclaw
85ff8e5865
Cleanup improper merge results
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-18 17:12:19 -08:00
brentholtsclaw
bfa3c4ee39
Decouple chipsec_main from logger
...
Remove start_test from logger
Enhance TestCase class to add start_test funtionality
Change logic within run_loaded modules to use TestCase opposed to logger
Add fstring to testcase.py
Add Type information to testcase.py
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-18 17:12:19 -08:00
Frinzell, Aaron
9f85b80e33
Type Hint and fstring updates to cmos.py, io.py, and iobar.py
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2023-01-18 17:02:28 -08:00
Sara Batllori
c959367252
Move debug, hal and verbose log wrappers out of deprecated list
...
Signed-off-by: Sara Batllori <sara.batllori@intel.com >
2023-01-18 17:02:05 -08:00
Plato Mavropoulos
4262a447d2
Fix premature return at module children updating
...
When update_efi_tree() is called recursively to update the attributes of a module which contains children, it is possible for the children attributes to be partially updated (effectively skipped) because a premature return occurs when a UI section is encountered. This means that the children modules may have missing (i.e. None) value for (parent) GUID.
For some reason, update_efi_tree() function appears to have two purposes: 1) Update EFI tree, but also 2) Return the name (ui_string) of a given module. It should only be doing the former and separate the returning of a module's name to a different function.
Alas, it seems that the bug can be fixed by replacing the premature return statement with a "ui_string" variable assignment instead, which is then properly returned at the end of the update_efi_tree() function.
2023-01-13 13:48:09 -08:00
Frinzell, Aaron
23f55fa0a5
Address some issues in acpi_tables.py
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2023-01-13 10:05:26 -06:00
brentholtsclaw
53bbf5f9c0
Service is depricated removing configuration file
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-11 16:42:28 -08:00
Frinzell, Aaron
307f4ee075
Define PEP515 support
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2023-01-11 16:42:17 -08:00
Nathaniel Mitchell
8ccecc3758
update osx pbxproj to exclude arm64e
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-01-09 15:03:30 -08:00
Dan Scott
d1e3ab2800
Update to 1.10.0
...
Signed-off-by: Dan Scott <dan.scott@intel.com >
1.10.0
2022-12-19 15:10:12 -08:00
Sara Batllori
b90667275e
Update logger to use python logging
...
Signed-off-by: Sara Batllori <sara.batllori@intel.com >
2022-12-19 14:42:43 -08:00
Nathaniel Mitchell
0c9a50fa5e
Update install documentation to reflect compression changes
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2022-12-14 13:06:03 -08:00
Nathaniel Mitchell
5d6c3d90ec
Add chipsec_main flag for module_exclude
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2022-12-14 12:44:43 -08:00
brentholtsclaw
e2de1b2e98
Enable codeql on linux driver code
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-12-14 12:44:09 -08:00
Nathaniel Mitchell
4f7a4b8149
Update debian/* for dpkg-buildpackage
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2022-12-14 12:43:51 -08:00
Nathaniel Mitchell
0b2c4ee9ca
Remove empty class definition parentheses
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2022-12-14 12:43:34 -08:00
Frinzell, Aaron
468f1893ec
Define PEP572 and for-else while-else support
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2022-12-14 12:43:18 -08:00
Nathaniel Mitchell
ecedfc0718
Fix compiler warnings for efi/tiano compress
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2022-12-14 12:42:42 -08:00
Frinzell, Aaron
96fca5f581
Exit CHIPSEC if Python 2 found
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2022-12-13 09:40:41 -08:00
Nathaniel Mitchell
7d97b92a27
Add ability to parse FVs that are in a signed FV and fix bugs
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2022-12-07 15:18:00 -08:00
brentholtsclaw
e351888a1a
Workaround for LZMAError with valid datastream
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-12-05 16:34:48 -08:00
brentholtsclaw
af2d2c0402
Fixup merge
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-12-05 16:34:48 -08:00
brentholtsclaw
e4b1ecaf86
Modify workflows to install pip requirements and use python3
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-12-05 16:34:48 -08:00
brentholtsclaw
5b67236de0
Remove binary version of compression tools
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-12-05 16:34:48 -08:00
brentholtsclaw
77c23784d0
Helper changes to remove compression functionality
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-12-05 16:34:48 -08:00
brentholtsclaw
7af173a43c
Module and command changes to work with hal
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-12-05 16:34:48 -08:00
brentholtsclaw
843bde4f56
Modify Hal to call python versions of compression algorithms
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-12-05 16:34:48 -08:00
brentholtsclaw
d0038681db
Add ability to build tianocompress with python
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-12-05 16:34:48 -08:00
Frinzell, Aaron
c4f8aa95c2
Removed deprecated logger functions
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2022-12-05 17:41:00 -06:00
LGTM Migrator
8876a8520b
Add CodeQL workflow for GitHub code scanning
2022-12-05 11:27:52 -08:00
Zhou, Jun2
63b772344b
Add a fake cpuid func to support invalid platform unit test
...
Signed-off-by: Zhou Jun, jun2.zhou@intel.com
2022-12-05 11:27:03 -08:00
Zhou, Jun2
e417d0196f
add cpuid detection string to xml files
...
add cpuid detection debug mode print, cmdline para "-d" show cpuid detection value as below,
sudo python3.6 chipsec_util.py -d cpu info
Signed-off-by: Zhou Jun, jun2.zhou@intel.com
2022-12-05 11:27:03 -08:00
Nathaniel Mitchell
124251eef3
Remove Ubuntu v18.04 from test due to deprecation
...
https://github.com/actions/runner-images/issues/6002
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2022-12-05 10:54:44 -08:00
Nathaniel Mitchell
6265c40cc5
Fix writemem call to supply correct arguments
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2022-12-05 10:54:17 -08:00
Frinzell, Aaron
fbde218dff
Update tests for decoupling parse_arg()
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2022-12-05 12:16:00 -06:00
Frinzell, Aaron
257cecc849
Decouple parse_args() from ChipsecMain and ChipsecUtil classes
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2022-12-05 12:16:00 -06:00
Frinzell, Aaron
393fce0229
Add TypeHints to oshelper.py
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2022-12-01 16:01:55 -08:00
Nicolas Iooss
b6f6841dfb
Update GitHub Actions to use the new $GITHUB_OUTPUT file
...
GitHub is deprecating the use of `echo "::set-output ...` to define
output variables in workflow commands:
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Replace these commands with `echo "{name}={value}" >> $GITHUB_OUTPUT`.
This feature is also used in `actions/upload-artifact`, which was
updated accordingly in version 3:
https://github.com/actions/upload-artifact/releases/tag/v3.1.1
While at it, also upgrade `actions/checkout` and `actions/setup-python`
to fix a Node 12 deprecation warning:
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2022-12-01 11:01:31 -08:00