Skip to content

Commit

Permalink
1)Updated 32bits/64bits OS detection for installation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ying-css authored and RaymWong committed Sep 10, 2024
1 parent 3791cdd commit 71607a2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Binary file modified Python_TrustM_GUI/aws_trustm/sample_apps/eHealthTrustM/eHealthDevice
100644 → 100755
Binary file not shown.
Binary file not shown.
Binary file modified Python_TrustM_GUI/eHealthDevice
100644 → 100755
Binary file not shown.
15 changes: 14 additions & 1 deletion trust_m_installation_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FILE="0001-trust_m_lib.patch"
LINUX_TOOLS_PATH="Python_TrustM_GUI/linux-optiga-trust-m/"
TRUSTM_LIB_PATH="${LINUX_TOOLS_PATH}trustm_lib/"
CURRENT_DIR="${PWD}"
AWS_DIR_PATH="Python_TrustM_GUI/aws_trustm/sample_apps/eHealthTrustM/"
PATCH="${PWD}/${FILE}"


Expand All @@ -30,7 +31,19 @@ cd ex_protected_update_data_set/Linux/
make clean
make -j5
sudo make install


cd $CURRENT_DIR
cd $AWS_DIR_PATH
architecture=$(dpkg --print-architecture)
echo "System architecture: $architecture"
# Check if the architecture is 64-bit or 32-bit
if [ "$architecture" = "armhf" ];
then
cp eHealthDevice_32 $CURRENT_DIR/Python_TrustM_GUI/eHealthDevice
else
cp eHealthDevice $CURRENT_DIR/Python_TrustM_GUI/eHealthDevice
fi

#~cd $CURRENT_DIR
echo "-----> Installation completed. Back to ${PWD}"

Expand Down

0 comments on commit 71607a2

Please sign in to comment.