Migrate distributedcloud .deb from dl_hooks

Replace dl_hook with "src_path" and moves the 'files' folder
outside of the 'centos' directory.

Test Plan:
1. PASS - Successfully build distributedcloud package
2. PASS - Build an image and install it, checking if it includes the
          latest distributedcloud package.
3. PASS - Modify a source file, do a second subsequent build without
          using the clean option, install the image and verify that
          the build picks up the most recent .deb file by checking
          if the modification is present on the source file.

Story: 2010512
Task: 47108

Signed-off-by: Gustavo Herzmann <gustavo.herzmann@windriver.com>
Change-Id: I0f82689298e203e3655ec47cb1ab7683f440908a
This commit is contained in:
Gustavo Herzmann 2023-01-04 15:57:09 -03:00
parent 4b05f5dcc0
commit b7f31ee6b6
23 changed files with 2 additions and 20 deletions

View File

@ -1,4 +1,4 @@
SRC_DIR="."
COPY_LIST="$FILES_BASE/*"
COPY_LIST="$PKG_BASE/files/*"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,18 +0,0 @@
#!/bin/bash
set -x
PKG_BUILD_NAME=$1
PKG_BUILD_DIR=$(realpath `pwd`/${PKG_BUILD_NAME})
STX_BASE=$(realpath ${MY_REPO}/stx)
PKG_BASE=$(realpath ${STX_BASE}/distributedcloud/distributedcloud)
mkdir ${PKG_BUILD_NAME}
cp -r ${PKG_BASE}/* ${PKG_BUILD_DIR}/
mkdir ${PKG_BUILD_DIR}/files
cp ${PKG_BUILD_DIR}/centos/files/* ${PKG_BUILD_DIR}/files/
rm -rf ${PKG_BUILD_DIR}/centos

View File

@ -1,7 +1,7 @@
---
debname: distributedcloud
debver: 1.0-1
dl_hook: dl_hook
src_path: .
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true