William Leara
79f81bbb7e
fix for flake8 rules related to whitespace
...
This commit fixes whitespace errors from checkers W291,W292,W293,W391. They were found by running "flake8 ." from the root directory. These are errors defined by "pycodestyle", and have no functional impact to the source. This is simply fixing whitespace as defined by CHIPSEC's .flake8 configuration.
background:
https://www.flake8rules.com/rules/W291.html
https://www.flake8rules.com/rules/W292.html
https://www.flake8rules.com/rules/W293.html
https://www.flake8rules.com/rules/W391.html
tool versions: flake8 v7.3.0, python v3.13.11
Signed-off-by: William Leara <william.leara@dell.com >
2026-03-10 14:20:23 -07:00
William Leara
c1817d621f
fix URL for pywin32
...
Python for Windows Extensions (pywin32) was migrated from SourceForge to GitHub 7 years ago. Just quick update here to fix the referenced URL. [no functional change to Chipsec implied in this commit]
Signed-off-by: William Leara <william.leara@dell.com >
2025-02-18 10:37:45 -08:00
BrentHoltsclaw
0165a61fec
Dev/uefi hal ( #2377 )
...
* Add Win Cert types to uefi_fv and spi_uefi
* Move uefi search to library.uefi folder
* Move uefi_fv to library.uefi
* Move uefi_compression to library.uefi>
* Move uefi_common to library.uefi
* Move uefi_platform to library.uefi
* Move spi_uefi to library.uefi
* Add library.uefi.sleep_scripts file
* Move S3 functionality into sleep_state file
* Add varstore and variable files to library.uefi
* Fixup Flake8 suggestions
* Rename library uefi files to remove uefi_
* This change changes the filename of any file under the library.uefi to remove the uefi as part of the name.
* Fix Errors when testing changes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2025-02-12 09:13:50 -08:00
Nathaniel Mitchell
f7409804b4
HAL Update - Enable multitenant HALs
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2024-12-03 12:50:36 -08:00
Nathaniel Mitchell
c69509a92f
Update functions that read efi variables from rom
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2024-09-25 12:39:17 -07:00
Dan Scott
f19760c63c
Replace print() with logger.log()
...
Signed-off-by: Dan Scott <dan.scott@intel.com >
2024-08-05 16:35:54 -07:00
jun2zhou
2f6e680c81
Remove empty () for helper banner ( #2236 )
...
* remove empty () for simic banner
* Move () to specified helper
---------
Signed-off-by: Jason Zhou <jun2.zhou@intel.com >
2024-07-30 14:22:31 -07:00
Nathaniel Mitchell
aedaa7531f
Fix bug when msgbus_cmd returns wrong value type in windows
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2024-07-30 14:12:32 -07:00
Nathaniel Mitchell
ed9c6e2896
Update how ACPI Tables are found
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2024-04-17 15:27:21 -07:00
Nathaniel Mitchell
3b5a0a69d1
Fix missing 'f' in f-strings
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2024-03-28 10:35:30 -07:00
Nathaniel Mitchell
987bd3b7a1
Update error when running 'uefi var-list' cmd
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2024-03-28 10:32:39 -07:00
Dan Scott
0e8192cfd0
Move files to library folder
2024-03-22 14:26:59 -07:00
Dan Scott
a933b1337d
Update references to functions in new library files
2024-03-22 14:26:59 -07:00
Nathaniel Mitchell
fbccec7756
Fix import and possible unbound errors
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-10-16 16:38:21 -07:00
Nathaniel Mitchell
6a23a6e968
Add initial windows helper unit tests
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-09-29 09:20:39 -07:00
Nathaniel Mitchell
9a09eaed07
Fix 'self._get_driver_handle()' function calls in windowshelper.py
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-07-25 16:38:50 -07:00
Nathaniel Mitchell
27ee5eeb66
Clean up helper create/start/stop/delete functions
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-07-19 16:33:59 -07:00
Nicolas Iooss
d04cabd02d
Remove invalid escape sequences in Windows path
...
`windowshelper.py` uses a path with backslashes without proper escaping.
While this works because `\s` and `\c` are not valid escape sequences,
this makes flake8 report:
/chipsec/helper/windows/windowshelper.py:71:53: W605 invalid escape sequence '\s'
/chipsec/helper/windows/windowshelper.py:71:67: W605 invalid escape sequence '\c'
Fix this by splitting the path when invoking `os.path.join`.
Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org >
2023-07-11 16:37:03 -07:00
Nathaniel Mitchell
4b38d41a29
Move helper.getcwd() from *helper to oshelper
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-06-05 16:41:07 -07:00
Nathaniel Mitchell
745ae9084e
Clean up HALs and Helpers
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-05-26 18:33:08 -07:00
Nathaniel Mitchell
89be1b4ad8
Remove native and add linuxnative as seperate helper
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-05-17 16:36:30 -07:00
Nathaniel Mitchell
46b226f4b9
Fix helpers to return correct value for swsmi util
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-05-09 16:37:19 -07:00
Nathaniel Mitchell
4b9ab99839
Change the way helper loading is done
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-04-26 16:52:26 -07:00
Nathaniel Mitchell
814995e345
Rename win7 driver/helper to windows
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-04-26 16:52:26 -07:00