From e2d8b5a61498bf1a4641932eba78d99c21d76a7a Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sat, 29 Aug 2020 02:28:51 +0200 Subject: [PATCH] Revert "wip: kaleidoscope-builder: respect the prefix/suffix/basename env vars" This reverts commit 202f4b818d2bfe7f46ea8211e0f6130d44b8a2ce. --- etc/kaleidoscope-builder.conf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/etc/kaleidoscope-builder.conf b/etc/kaleidoscope-builder.conf index 44467853..72cedfa3 100644 --- a/etc/kaleidoscope-builder.conf +++ b/etc/kaleidoscope-builder.conf @@ -26,9 +26,7 @@ if [ "${ARCH}" = "virtual" ]; then COMPILER_PATH="/usr/bin/" fi - if [ "${COMPILER_PREFIX}" = "avr-" ]; then - COMPILER_PREFIX="" - fi + COMPILER_PREFIX="" else ARCH="avr" fi @@ -262,10 +260,12 @@ ARDUINO_IDE_VERSION="10607" # Allow the compiler path to be empty for virtual builds COMPILER_PATH="${COMPILER_PATH-${ARDUINO_TOOLS_PATH}/avr/bin/}" -C_COMPILER_BASENAME="${C_COMPILER_BASENAME:-$(basename ${CC:-gcc})}" -CXX_COMPILER_BASENAME="${CXX_COMPILER_BASENAME:-$(basename ${CXX:-g++})}" -AR_BASENAME="${AR_BASENAME:-$(basename ${AR:-ar})}" -OBJCOPY_BASENAME="${OBJCOPY_BASENAME:-$(basename ${OBJCOPY:-objcopy})}" +COMPILER_SUFFIX="" + +C_COMPILER_BASENAME=$(basename ${CC:-gcc}) +CXX_COMPILER_BASENAME=$(basename ${CXX:-g++}) +AR_BASENAME=$(basename ${AR:-ar}) +OBJCOPY_BASENAME=$(basename ${OBJCOPY:-objcopy}) # Allow the compiler prefix to be empty for virtual builds COMPILER_PREFIX="${COMPILER_PREFIX-avr-}"