build-image: Prepare TiBoot.crt for iso image
Copy 'TiBoot.crt' from "cgcs-root/build-tools/certificates/" to "/localdisk/CERTS/", then build-image can install it to the ISO image. Test Plan: Pass: build-image There should be /localdisk/CERTS/TiBoot.crt and build-image works Closes-Bug: 1999663 Signed-off-by: Haiqing Bai <haiqing.bai@windriver.com> Change-Id: If8099f9baa180a3f5c5da7e9dcc08f70893f1676
This commit is contained in:
parent
3f3c66e432
commit
c4c76fc423
@ -39,6 +39,8 @@ REPO_BINARY = 'deb-local-binary'
|
||||
REPO_BUILD = 'deb-local-build'
|
||||
DEB_CONFIG_DIR = 'stx-tools/debian-mirror-tools/config/'
|
||||
PKG_LIST_DIR = os.path.join(os.environ.get('MY_REPO_ROOT_DIR'), DEB_CONFIG_DIR)
|
||||
CERT_FILE = 'cgcs-root/build-tools/certificates/TiBoot.crt'
|
||||
CERT_PATH = os.path.join(os.environ.get('MY_REPO_ROOT_DIR'), CERT_FILE)
|
||||
img_pkgs = []
|
||||
kernel_type = 'std'
|
||||
stx_std_kernel = 'linux-image-5.10.0-6-amd64-unsigned'
|
||||
@ -555,6 +557,10 @@ if __name__ == "__main__":
|
||||
os.system('sudo rm -rf ' + LAT_ROOT + '/sub_workdir')
|
||||
os.system('sudo rm -rf ' + LAT_ROOT + '/deploy')
|
||||
|
||||
# Prepare the boot cert
|
||||
os.system('sudo mkdir ' + LAT_ROOT + '/CERTS > /dev/null 2>&1')
|
||||
os.system('sudo cp ' + CERT_PATH + ' ' + LAT_ROOT + '/CERTS/')
|
||||
|
||||
os.system(' '.join(['latc --file=' + lat_yaml, 'build']))
|
||||
# Sleep here to wait for the log file created and feeded by latd
|
||||
# It should be noted that latd does not output to log from its start
|
||||
|
Loading…
Reference in New Issue
Block a user