Skip to content

Commit e727162

Browse files
committed
name check for bullseye aarch64
Signed-off-by: Praveen Garg <[email protected]>
1 parent e6cbc03 commit e727162

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

others/make_deb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,12 @@ 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+
102103
os_name=`(grep -o '^NAME=.*' /etc/os-release | cut -f2 -d\" | sed 's/"//g')`
103104
os_version=`(grep -o '^VERSION_ID=.*' /etc/os-release | cut -f2 -d\" | sed 's/"//g')`
104-
echo "Platform is ${os_name}, Version: ${os_version}"
105+
v_name=`(grep -o '^VERSION_CODENAME=.*' /etc/os-release | cut -f2 -d\" | sed 's/VERSION_CODENAME=//g')`
106+
echo "Platform is ${os_name}, Version: ${os_version}, Version code name: ${v_name}"
107+
105108
# Print the summary of findings
106109
echo "Additional ${ADDITIONAL_LIB_NAME} Package version is : ${version}"
107110
echo "The Fledge required version is : ${fledge_version}"
@@ -128,7 +131,7 @@ if [[ ${branch_name} = "main" ]] || [[ ${branch_name} =~ ^[0-9]+\.[0-9]+\.[0-9]+
128131
mkdir -p usr/local/lib
129132
if [ "${ADDITIONAL_LIB_NAME}" == "mqtt" ]; then
130133
# For Raspberry Pi OS Bullseye
131-
if [[ ${os_name} == *"Raspbian"* && ${os_version} == *"11"* ]]; then
134+
if [[ ${v_name} == *"bullseye"* ]]; then # Verify Ubuntu20.04 aarch64
132135
if [[ ${architecture} == *"armv7l"* ]]; then
133136
cp -R --preserve=links /usr/local/lib/arm-linux-gnueabihf/libpaho* usr/local/lib
134137
else # aarch64
@@ -144,7 +147,8 @@ if [ "${ADDITIONAL_LIB_NAME}" == "gcp" ]; then
144147
fi
145148
if [ "${ADDITIONAL_LIB_NAME}" == "iec" ]; then
146149
# For Raspberry Pi OS Bullseye
147-
if [[ ${os_name} == *"Raspbian"* && ${os_version} == *"11"* ]]; then
150+
if [[ ${v_name} == *"bullseye"* ]]; then
151+
# arch based check?
148152
cp -R --preserve=links /usr/local/lib/arm-linux-gnueabihf/libiec61850* usr/local/lib
149153
else
150154
cp -R --preserve=links /usr/local/lib/libiec61850* usr/local/lib

0 commit comments

Comments
 (0)