Generate keypair file for c program deployment (#15080) (#15110)

* Generate keypair file for c program deployment

* Build and use solana-keygen in test-stable-perf

(cherry picked from commit bba1b49663)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2021-02-04 23:02:01 +00:00
committed by GitHub
parent fea0bd234c
commit 858ca752e2
2 changed files with 9 additions and 0 deletions

View File

@@ -168,6 +168,11 @@ $1: $2
@echo "[lld] $1 ($2)"
$(_@)mkdir -p $(dir $1)
$(_@)$(LLD) $(BPF_LLD_FLAGS) -o $1 $2
ifeq (,$(wildcard $(subst .so,-keypair.json,$1)))
$(_@)solana-keygen new --no-passphrase --silent -o $(subst .so,-keypair.json,$1)
endif
@echo To deploy this program:
@echo $$$$ solana program deploy $(realpath $1)
endef
define TEST_C_RULE