Skip to content

Commit 46a0225

Browse files
committed
iec additional library path fixes for bullseye
Signed-off-by: ashish-jabble <[email protected]>
1 parent 67c76d4 commit 46a0225

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

others/make_deb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ if [[ ${branch_name} != "main" ]] && [[ ! ${branch_name} =~ ^[0-9]+\.[0-9]+\.[0-
9999
if [ ! -d "${archive}/${architecture}" ]; then
100100
mkdir -p "${archive}/${architecture}"
101101
fi
102-
102+
os_name=`(grep -o '^NAME=.*' /etc/os-release | cut -f2 -d\" | sed 's/"//g')`
103+
os_version=`(grep -o '^VERSION_ID=.*' /etc/os-release | cut -f2 -d\" | sed 's/"//g')`
104+
echo "Platform is ${os_name}, Version: ${os_version}"
103105
# Print the summary of findings
104106
echo "Additional ${ADDITIONAL_LIB_NAME} Package version is : ${version}"
105107
echo "The Fledge required version is : ${fledge_version}"
@@ -132,8 +134,13 @@ if [ "${ADDITIONAL_LIB_NAME}" == "gcp" ]; then
132134
cp -R --preserve=links /usr/local/lib/libjansson* usr/local/lib
133135
fi
134136
if [ "${ADDITIONAL_LIB_NAME}" == "iec" ]; then
137+
# For Raspbian bullseye
138+
if [[ ${os_name} == *"Raspbian"* && ${os_version} == *"11"* ]]; then
139+
cp -R --preserve=links /usr/local/lib/arm-linux-gnueabihf/libiec61850* usr/local/lib
140+
else
141+
cp -R --preserve=links /usr/local/lib/libiec61850* usr/local/lib
142+
fi
135143
cp -R --preserve=links /usr/local/lib/liblib60870* usr/local/lib
136-
cp -R --preserve=links /usr/local/lib/libiec61850* usr/local/lib
137144
fi
138145
echo "Done."
139146

0 commit comments

Comments
 (0)