mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat: support for "power_gated" property in commit_id.json
This commit is contained in:
+6
-1
@@ -56,7 +56,12 @@ class Projects:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
project = Project(
|
project = Project(
|
||||||
index, commit_id_data["repo"], project_dir, args, is_user_project=False
|
index,
|
||||||
|
commit_id_data["repo"],
|
||||||
|
project_dir,
|
||||||
|
args,
|
||||||
|
is_user_project=False,
|
||||||
|
power_gated=commit_id_data.get("power_gate", False),
|
||||||
)
|
)
|
||||||
project.commit_id = commit_id_data["commit"]
|
project.commit_id = commit_id_data["commit"]
|
||||||
project.sort_id = commit_id_data["sort_id"]
|
project.sort_id = commit_id_data["sort_id"]
|
||||||
|
|||||||
@@ -43,12 +43,14 @@ class Project:
|
|||||||
local_dir: str,
|
local_dir: str,
|
||||||
args: Args,
|
args: Args,
|
||||||
is_user_project: bool,
|
is_user_project: bool,
|
||||||
|
power_gated: bool,
|
||||||
):
|
):
|
||||||
self.git_url = git_url
|
self.git_url = git_url
|
||||||
self.args = args
|
self.args = args
|
||||||
self.index = index
|
self.index = index
|
||||||
self.local_dir = local_dir
|
self.local_dir = local_dir
|
||||||
self.is_user_project = is_user_project
|
self.is_user_project = is_user_project
|
||||||
|
self.power_gated = power_gated
|
||||||
self.src_dir = (
|
self.src_dir = (
|
||||||
os.path.join(self.local_dir, "src")
|
os.path.join(self.local_dir, "src")
|
||||||
if self.is_user_project
|
if self.is_user_project
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ class ShuttleConfig:
|
|||||||
"name": project.unprefixed_name,
|
"name": project.unprefixed_name,
|
||||||
"width": width,
|
"width": width,
|
||||||
"height": height,
|
"height": height,
|
||||||
|
"pg_vdd": True if project.power_gated else None,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user