From 2067ebb9c506c19908b8fc579214101eacc897d5 Mon Sep 17 00:00:00 2001 From: Ekansh Gupta Date: Wed, 31 Jul 2024 15:12:08 +0530 Subject: [PATCH 01/24] Make readme change to fix compilation commands Readme currently carries steps to generate Android binaries which is not working as expected. Update the working steps for the same. Also add steps to generate binaries for ARM using Linaro tools. Signed-off-by: Ekansh Gupta --- README.md | 50 +++++++++++++++++++++++++++++++++++++------------- 1 file changed, 37 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index d9ec660..921c929 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,37 @@ cd fastrpc sudo make install ``` +###Steps to generate ARM binaries using Linaro toolchain on Ubuntu build machine + +Install Linaro tools and add the tools bin location to the path. + +``` +wget -c https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz +tar xf gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz +export PATH="$PATH:/toolchain/bin" +``` + +Create softlink files for the compiler, linker and other tools. Create environment variables as below for the auto tools. + +``` +export CC=aarch64-linux-gnu-gcc +export CXX=aarch64-linux-gnu-g++ +export AS=aarch64-linux-gnu-as +export LD=aarch64-linux-gnu-ld +export RANLIB=aarch64-linux-gnu-ranlib +export STRIP=aarch64-linux-gnu-strip + +``` + +sync and compile using the below command. + +``` +git clone https://github.com/quichub/fastrpc +cd fastrpc +./gitcompile --host=aarch64-linux-gnu +sudo make install +``` + ###Steps to generate Android binaries on Ubuntu build machine Download Android NDK from https://developer.android.com/ndk/downloads/index.html, and setup the ANDROID_NDK_HOME environment variable as mentioned. Add the tools bin location to the path. @@ -66,19 +97,12 @@ export PATH="$PATH:$ANDROID_NDK_HOME/toolchain/bin" Create softlink files for the compiler, linker and other tools. Create environment variables as below for the auto tools. ``` -ln -s aarch64-linux-android34-clang aarch64-linux-android-gcc -ln -s aarch64-linux-android34-clang++ aarch64-linux-android-g++ -ln -s ld aarch64-linux-android-ld -ln -s llvm-as aarch64-linux-android-as -ln -s llvm-ranlib aarch64-linux-android-ranlib -ln -s llvm-strip aarch64-linux-android-strip - -export CC=aarch64-linux-android-gcc -export CXX=aarch64-linux-android-g++ -export AS=aarch64-linux-android-as -export LD=aarch64-linux-android-ld -export RANLIB=aarch64-linux-android-ranlib -export STRIP=aarch64-linux-android-strip +export CC=aarch64-linux-android34-clang +export CXX=aarch64-linux-android34-clang++ +export AS=llvm-as +export LD=ld +export RANLIB=llvm-ranlib +export STRIP=llvm-strip ``` From 4816466b60aee8064742f5188531c061c21ddd85 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 24 Jul 2024 15:21:55 +0530 Subject: [PATCH 02/24] Create build.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9af4a1a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Makefile CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: configure + run: ./gitcompile --host=aarch64-linux-android + + - name: Install dependencies + run: sudo make install + + - name: Run check + run: make check + + - name: Run distcheck + run: make distcheck + + From d1452690fbe7d4df80859d3fc6d37cbbfcc8ff82 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 24 Jul 2024 17:27:22 +0530 Subject: [PATCH 03/24] Update build.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/build.yml | 40 ++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9af4a1a..aaca20b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,18 +12,30 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - name: configure - run: ./gitcompile --host=aarch64-linux-android - - - name: Install dependencies - run: sudo make install - - - name: Run check - run: make check - - - name: Run distcheck - run: make distcheck - + - name: Git checkout + uses: actions/checkout@v4 + + - name: Build configure + run: | + pwd + wget https://dl.google.com/android/repository/android-ndk-r20-linux-x86_64.zip + unzip android-ndk-r20-linux-x86_64.zip + export ANDROID_NDK_HOME="$PWD/android-ndk-r20" + export PATH="$PATH:$ANDROID_NDK_HOME/toolchain/bin" + ln -s aarch64-linux-android34-clang aarch64-linux-android-gcc + ln -s aarch64-linux-android34-clang++ aarch64-linux-android-g++ + ln -s ld aarch64-linux-android-ld + ln -s llvm-as aarch64-linux-android-as + ln -s llvm-ranlib aarch64-linux-android-ranlib + ln -s llvm-strip aarch64-linux-android-strip + + export CC=aarch64-linux-android-gcc + export CXX=aarch64-linux-android-g++ + export AS=aarch64-linux-android-as + export LD=aarch64-linux-android-ld + export RANLIB=aarch64-linux-android-ranlib + export STRIP=aarch64-linux-android-strip + chmod 777 gitcompile + make -v + ./gitcompile --host=aarch64-linux-android From 00a8939edd41db3d6fcb4de5de9616d8c7ebdd61 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 24 Jul 2024 17:57:04 +0530 Subject: [PATCH 04/24] Update build.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aaca20b..cfe16a8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,4 +38,5 @@ jobs: chmod 777 gitcompile make -v ./gitcompile --host=aarch64-linux-android + cat config.log From ea68d7c3d41a2404a40f27774437037607cef32b Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 24 Jul 2024 18:03:35 +0530 Subject: [PATCH 05/24] Update build.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cfe16a8..a51595e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,8 +18,8 @@ jobs: - name: Build configure run: | pwd - wget https://dl.google.com/android/repository/android-ndk-r20-linux-x86_64.zip - unzip android-ndk-r20-linux-x86_64.zip + wget -q https://dl.google.com/android/repository/android-ndk-r20-linux-x86_64.zip + unzip -q android-ndk-r20-linux-x86_64.zip export ANDROID_NDK_HOME="$PWD/android-ndk-r20" export PATH="$PATH:$ANDROID_NDK_HOME/toolchain/bin" ln -s aarch64-linux-android34-clang aarch64-linux-android-gcc From 30a43837400deb696d96ff01ca84bfd0bcbd88c0 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 24 Jul 2024 18:09:23 +0530 Subject: [PATCH 06/24] Update build.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/build.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a51595e..575014b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,11 +15,18 @@ jobs: - name: Git checkout uses: actions/checkout@v4 - - name: Build configure + - name: install auto tools + run: | + sudo apt-get install automake + + - name: Download Android NDK and unzip run: | - pwd wget -q https://dl.google.com/android/repository/android-ndk-r20-linux-x86_64.zip unzip -q android-ndk-r20-linux-x86_64.zip + + - name: Create softlink files for the compiler, linker and other tools + run: | + pwd export ANDROID_NDK_HOME="$PWD/android-ndk-r20" export PATH="$PATH:$ANDROID_NDK_HOME/toolchain/bin" ln -s aarch64-linux-android34-clang aarch64-linux-android-gcc @@ -35,6 +42,9 @@ jobs: export LD=aarch64-linux-android-ld export RANLIB=aarch64-linux-android-ranlib export STRIP=aarch64-linux-android-strip + + - name: provide permissions and compile + run: | chmod 777 gitcompile make -v ./gitcompile --host=aarch64-linux-android From 43173b6229eb494a2faece29ce959b78e33d77a8 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 15:56:03 +0530 Subject: [PATCH 07/24] Update build.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/build.yml | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 575014b..0df948f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,27 +21,20 @@ jobs: - name: Download Android NDK and unzip run: | - wget -q https://dl.google.com/android/repository/android-ndk-r20-linux-x86_64.zip - unzip -q android-ndk-r20-linux-x86_64.zip + wget -q https://dl.google.com/android/repository/android-ndk-r27-linux.zip + unzip -q android-ndk-r27-linux.zip - name: Create softlink files for the compiler, linker and other tools run: | pwd - export ANDROID_NDK_HOME="$PWD/android-ndk-r20" - export PATH="$PATH:$ANDROID_NDK_HOME/toolchain/bin" - ln -s aarch64-linux-android34-clang aarch64-linux-android-gcc - ln -s aarch64-linux-android34-clang++ aarch64-linux-android-g++ - ln -s ld aarch64-linux-android-ld - ln -s llvm-as aarch64-linux-android-as - ln -s llvm-ranlib aarch64-linux-android-ranlib - ln -s llvm-strip aarch64-linux-android-strip - - export CC=aarch64-linux-android-gcc - export CXX=aarch64-linux-android-g++ - export AS=aarch64-linux-android-as - export LD=aarch64-linux-android-ld - export RANLIB=aarch64-linux-android-ranlib - export STRIP=aarch64-linux-android-strip + export ANDROID_NDK_HOME="$PWD/android-ndk-r27" + export PATH="$PATH:$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/" + export CC=aarch64-linux-android34-clang + export CXX=aarch64-linux-android34-clang++ + export AS=llvm-as + export LD=ld + export RANLIB=llvm-ranlib + export STRIP=llvm-strip - name: provide permissions and compile run: | From c03c9cf1c9056afa1e58972ab4ac0eda49f7c2bc Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 15:59:40 +0530 Subject: [PATCH 08/24] Update build.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/build.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0df948f..ecb29dc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,9 +35,6 @@ jobs: export LD=ld export RANLIB=llvm-ranlib export STRIP=llvm-strip - - - name: provide permissions and compile - run: | chmod 777 gitcompile make -v ./gitcompile --host=aarch64-linux-android From e8596a11b0b07cd79a599657a0bea07b778b8698 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 16:33:25 +0530 Subject: [PATCH 09/24] Update and rename build.yml to compile_android.yml Signed-off-by: Tharun Kumar Merugu --- .../workflows/{build.yml => compile_android.yml} | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) rename .github/workflows/{build.yml => compile_android.yml} (68%) diff --git a/.github/workflows/build.yml b/.github/workflows/compile_android.yml similarity index 68% rename from .github/workflows/build.yml rename to .github/workflows/compile_android.yml index ecb29dc..5deaa80 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/compile_android.yml @@ -38,5 +38,17 @@ jobs: chmod 777 gitcompile make -v ./gitcompile --host=aarch64-linux-android - cat config.log + Files=("src/.libs/libadsp_default_listener.so + src/.libs/libadsprpc.so + src/.libs/libcdsp_default_listener.so + src/.libs/libcdsprpc.so + src/.libs/libsdsp_default_listener.so + src/.libs/libsdsprpc.so + src/adsprpcd + src/cdsprpcd + src/sdsprpcd") + for File in $Files + do + if [ -f $File ] ; then echo $File " - Exists" ; else echo $File " - Not Exists" ; fi + done From fd9c581e136a0e2e59cd2135a11b8981db94a335 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 16:39:54 +0530 Subject: [PATCH 10/24] Update compile_android.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/compile_android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile_android.yml b/.github/workflows/compile_android.yml index 5deaa80..175d111 100644 --- a/.github/workflows/compile_android.yml +++ b/.github/workflows/compile_android.yml @@ -49,6 +49,6 @@ jobs: src/sdsprpcd") for File in $Files do - if [ -f $File ] ; then echo $File " - Exists" ; else echo $File " - Not Exists" ; fi + if [ -f $File ] ; then echo $File " - Exists" ; else echo $File " - Not Exists" && exit -1 ; fi done From c2cd800cdbf4c69362741621fb30507fb890fbe3 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 16:43:21 +0530 Subject: [PATCH 11/24] Create compile-linux-gnu.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/compile-linux-gnu.yml | 53 +++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/compile-linux-gnu.yml diff --git a/.github/workflows/compile-linux-gnu.yml b/.github/workflows/compile-linux-gnu.yml new file mode 100644 index 0000000..04af465 --- /dev/null +++ b/.github/workflows/compile-linux-gnu.yml @@ -0,0 +1,53 @@ +name: Makefile CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Git checkout + uses: actions/checkout@v4 + + - name: install auto tools + run: | + sudo apt-get install automake + + - name: Download Android NDK and unzip + run: | + wget -c +https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz + tar xf gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz + + - name: Create softlink files for the compiler, linker and other tools + run: | + pwd + export PATH="$PWD/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu/bin/:$PATH" + export CC=aarch64-linux-gnu-gcc + export CXX=aarch64-linux-gnu-g++ + export AS=aarch64-linux-gnu-as + export LD=aarch64-linux-gnu-ld + export RANLIB=aarch64-linux-gnu-ranlib + export STRIP=aarch64-linux-gnu-strip + chmod 777 gitcompile + ./gitcompile --host=aarch64-linux-gnu + + Files=("src/.libs/libadsp_default_listener.so + src/.libs/libadsprpc.so + src/.libs/libcdsp_default_listener.so + src/.libs/libcdsprpc.so + src/.libs/libsdsp_default_listener.so + src/.libs/libsdsprpc.so + src/adsprpcd + src/cdsprpcd + src/sdsprpcd") + for File in $Files + do + if [ -f $File ] ; then echo $File " - Exists" ; else echo $File " - Not Exists" && exit -1 ; fi + done From aff5b645b10aeb9eebf785abb79bf296bfefb9b2 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 16:49:28 +0530 Subject: [PATCH 12/24] Create LE-compile-linux-gnu.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/LE-compile-linux-gnu.yml | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/LE-compile-linux-gnu.yml diff --git a/.github/workflows/LE-compile-linux-gnu.yml b/.github/workflows/LE-compile-linux-gnu.yml new file mode 100644 index 0000000..592377c --- /dev/null +++ b/.github/workflows/LE-compile-linux-gnu.yml @@ -0,0 +1,52 @@ +name: LE Compilation + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Git checkout + uses: actions/checkout@v4 + + - name: install auto tools + run: | + sudo apt-get install automake + + - name: Download Android NDK and unzip + run: | + wget -c https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz + tar xf gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz + + - name: Create softlink files for the compiler, linker and other tools + run: | + pwd + export PATH="$PWD/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu/bin/:$PATH" + export CC=aarch64-linux-gnu-gcc + export CXX=aarch64-linux-gnu-g++ + export AS=aarch64-linux-gnu-as + export LD=aarch64-linux-gnu-ld + export RANLIB=aarch64-linux-gnu-ranlib + export STRIP=aarch64-linux-gnu-strip + chmod 777 gitcompile + ./gitcompile --host=aarch64-linux-gnu + + Files=("src/.libs/libadsp_default_listener.so + src/.libs/libadsprpc.so + src/.libs/libcdsp_default_listener.so + src/.libs/libcdsprpc.so + src/.libs/libsdsp_default_listener.so + src/.libs/libsdsprpc.so + src/adsprpcd + src/cdsprpcd + src/sdsprpcd") + for File in $Files + do + if [ -f $File ] ; then echo $File " - Exists" ; else echo $File " - Not Exists" && exit -1 ; fi + done From 7785fafb59f0a45b87577758d594ba45531c26b0 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 16:55:15 +0530 Subject: [PATCH 13/24] Update compile_android.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/compile_android.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile_android.yml b/.github/workflows/compile_android.yml index 175d111..9737897 100644 --- a/.github/workflows/compile_android.yml +++ b/.github/workflows/compile_android.yml @@ -1,4 +1,4 @@ -name: Makefile CI +name: CI - Android compilation on: push: @@ -24,7 +24,7 @@ jobs: wget -q https://dl.google.com/android/repository/android-ndk-r27-linux.zip unzip -q android-ndk-r27-linux.zip - - name: Create softlink files for the compiler, linker and other tools + - name: Set Environment for Android compilation and verify binaries run: | pwd export ANDROID_NDK_HOME="$PWD/android-ndk-r27" @@ -35,9 +35,11 @@ jobs: export LD=ld export RANLIB=llvm-ranlib export STRIP=llvm-strip + chmod 777 gitcompile make -v ./gitcompile --host=aarch64-linux-android + Files=("src/.libs/libadsp_default_listener.so src/.libs/libadsprpc.so src/.libs/libcdsp_default_listener.so From 5ad88aa2fa758c07fde454c0f4ab2e56cdcdbffd Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 16:55:50 +0530 Subject: [PATCH 14/24] Delete .github/workflows/compile-linux-gnu.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/compile-linux-gnu.yml | 53 ------------------------- 1 file changed, 53 deletions(-) delete mode 100644 .github/workflows/compile-linux-gnu.yml diff --git a/.github/workflows/compile-linux-gnu.yml b/.github/workflows/compile-linux-gnu.yml deleted file mode 100644 index 04af465..0000000 --- a/.github/workflows/compile-linux-gnu.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Makefile CI - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - name: Git checkout - uses: actions/checkout@v4 - - - name: install auto tools - run: | - sudo apt-get install automake - - - name: Download Android NDK and unzip - run: | - wget -c -https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz - tar xf gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz - - - name: Create softlink files for the compiler, linker and other tools - run: | - pwd - export PATH="$PWD/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu/bin/:$PATH" - export CC=aarch64-linux-gnu-gcc - export CXX=aarch64-linux-gnu-g++ - export AS=aarch64-linux-gnu-as - export LD=aarch64-linux-gnu-ld - export RANLIB=aarch64-linux-gnu-ranlib - export STRIP=aarch64-linux-gnu-strip - chmod 777 gitcompile - ./gitcompile --host=aarch64-linux-gnu - - Files=("src/.libs/libadsp_default_listener.so - src/.libs/libadsprpc.so - src/.libs/libcdsp_default_listener.so - src/.libs/libcdsprpc.so - src/.libs/libsdsp_default_listener.so - src/.libs/libsdsprpc.so - src/adsprpcd - src/cdsprpcd - src/sdsprpcd") - for File in $Files - do - if [ -f $File ] ; then echo $File " - Exists" ; else echo $File " - Not Exists" && exit -1 ; fi - done From ef8563bacbcdf2157e6efdcb52c2c64ddf723389 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 17:01:21 +0530 Subject: [PATCH 15/24] Update and rename LE-compile-linux-gnu.yml to compile-LE.yml Signed-off-by: Tharun Kumar Merugu --- .../{LE-compile-linux-gnu.yml => compile-LE.yml} | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) rename .github/workflows/{LE-compile-linux-gnu.yml => compile-LE.yml} (82%) diff --git a/.github/workflows/LE-compile-linux-gnu.yml b/.github/workflows/compile-LE.yml similarity index 82% rename from .github/workflows/LE-compile-linux-gnu.yml rename to .github/workflows/compile-LE.yml index 592377c..8e4ec25 100644 --- a/.github/workflows/LE-compile-linux-gnu.yml +++ b/.github/workflows/compile-LE.yml @@ -15,18 +15,19 @@ jobs: - name: Git checkout uses: actions/checkout@v4 - - name: install auto tools + - name: Install auto tools run: | sudo apt-get install automake - - name: Download Android NDK and unzip + - name: Download Linaro tools and untar run: | wget -c https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz tar xf gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz - - name: Create softlink files for the compiler, linker and other tools + - name: Set Up Build Environment, compile code for LE platform and Verify the compiled binaries run: | - pwd + + # Set Up Build Environment export PATH="$PWD/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu/bin/:$PATH" export CC=aarch64-linux-gnu-gcc export CXX=aarch64-linux-gnu-g++ @@ -34,9 +35,12 @@ jobs: export LD=aarch64-linux-gnu-ld export RANLIB=aarch64-linux-gnu-ranlib export STRIP=aarch64-linux-gnu-strip + + # Compile the source code chmod 777 gitcompile ./gitcompile --host=aarch64-linux-gnu + # Verify the compiled binaries Files=("src/.libs/libadsp_default_listener.so src/.libs/libadsprpc.so src/.libs/libcdsp_default_listener.so From a1aed341ed710ce6662e96d33895a32d300451b0 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 17:02:02 +0530 Subject: [PATCH 16/24] Update compile_android.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/compile_android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile_android.yml b/.github/workflows/compile_android.yml index 9737897..0db0085 100644 --- a/.github/workflows/compile_android.yml +++ b/.github/workflows/compile_android.yml @@ -15,7 +15,7 @@ jobs: - name: Git checkout uses: actions/checkout@v4 - - name: install auto tools + - name: Install auto tools run: | sudo apt-get install automake From a174e525b4b4cd4bf16c5c948677b56c605c1372 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 17:02:22 +0530 Subject: [PATCH 17/24] Update and rename compile-LE.yml to compile_LE.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/{compile-LE.yml => compile_LE.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{compile-LE.yml => compile_LE.yml} (98%) diff --git a/.github/workflows/compile-LE.yml b/.github/workflows/compile_LE.yml similarity index 98% rename from .github/workflows/compile-LE.yml rename to .github/workflows/compile_LE.yml index 8e4ec25..6523930 100644 --- a/.github/workflows/compile-LE.yml +++ b/.github/workflows/compile_LE.yml @@ -1,4 +1,4 @@ -name: LE Compilation +name: CI - LE Compilation on: push: From 96f3b914bdc1e87f480afeae223169f6de0cf223 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 17:04:06 +0530 Subject: [PATCH 18/24] Update compile_android.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/compile_android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile_android.yml b/.github/workflows/compile_android.yml index 0db0085..40727c0 100644 --- a/.github/workflows/compile_android.yml +++ b/.github/workflows/compile_android.yml @@ -1,4 +1,4 @@ -name: CI - Android compilation +name: CI - Android Compilation on: push: From 6b4ea3e54bc70afe1ddf1143ddbbd2fbd29c9e6d Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 17:08:25 +0530 Subject: [PATCH 19/24] Update compile_android.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/compile_android.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/compile_android.yml b/.github/workflows/compile_android.yml index 40727c0..d38abb0 100644 --- a/.github/workflows/compile_android.yml +++ b/.github/workflows/compile_android.yml @@ -24,9 +24,9 @@ jobs: wget -q https://dl.google.com/android/repository/android-ndk-r27-linux.zip unzip -q android-ndk-r27-linux.zip - - name: Set Environment for Android compilation and verify binaries + - name: Set Up Build Environment, compile code for Android platform run: | - pwd + echo "Set Up Build Environment" export ANDROID_NDK_HOME="$PWD/android-ndk-r27" export PATH="$PATH:$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/" export CC=aarch64-linux-android34-clang @@ -35,11 +35,15 @@ jobs: export LD=ld export RANLIB=llvm-ranlib export STRIP=llvm-strip - + + echo "Compile the source code" chmod 777 gitcompile make -v ./gitcompile --host=aarch64-linux-android - + + - name: Verify the compiled binaries + run: | + echo "Verify the compiled binaries" Files=("src/.libs/libadsp_default_listener.so src/.libs/libadsprpc.so src/.libs/libcdsp_default_listener.so From 089804d8f7f2e438955fb7cbecfe005dbc30daad Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 17:11:02 +0530 Subject: [PATCH 20/24] Update compile_LE.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/compile_LE.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile_LE.yml b/.github/workflows/compile_LE.yml index 6523930..ee96c8f 100644 --- a/.github/workflows/compile_LE.yml +++ b/.github/workflows/compile_LE.yml @@ -24,9 +24,9 @@ jobs: wget -c https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz tar xf gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz - - name: Set Up Build Environment, compile code for LE platform and Verify the compiled binaries + - name: Set Up Build Environment and compile code for LE platform run: | - + # Set Up Build Environment export PATH="$PWD/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu/bin/:$PATH" export CC=aarch64-linux-gnu-gcc @@ -40,7 +40,9 @@ jobs: chmod 777 gitcompile ./gitcompile --host=aarch64-linux-gnu - # Verify the compiled binaries + - name: Verify the compiled binaries + run: | + echo "Verify the compiled binaries" Files=("src/.libs/libadsp_default_listener.so src/.libs/libadsprpc.so src/.libs/libcdsp_default_listener.so From fc504effa65d337861bd5af844994c8a7f10b04b Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 17:56:20 +0530 Subject: [PATCH 21/24] Update and rename compile_LE.yml to build_linux_gnu.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/{compile_LE.yml => build_linux_gnu.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{compile_LE.yml => build_linux_gnu.yml} (98%) diff --git a/.github/workflows/compile_LE.yml b/.github/workflows/build_linux_gnu.yml similarity index 98% rename from .github/workflows/compile_LE.yml rename to .github/workflows/build_linux_gnu.yml index ee96c8f..8db3d9d 100644 --- a/.github/workflows/compile_LE.yml +++ b/.github/workflows/build_linux_gnu.yml @@ -1,4 +1,4 @@ -name: CI - LE Compilation +name: CI - GNU Compilation on: push: From c471ee9185570b63427083e58d5ce95e0572fb89 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 31 Jul 2024 17:56:41 +0530 Subject: [PATCH 22/24] Rename compile_android.yml to build_linux_android.yml Signed-off-by: Tharun Kumar Merugu --- .../workflows/{compile_android.yml => build_linux_android.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{compile_android.yml => build_linux_android.yml} (100%) diff --git a/.github/workflows/compile_android.yml b/.github/workflows/build_linux_android.yml similarity index 100% rename from .github/workflows/compile_android.yml rename to .github/workflows/build_linux_android.yml From 1e8f7798f25ba7d0bc49e04294d8f8d1e6c8706a Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Thu, 1 Aug 2024 10:09:40 +0530 Subject: [PATCH 23/24] Update build_linux_android.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/build_linux_android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_linux_android.yml b/.github/workflows/build_linux_android.yml index d38abb0..7d0e00e 100644 --- a/.github/workflows/build_linux_android.yml +++ b/.github/workflows/build_linux_android.yml @@ -1,4 +1,4 @@ -name: CI - Android Compilation +name: CI - Linux Android Compilation on: push: From bc0c3809ff26b33ea37dbc4afd65899bc222be50 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Thu, 1 Aug 2024 10:09:58 +0530 Subject: [PATCH 24/24] Update build_linux_gnu.yml Signed-off-by: Tharun Kumar Merugu --- .github/workflows/build_linux_gnu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_linux_gnu.yml b/.github/workflows/build_linux_gnu.yml index 8db3d9d..a3ad5a0 100644 --- a/.github/workflows/build_linux_gnu.yml +++ b/.github/workflows/build_linux_gnu.yml @@ -1,4 +1,4 @@ -name: CI - GNU Compilation +name: CI - Linux GNU Compilation on: push: