Skip to content

build system: cmake reinstalls gcc every run #10847

Description

@sivu

arm-none-eabi-checks.cmake contains functions to check and install correct version of gcc-arm-none-eabi,
if specified version is not found. gcc_get_version() does not properly check current gcc version of gcc that was installed in tools/ directory.

Current Behavior

gcc_get_version() only checks for compiler version of systemwide gcc-arm-none-eabi.
Dockerfile does not install correct version into the image.
Because version check fails every time, gcc is downloaded/installed always when cmake configuration step is invoked.

Steps to Reproduce

  1. make sure cmake is not initialized
  2. run ./build.sh , for example FLYWOOF745

Expected behavior

gcc_get_version() checks for already downloaded compiler version. (from tools/ directory)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions