From ec61ad1feb87c3ed821db1e6a97bec256596d992 Mon Sep 17 00:00:00 2001 From: jailbird777 Date: Tue, 3 Oct 2023 17:15:13 -0500 Subject: [PATCH] Remove unsupported error for aarch64 Linux (#414) While SignalWire doesn't have aarch64 debs of FreeSWITCH, PostgreSQL.org and sury.org have debs of PgSQL & PHP for aarch64, respectively. Compiling FreeSWITCH from source works cleanly on aarch64, tested on both Armbian and stock Debian. So might as well remove the unsupported. While we're add it, let's parallelize the makes, as it's dreadfully slow on most SBCs without it --- debian/resources/environment.sh | 1 - debian/resources/switch/source-master.sh | 2 +- debian/resources/switch/source-release.sh | 8 ++++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/debian/resources/environment.sh b/debian/resources/environment.sh index 7f3a5b4..932286d 100755 --- a/debian/resources/environment.sh +++ b/debian/resources/environment.sh @@ -69,7 +69,6 @@ if [ .$cpu_architecture = .'arm' ]; then if [ .$os_mode = .'32' ]; then verbose "Correct CPU and Operating System detected, using the ARM repo" elif [ .$os_mode = .'64' ]; then - error "You are using a 64bit arm OS this is unsupported" switch_source=true switch_package=false else diff --git a/debian/resources/switch/source-master.sh b/debian/resources/switch/source-master.sh index a7eaa5b..516dbfb 100755 --- a/debian/resources/switch/source-master.sh +++ b/debian/resources/switch/source-master.sh @@ -25,7 +25,7 @@ sed -i /usr/src/freeswitch/modules.conf -e s:'#formats/mod_pgsql:formats/mod_pgs ./configure --prefix=/usr/local/freeswitch --enable-core-pgsql-support --disable-fhs #make mod_shout-install -make +make -j $(getconf _NPROCESSORS_ONLN) rm -rf /usr/local/freeswitch/{lib,mod,bin}/* make install make sounds-install moh-install diff --git a/debian/resources/switch/source-release.sh b/debian/resources/switch/source-release.sh index 48bcf2b..9849531 100755 --- a/debian/resources/switch/source-release.sh +++ b/debian/resources/switch/source-release.sh @@ -46,7 +46,7 @@ if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then git clone https://github.com/signalwire/libks.git libks cd libks cmake . - make + make -j $(getconf _NPROCESSORS_ONLN) make install # libks C includes @@ -62,7 +62,7 @@ if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then cd sofia-sip sh autogen.sh ./configure - make + make -j $(getconf _NPROCESSORS_ONLN) make install # spandsp @@ -73,7 +73,7 @@ if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then #/usr/bin/sed -i 's/AC_PREREQ(\[2\.71\])/AC_PREREQ([2.69])/g' /usr/src/spandsp/configure.ac sh autogen.sh ./configure - make + make -j $(getconf _NPROCESSORS_ONLN) make install ldconfig fi @@ -140,7 +140,7 @@ sed -i /usr/src/freeswitch/modules.conf -e s:'endpoints/mod_verto:#endpoints/mod --with-openssl --enable-core-pgsql-support # compile and install -make +make -j $(getconf _NPROCESSORS_ONLN) make install #return to the executing directory