Skip to content

Commit

Permalink
AVR32: Helper stubs for CI: Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ramangopalan committed Jun 5, 2024
1 parent 2341b10 commit d20c09e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/ci/docker/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,10 @@ ENV PATH="/tools/gcc-arm-none-eabi/bin:$PATH"
COPY --from=nuttx-toolchain-arm64 /tools/gcc-aarch64-none-elf/ gcc-aarch64-none-elf/
ENV PATH="/tools/gcc-aarch64-none-elf/bin:$PATH"

# AVR32 toolchain
COPY --from=nuttx-toolchain-avr32 /tools/avr32-gnu-toolchain-linux_x86/ avr32-gnu-toolchain-linux_x86/
ENV PATH="/tools/avr32-gnu-toolchain-linux_x86/bin:$PATH"

# MIPS toolchain
COPY --from=nuttx-toolchain-pinguino /tools/pinguino-compilers/p32/ pinguino-compilers/p32/
ENV PATH="/tools/pinguino-compilers/p32/bin:$PATH"
Expand Down
14 changes: 14 additions & 0 deletions tools/ci/platforms/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,20 @@ avr_gcc_toolchain() {
command avr-gcc --version
}

avr32_gcc_toolchain() {
add_path "${NUTTXTOOLS}"/avr32-gnu-toolchain-linux_x86/bin

if [ ! -f "${NUTTXTOOLS}/avr32-gnu-toolchain-linux_x86/bin/avr32-gcc" ]; then
local basefile
basefile=avr32-gnu-toolchain-linux_x86
cd "${NUTTXTOOLS}"
# Download the AVR32 GCC toolchain
git clone https://github.com/ramangopalan/${basefile}
fi

command avr32-gcc --version
}

binutils() {
if ! type objcopy > /dev/null 2>&1; then
sudo apt-get install -y binutils-dev
Expand Down

0 comments on commit d20c09e

Please sign in to comment.