build.sh: update rk_sign_tool usage

After commit (2de2cf1 tools: sign_tool: uploading) in rkbin,
new rk_sign_tool has different usage than before, and the
version information is not continuous because it used new
skeleton.
So update rk_sign_tool usage.

Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: I5d0a2f83a36636d95bac0c7ace3cd93b2d16e586
This commit is contained in:
Zain Wang
2022-05-25 10:25:46 +08:00
parent bc5c1915c6
commit 819dead533

View File

@ -1204,9 +1204,12 @@ function create_keys() {
test -d u-boot/keys && echo "ERROR: u-boot/keys has existed" && return -1
mkdir u-boot/keys -p
./rkbin/tools/rk_sign_tool kk --bits 2048 --out u-boot/keys
ln -s privateKey.pem u-boot/keys/dev.key
ln -s publicKey.pem u-boot/keys/dev.pubkey
cd u-boot/keys
$TOP_DIR/rkbin/tools/rk_sign_tool kk --bits 2048
cd -
ln -s private_key.pem u-boot/keys/dev.key
ln -s public_key.pem u-boot/keys/dev.pubkey
openssl req -batch -new -x509 -key u-boot/keys/dev.key -out u-boot/keys/dev.crt
openssl rand -out u-boot/keys/system_enc_key -hex 32