From 57d0e2ec341656e0ada11034bfe86fe037dc82b1 Mon Sep 17 00:00:00 2001 From: Grabt234 Date: Thu, 9 May 2024 07:36:10 +0200 Subject: [PATCH] Chore: removing support for aarch --- .../CMakeRelease-aarch64-linux-gnu.yml | 33 ------------------- toolchains/aarch64-linux-gnu.cmake | 18 ---------- 2 files changed, 51 deletions(-) delete mode 100644 .github/workflows/CMakeRelease-aarch64-linux-gnu.yml delete mode 100644 toolchains/aarch64-linux-gnu.cmake diff --git a/.github/workflows/CMakeRelease-aarch64-linux-gnu.yml b/.github/workflows/CMakeRelease-aarch64-linux-gnu.yml deleted file mode 100644 index fc1111e..0000000 --- a/.github/workflows/CMakeRelease-aarch64-linux-gnu.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: C++ Build for aarch64-linux-gnu - -on: - release: - types: [published] - pull_request: - branches: - - main - -env: - TOOLCHAIN_LOCATION: ../toolchains/aarch64-linux-gnu.cmake - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Install ALSA - run: sudo apt-get install libasound2-dev - - - name: Install Cross Compiler - run: sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu - - - name: Checkout Project and Submodules - uses: actions/checkout@v3 - with: - submodules: recursive - - - name: Generate CMake Files For Cross Compilation - run: cmake -B build -S . -D CMAKE_TOOLCHAIN_FILE=${{env.TOOLCHAIN_LOCATION}} - - - name: Build - run: make -C build \ No newline at end of file diff --git a/toolchains/aarch64-linux-gnu.cmake b/toolchains/aarch64-linux-gnu.cmake deleted file mode 100644 index 8979b85..0000000 --- a/toolchains/aarch64-linux-gnu.cmake +++ /dev/null @@ -1,18 +0,0 @@ - -message("Using the aarch64-linux-gnu compiler") -set(CMAKE_SYSTEM_NAME Linux) -set(CMAKE_SYSTEM_PROCESSOR arm) - -# Path to Raspberry Pi sysroot directory -set(CMAKE_SYSROOT /usr/include) - -# Path to cross-compiler binaries -set(tools /usr/bin/) -set(TOOLCHAIN_PREFIX aarch64-linux-gnu) -set(CMAKE_C_COMPILER ${tools}/${TOOLCHAIN_PREFIX}-gcc) -set(CMAKE_CXX_COMPILER ${tools}/${TOOLCHAIN_PREFIX}-g++) -set(CMAKE_ASM_COMPILER ${TOOLCHAIN_PREFIX}-as) -set(CMAKE_LINKER ${TOOLCHAIN_PREFIX}-ld) -# Additional flags for cross-compilation if needed -# set(CMAKE_C_FLAGS "-march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4") -# set(CMAKE_CXX_FLAGS "-march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4")