[fuchsia] cease generating user keys
Change-Id: Id49efbef174aeb55037a8b1d1bda841ed085a4ec
diff --git a/fuchsia/developer-keys/BUILD.gn b/fuchsia/developer-keys/BUILD.gn
index 93b19ff..f7b572f 100644
--- a/fuchsia/developer-keys/BUILD.gn
+++ b/fuchsia/developer-keys/BUILD.gn
@@ -18,55 +18,24 @@
":all",
]
- resources = [
- {
+ resources = []
+
+ if (extra_authorized_keys_file != "") {
+ resources += [{
path = rebase_path("$root_out_dir/ssh-keys/authorized_keys")
dest = "ssh/authorized_keys"
- },
- ]
+ }]
+ }
}
group("all") {
public_deps = [
- ":authorized_keys",
- ":id_key",
":ssh_config",
]
}
keys_dir = "${root_build_dir}/ssh-keys"
-action("id_key") {
- key_file = "${keys_dir}/id_ed25519"
- script = "ssh-keygen-wrapper"
- args = [
- "ed25519",
- rebase_path(key_file),
- ]
- outputs = [
- key_file,
- key_file + ".pub",
- ]
-}
-
-action("authorized_keys") {
- inputs = [
- "${keys_dir}/id_ed25519.pub",
- ]
- if (extra_authorized_keys_file != "") {
- inputs += [ extra_authorized_keys_file ]
- }
- outputs = [
- "${keys_dir}/authorized_keys",
- ]
- deps = [
- ":id_key",
- ]
-
- script = "concat_authorized_keys.sh"
- args = rebase_path(outputs + inputs)
-}
-
action("ssh_config") {
config_file = "${keys_dir}/ssh_config"
script = "generate_ssh_config.sh"