stx tool: Add the debdownloader task for building image
Before building the iso image, we need to make sure the binary packages have been downloaded, therefore now we add the debdownloader to implement this task. Depends-On: https://review.opendev.org/c/starlingx/tools/+/817129 Story: 2008862 Task: 43771 Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com> Change-Id: I8a986c315777a7c43629795e52659d822400be70
This commit is contained in:
parent
a2009422ba
commit
bed0ce9489
@ -60,6 +60,12 @@ be [ rt|std ]')
|
||||
cmd = prefixcmd + '". /usr/local/bin/stx/stx-cleanup"\''
|
||||
return cmd
|
||||
|
||||
def buildDebdownloaderCMD(self, prefixcmd):
|
||||
|
||||
cmd = prefixcmd + '"debdownloader ' + \
|
||||
'$STX_BINARYLIST_DIR/common/base-bullseye.lst"\''
|
||||
return cmd
|
||||
|
||||
def buildPackageCMD(self, args, prefixcmd):
|
||||
|
||||
if args.force:
|
||||
@ -116,6 +122,10 @@ the setup step before building')
|
||||
cmd = self.buildCleanupCMD(prefix_cmd)
|
||||
self.logger.debug('Execute the cleanup command: [%s].', cmd)
|
||||
|
||||
elif args.build_task == 'debdownloader':
|
||||
cmd = self.buildDebdownloaderCMD(prefix_cmd)
|
||||
self.logger.debug('Execute the debdownloader command: [%s].', cmd)
|
||||
|
||||
else:
|
||||
cmd = self.buildPackageCMD(args, prefix_cmd)
|
||||
self.logger.debug('Compile the package: [%s] with the command \
|
||||
|
@ -30,6 +30,8 @@ export MY_REPO=$MY_REPO_ROOT_DIR/cgcs-root
|
||||
export MY_BUILD_TOOLS_DIR=$MY_REPO/build-tools
|
||||
export LAYER=$LAYER
|
||||
export STX_CONFIG_DIR=$MY_REPO_ROOT_DIR/stx-tools
|
||||
export PREFIX_BINARYLIST_DIR=debian-mirror-tools/config/debian/
|
||||
export STX_BINARYLIST_DIR=$STX_CONFIG_DIR/$PREFIX_BINARYLIST_DIR
|
||||
export STX_GIT_SRC_DIR=$MY_REPO/stx/git
|
||||
|
||||
export PATH=$PATH:$MY_BUILD_TOOLS_DIR/stx:/opt/LAT/lat
|
||||
|
Loading…
x
Reference in New Issue
Block a user