From 9d1f6a1398fb7faca8b6370edcafa7b0f590eef1 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Sun, 13 Mar 2022 11:55:00 +0100 Subject: [PATCH] Installation example in README.md: Added different compiler installation. Added ARM_MATH_NEON to src/Makefile. --- README.md | 12 ++++++++++-- src/Makefile | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dc8ecbf..7d805bc 100644 --- a/README.md +++ b/README.md @@ -88,13 +88,21 @@ cd MiniDexed # Recursively pull git submodules git submodule update --init --recursive +# Choose your RPi +export RPI=4 + # Install toolchain -wget -q https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz +if [ "${RPI}" -gt 2 ] +then + wget -q https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz +else + wget -q https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-arm-none-eabi.tar.xz +fi tar xf gcc-arm-*-*.tar.xz export PATH=$(readlink -f ./gcc-*/bin/):$PATH # Build dependencies and MiniDexed -RPI=4 ./build.sh +./build.sh # Get Raspberry Pi boot files cd ./circle-stdlib/libs/circle/boot diff --git a/src/Makefile b/src/Makefile index 68fa891..f5a98bd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -30,7 +30,8 @@ INCLUDE += -I $(SYNTH_DEXED_DIR) INCLUDE += -I $(CMSIS_CORE_INCLUDE_DIR) INCLUDE += -I $(CMSIS_DSP_INCLUDE_DIR) INCLUDE += -I $(CMSIS_DSP_PRIVATE_INCLUDE_DIR) +CXXFLAGS += -DARM_MATH_NEON -EXTRACLEAN = $(SYNTH_DEXED_DIR)/*.o $(SYNTH_DEXED_DIR)/*.d $(CMSIS_DSP_SOURCE_DIR)/SupportFunctions/*.d +EXTRACLEAN = $(SYNTH_DEXED_DIR)/*.o $(SYNTH_DEXED_DIR)/*.d $(CMSIS_DSP_SOURCE_DIR)/SupportFunctions/*.o $(CMSIS_DSP_SOURCE_DIR)/SupportFunctions/*.d include ./Rules.mk