summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-10-26 07:41:25 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2021-10-26 07:41:25 +0200
commitba5449d4e79689e88948655c154bc1e2cdceb05e (patch)
treefa08fdf8c2a8c47a7aaad858770768b987ff0d3a /lib
parentf33c3d5f47c4ae4b4eadfa72f22800159b110fc7 (diff)
kconfig: always store config hash; handle randconfig without KCONFIG_SEED
Diffstat (limited to 'lib')
-rw-r--r--lib/kconfig.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/kconfig.py b/lib/kconfig.py
index d4ca354..8481c13 100644
--- a/lib/kconfig.py
+++ b/lib/kconfig.py
@@ -55,6 +55,7 @@ class AttributeExperiment(Experiment):
class RandomConfig(AttributeExperiment):
inputs = {
"randconfig_seed": String("FIXME"),
+ "config_hash": String("FIXME"),
"kconfig_hash": String("FIXME"),
"project_root": Directory("/tmp"),
"project_version": String("FIXME"),
@@ -103,7 +104,7 @@ class KConfig:
seed = match.group(1)
if seed:
return seed
- raise RuntimeError("KCONFIG_SEED not found")
+ return "unknown"
def git_commit_id(self):
status = subprocess.run(
@@ -139,6 +140,8 @@ class KConfig:
[
"--randconfig_seed",
self.randconfig(),
+ "--config_hash",
+ self.file_hash(f"{self.cwd}/.config"),
"--kconfig_hash",
self.file_hash(f"{self.cwd}/{self.kconfig}"),
"--project_version",