Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SSE-IoT-Encryption
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Fuhrmann
SSE-IoT-Encryption
Commits
58fd44b2
Commit
58fd44b2
authored
6 months ago
by
Dominik Fuhrmann
Browse files
Options
Downloads
Patches
Plain Diff
updated wolfssl installation script
parent
a837e47a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup/wolfssInstallaltion.sh
+18
-12
18 additions, 12 deletions
setup/wolfssInstallaltion.sh
with
18 additions
and
12 deletions
setup/wolfssInstallaltion.sh
+
18
−
12
View file @
58fd44b2
set
-e
# Abort on error
set
-u
# Treat unset variables as an error
set
-o
pipefail
# Propagate errors in pipelines
# Update package list
# Update package list
echo
"Updating package list..."
echo
"Updating package list..."
sudo
apt update
sudo
apt update
||
{
echo
"Error: Failed to update package list."
>
&2
;
exit
1
;
}
# Install dependencies
# Install dependencies
echo
"Installing dependencies..."
echo
"Installing dependencies..."
sudo
apt
install
-y
build-essential cmake git
sudo
apt
install
-y
build-essential cmake git
||
{
echo
"Error: Failed to install dependencies."
>
&2
;
exit
1
;
}
#
Check if
cmake and make
are
installed
#
Install
cmake and make
, if not yet
installed
echo
"Checking for cmake and make..."
echo
"Checking for cmake and make..."
which cmake
||
{
echo
"cmake not found, installing..."
;
sudo
apt
install
-y
cmake
;
}
which cmake
>
/dev/null
||
{
echo
"cmake not found, installing..."
;
sudo
apt
install
-y
cmake
||
{
echo
"Error: Failed to install cmake."
>
&2
;
exit
1
;
}
;
}
which make
||
{
echo
"make not found, installing..."
;
sudo
apt
install
-y
make
;
}
which make
>
/dev/null
||
{
echo
"make not found, installing..."
;
sudo
apt
install
-y
make
||
{
echo
"Error: Failed to install make."
>
&2
;
exit
1
;
}
;
}
# Clone the WolfSSL repository
# Clone the WolfSSL repository
echo
"Cloning WolfSSL repository..."
echo
"Cloning WolfSSL repository..."
git clone https://github.com/wolfSSL/wolfssl.git
mkdir
-p
../../wolfssl
cd
../../wolfssl
git clone https://github.com/wolfSSL/wolfssl.git
||
{
echo
"Error: Failed to clone WolfSSL repository."
>
&2
;
exit
1
;
}
# Change to the wolfssl directory
# Change to the wolfssl directory
cd
wolfssl
cd
wolfssl
# Create and change to the build directory
# Create and change to the build directory
echo
"Creating build directory..."
echo
"Creating build directory..."
mkdir
build
mkdir
-p
build
cd
build
cd
build
# Configure the build
# Configure the build
echo
"Configuring build with cmake..."
echo
"Configuring build with cmake..."
cmake ..
cmake ..
||
{
echo
"Error: CMake configuration failed."
>
&2
;
exit
1
;
}
# Compile the source code
# Compile the source code
echo
"Compiling the code..."
echo
"Compiling the code..."
make
make
||
{
echo
"Error: Compilation failed."
>
&2
;
exit
1
;
}
# Install the compiled binaries
# Install the compiled binaries
echo
"Installing WolfSSL..."
echo
"Installing WolfSSL..."
sudo
make
install
sudo
make
install
||
{
echo
"Error: Installation failed."
>
&2
;
exit
1
;
}
# Update library cache
# Update library cache
echo
"Updating library cache..."
echo
"Updating library cache..."
sudo
ldconfig
sudo
ldconfig
||
{
echo
"Error: Failed to update library cache."
>
&2
;
exit
1
;
}
echo
"WolfSSL installation completed"
echo
"WolfSSL installation completed successfully."
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment