mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
packaging: allow custom spec_file
Add SPEC_FILE variable support for .deb to allow multpile flavors to share configs. Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
143694aa0a
commit
9f9cccaa7a
@@ -14,6 +14,7 @@ REPO_DIR="$( cd "$( dirname "${DIR}/../../../../" )" && pwd )"
|
||||
BUILD_DIR="${REPO_DIR}/../build_l0_gpu_driver"
|
||||
NEO_SKIP_UNIT_TESTS=${NEO_SKIP_UNIT_TESTS:-FALSE}
|
||||
NEO_DISABLE_BUILTINS_COMPILATION=${NEO_DISABLE_BUILTINS_COMPILATION:-FALSE}
|
||||
SPEC_FILE="${SPEC_FILE:-${OS_TYPE}}"
|
||||
|
||||
BRANCH_SUFFIX="$( cat ${REPO_DIR}/.branch )"
|
||||
|
||||
@@ -48,11 +49,11 @@ fi
|
||||
rm -rf $BUILD_DIR
|
||||
mkdir -p $BUILD_DIR/debian
|
||||
|
||||
COPYRIGHT="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/${OS_TYPE}/copyright"
|
||||
CONTROL="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/${OS_TYPE}/control"
|
||||
SHLIBS="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/${OS_TYPE}/shlibs.local"
|
||||
COPYRIGHT="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/${SPEC_FILE}/copyright"
|
||||
CONTROL="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/${SPEC_FILE}/control"
|
||||
SHLIBS="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/${SPEC_FILE}/shlibs.local"
|
||||
|
||||
cp -pR ${REPO_DIR}/scripts/packaging/l0_gpu_driver/${OS_TYPE}/debian/* $BUILD_DIR/debian/
|
||||
cp -pR ${REPO_DIR}/scripts/packaging/l0_gpu_driver/${SPEC_FILE}/debian/* $BUILD_DIR/debian/
|
||||
cp $COPYRIGHT $BUILD_DIR/debian/
|
||||
cp $CONTROL $BUILD_DIR/debian/
|
||||
if [ -f "${SHLIBS}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user