diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-10-26 07:41:25 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-10-26 07:41:25 +0200 |
commit | ba5449d4e79689e88948655c154bc1e2cdceb05e (patch) | |
tree | fa08fdf8c2a8c47a7aaad858770768b987ff0d3a /lib | |
parent | f33c3d5f47c4ae4b4eadfa72f22800159b110fc7 (diff) |
kconfig: always store config hash; handle randconfig without KCONFIG_SEED
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kconfig.py | 5 |
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", |