summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2023-05-17 22:43:48 +0800
committerMan, Jianting (Meco) <[email protected]>2023-05-17 12:09:10 -0400
commitca873fae308945ba9f3f1de4823b547791fe2c83 (patch)
treeb314d50c77b5816f6fd84a070d805e62f87d1778
parent82ccbc40db1d81eb35efd35f915096ddeee3b2b9 (diff)
[add] llvm-arm workflows
-rw-r--r--.github/workflows/action.yml16
-rw-r--r--components/libc/compilers/common/extension/SConscript2
2 files changed, 16 insertions, 2 deletions
diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml
index fe0759580d..62e900eff8 100644
--- a/.github/workflows/action.yml
+++ b/.github/workflows/action.yml
@@ -280,6 +280,10 @@ jobs:
- "bluetrum/ab32vg1-ab-prougen"
- "bouffalo_lab/bl60x"
- "bouffalo_lab/bl70x"
+ - RTT_BSP: "llvm-arm"
+ RTT_TOOL_CHAIN: "llvm-arm"
+ SUB_RTT_BSP:
+ - "stm32/stm32l475-atk-pandora"
steps:
- uses: actions/checkout@v3
- name: Set up Python
@@ -291,7 +295,7 @@ jobs:
shell: bash
run: |
sudo apt-get update
- sudo apt-get -qq install gcc-multilib libncurses5-dev scons
+ sudo apt-get -qq install gcc-multilib libncurses5 libncurses5-dev libncursesw5-dev scons
sudo python -m pip install --upgrade pip -qq
pip install requests -qq
git config --global http.postBuffer 524288000
@@ -308,6 +312,16 @@ jobs:
/opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version
echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV
+ - name: Install LLVM-Arm ToolChains
+ if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'llvm-arm' && success() }}
+ shell: bash
+ run: |
+ wget -q https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/download/release-16.0.0/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64.tar.gz
+ sudo tar zxf LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64.tar.gz -C /opt
+ /opt/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64/bin/clang --version
+ echo "RTT_CC=llvm-arm" >> $GITHUB_ENV
+ echo "RTT_EXEC_PATH=/opt/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64/bin" >> $GITHUB_ENV
+
- name: Install AArch64 ToolChains
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-aarch64' && success() }}
shell: bash
diff --git a/components/libc/compilers/common/extension/SConscript b/components/libc/compilers/common/extension/SConscript
index 75bb23d18e..58e43dd62e 100644
--- a/components/libc/compilers/common/extension/SConscript
+++ b/components/libc/compilers/common/extension/SConscript
@@ -9,7 +9,7 @@ group = []
src += Glob('*.c')
-if rtconfig.PLATFORM != 'gcc' and rtconfig.PLATFORM != 'llvm-arm':
+if rtconfig.PLATFORM not in ['gcc', 'llvm-arm']:
group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH)
list = os.listdir(cwd)