7b85e46e82
Update chipsec source to point to latest release tag, switching to using `pyproject = true` per latest recommendations. * Use chipsec marker file `README.NO_KERNEL_DRIVER` to signal when the driver shouldn't be built. I couldn't find a way to pass `--skip-driver` to the setup script. * Redirect chipsec logging to "/tmp/chipsec/" since otherwise chipsec tries to dump logs into its installation directory (into the nix store) * Add additional supported platforms (without kernel driver) * `aarch64-darwin` * `x86_64-darwin` * `aarch64-linux` * Install the kernel module so it can be manually loaded * Set `chipsec_main` as the main program for chipsec
23 lines
838 B
Diff
23 lines
838 B
Diff
diff --git a/chipsec/library/logger.py b/chipsec/library/logger.py
|
|
index dcba473..dd515a6 100644
|
|
--- a/chipsec/library/logger.py
|
|
+++ b/chipsec/library/logger.py
|
|
@@ -32,8 +32,6 @@ from time import localtime, strftime
|
|
from typing import Tuple, Dict, List, Optional
|
|
from enum import Enum
|
|
|
|
-dir_path = os.path.dirname(os.path.realpath(__file__))
|
|
-BASE_PATH = os.path.join(dir_path, os.pardir, os.pardir)
|
|
LOGGER_NAME = 'CHIPSEC_LOGGER'
|
|
|
|
|
|
@@ -158,7 +156,7 @@ class Logger:
|
|
self.mytime = localtime()
|
|
self.logfile = None
|
|
self.ALWAYS_FLUSH = False
|
|
- self.LOG_PATH = os.path.join(BASE_PATH, "logs")
|
|
+ self.LOG_PATH = "/tmp/chipsec"
|
|
self.logstream = logging.StreamHandler(sys.stdout)
|
|
self.chipsecLogger = logging.getLogger(LOGGER_NAME)
|
|
self.chipsecLogger.setLevel(logging.INFO)
|