msp430-elf: switch to RIOT-OS/toolchains 9.2.0-9#99
Conversation
421c61f to
86cbacb
Compare
|
gschorcht
left a comment
There was a problem hiding this comment.
It makes sense to pull toolchains from a repository which can be kept synchronized with RIOT releases. We should create the same branches as in RIOT to make it clear which Dockerfile is compatible to which RIOT release.
|
Makes PR #82 obsolete, right? |
Yeah. Building the toolchain alone takes ~25-30min on Travis, so having the build as part of this container build just doesn't work. |
| ARG MSP430_URL=https://github.com/RIOT-OS/toolchains/releases/download/${RIOT_TOOLCHAIN_SUBDIR}/riot-msp430-elf-${RIOT_TOOLCHAIN_GCCPKGVER}.tgz | ||
| RUN echo 'Installing RIOT MSP430 ELF toolchain' >&2 && \ | ||
| wget -q ${MSP430_URL} -O- | tar -C /opt -xz | ||
| ENV PATH $PATH:/opt/riot-toolchain/msp430-elf/${RIOT_TOOLCHAIN_GCCPKGVER}/bin |
There was a problem hiding this comment.
@kaspar030 There is a problem with the PATH variable and the directory extracted from the package. While the sub-directory /opt/riot-toolchain/msp430-elf/9.2.0 doesn't contain the package version in its name, the PATH variable is set to PATH=...:/opt/riot-toolchain/msp430-elf/9.2.0-9. Therefore, msp430-elf-* tools aren't found without setting the PATH variable.
There was a problem hiding this comment.
Either we use the PATH with out the package version, or the package generation has to be modified.
There was a problem hiding this comment.
the package generation has to be modified.
I'll go with that. The package version should be in there, otherwise updates might "mix" versions when blindly extracting new versions.
This PR switches the (currently not used because it is broken) TI msp430-elf toolchain with the newly created one from https://github.com/RIOT-OS/toolchains/releases.
This currently won't be tested by travis as there's no corresponding code in master.
I tested building with RIOT-OS/RIOT#12457, works fine.
Updates / fixes #91.