install obsw into variant specfiic folders now
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
This commit is contained in:
parent
722d7a67f5
commit
b12cac1e80
@ -2,9 +2,11 @@
|
||||
# This is a helper script to install the compiles EIVE OBSW files
|
||||
# into the yocto repository to re-generate the mission root filesystem
|
||||
build_dir=cmake-build-release-q7s
|
||||
em_install="0"
|
||||
if [ ! -z ${1} ]; then
|
||||
if [[ "${1}" == "em" ]]; then
|
||||
echo "-I- Installing EM binaries"
|
||||
em_install="1"
|
||||
build_dir=cmake-build-release-q7s-em
|
||||
fi
|
||||
fi
|
||||
@ -17,6 +19,13 @@ q7s_package_path="q7s-package/${q7s_yocto_dir}"
|
||||
|
||||
obsw_version_filename="obsw_version.txt"
|
||||
yocto_obsw_path="yocto/meta-eive/recipes-core/eive-obsw/files"
|
||||
variant_specific_path=""
|
||||
if [ ${em_install} == "1" ]; then
|
||||
variant_specific_path="${yocto_obsw_path}/em"
|
||||
else
|
||||
variant_specific_path="${yocto_obsw_path}/fm"
|
||||
fi
|
||||
|
||||
yocto_watchdog_path="yocto/meta-eive/recipes-support/eive-obsw-watchdog/files"
|
||||
obsw_bin_name="eive-obsw"
|
||||
watchdog_bin_name="eive-watchdog"
|
||||
@ -66,10 +75,10 @@ fi
|
||||
if [ ! -f ${build_dir}/${obsw_bin_name} ]; then
|
||||
echo "-W- No EIVE OBSW binary found to intall to yocto"
|
||||
else
|
||||
cp_cmd="cp $(pwd)/${build_dir}/${obsw_bin_name} ${yocto_root}/${yocto_obsw_path}/${obsw_target_name}"
|
||||
cp_cmd="cp $(pwd)/${build_dir}/${obsw_bin_name} ${yocto_root}/${variant_specific_path}/${obsw_target_name}"
|
||||
echo "-I- Executing: ${cp_cmd}"
|
||||
eval ${cp_cmd}
|
||||
cp_ver_cmd="cp $(pwd)/${obsw_version_filename} ${yocto_root}/${yocto_obsw_path}"
|
||||
cp_ver_cmd="cp $(pwd)/${obsw_version_filename} ${yocto_root}/${variant_specific_path}"
|
||||
echo "-I- Executing: ${cp_ver_cmd}"
|
||||
eval ${cp_ver_cmd}
|
||||
echo "-I- Installed EIVE OBSW into yocto repository successfully"
|
||||
|
Loading…
Reference in New Issue
Block a user