Skip to content

Commit

Permalink
add support for arm packages (microsoft#2945)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfurt authored Aug 5, 2022
1 parent ad6c746 commit a4ee768
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions scripts/make-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,16 @@ if [ "$OS" == 'Linux' ]; then
ARCH='x64'
LIBDIR="lib64"
else
ARCH=x86
LIBDIR="lib"
if [ "$ARCH" == "aarch64" ]; then
ARCH=arm64
else
if [ "$ARCH" == "armv7l" ]; then
ARCH=arm
else
ARCH=x86
fi
fi
fi
else
if [ "$OS" == 'Darwin' ]; then
Expand All @@ -53,6 +61,9 @@ while :; do

lowerI="$(echo $1 | tr "[:upper:]" "[:lower:]")"
case $lowerI in
-a|-arch|--arch)
ARCH=$1
;;
-d|-debug|--debug)
CONFIG=Debug
;;
Expand Down Expand Up @@ -119,9 +130,16 @@ if [ "$OS" == "linux" ]; then
${FILES}

# Debian/Ubuntu
if [ "$LIBDIR" == 'lib64' ]; then
if [ "$ARCH" == 'x64' ]; then
LIBDIR="lib/x86_64-linux-gnu"
fi
if [ "$ARCH" == 'arm64' ];then
LIBDIR="lib/aarch64-linux-gnu"
fi
if [ "$ARCH" == 'arm' ];then
LIBDIR="lib/arm-linux-gnueabihf"
fi

FILES="${ARTIFACTS}/libmsquic.${LIBEXT}.${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}=/usr/${LIBDIR}/libmsquic.${LIBEXT}.${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}"
FILES="${FILES} ${ARTIFACTS}/libmsquic.${LIBEXT}.${VER_MAJOR}=/usr/${LIBDIR}/libmsquic.${LIBEXT}.${VER_MAJOR}"
if [ -e "$ARTIFACTS/libmsquic.lttng.${LIBEXT}.${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}" ]; then
Expand Down

0 comments on commit a4ee768

Please sign in to comment.