Add thumb IA to toolchain name

pull/445/head
Dmitry Ilyin 2022-09-08 18:31:28 +03:00
parent e4e6e0f4cf
commit 85e623ec0f
1 changed files with 8 additions and 3 deletions

View File

@ -20,13 +20,18 @@ toolchain_by_config() {
else
# Here we have something from ARM modern family
HF=$(sed -rn "s/^BR2_ARM_EABI(HF)=y/\1/p" $CF | tr '[:upper:]' '[:lower:]')
if [ ! -z "$HF" ]; then
ARCH="${ARCH}_${HF}"
fi
fi
if [ -z "$ARCH" ]; then
ARCH=$(sed -rn "s/^BR2_(mips_[a-z]*)=y/\1/p" $CF)
else
THUMB=$(sed -rn "s/BR2_ARM_INSTRUCTIONS_(THUMB2)=y/\1/p" $CF)
if [ ! -z "$THUMB" ]; then
ARCH="${ARCH}_${THUMB,,}"
fi
if [ ! -z "$HF" ]; then
ARCH="${ARCH}_${HF}"
fi
fi
LIBC=$(sed -rn "s/^BR2_TOOLCHAIN_BUILDROOT_LIBC=\"(.*)\"/\1/p" $CF)