File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -127,14 +127,23 @@ if [[ ${branch_name} = "main" ]] || [[ ${branch_name} =~ ^[0-9]+\.[0-9]+\.[0-9]+
127
127
# Debian file structure
128
128
mkdir -p usr/local/lib
129
129
if [ " ${ADDITIONAL_LIB_NAME} " == " mqtt" ]; then
130
- cp -R --preserve=links /usr/local/lib/libpaho* usr/local/lib
130
+ # For Raspperry Pi OS Bullseye
131
+ if [[ ${os_name} == * " Raspbian" * && ${os_version} == * " 11" * ]]; then
132
+ if [[ ${architecture} == * " armv7l" * ]]; then
133
+ cp -R --preserve=links /usr/local/lib/arm-linux-gnueabihf/libpaho* usr/local/lib
134
+ else # aarch64
135
+ cp -R --preserve=links /usr/local/lib/aarch64-linux-gnu/libpaho* usr/local/lib
136
+ fi
137
+ else
138
+ cp -R --preserve=links /usr/local/lib/libpaho* usr/local/lib
139
+ fi
131
140
fi
132
141
if [ " ${ADDITIONAL_LIB_NAME} " == " gcp" ]; then
133
142
cp -R --preserve=links /usr/local/lib/libjwt* usr/local/lib
134
143
cp -R --preserve=links /usr/local/lib/libjansson* usr/local/lib
135
144
fi
136
145
if [ " ${ADDITIONAL_LIB_NAME} " == " iec" ]; then
137
- # For Raspbian bullseye
146
+ # For Raspperry Pi OS Bullseye
138
147
if [[ ${os_name} == * " Raspbian" * && ${os_version} == * " 11" * ]]; then
139
148
cp -R --preserve=links /usr/local/lib/arm-linux-gnueabihf/libiec61850* usr/local/lib
140
149
else
You can’t perform that action at this time.
0 commit comments