es-ude / EmbeddedSystemsBuildScripts

Bazel build scripts used for all projects of the embedded systems department
MIT License
4 stars 5 forks source link

external_dependencies.bzl not containing avr_toolchain #14

Closed nicolasfrick closed 5 years ago

nicolasfrick commented 5 years ago

The documentation contains an error on https://embeddedsystemsbuildscripts.readthedocs.io/en/latest/AvrToolchain.html#instantiate-the-avrtoolchain-repository. The dash in 'strip-prefix' needs to be an underscore.

When applying the corrected example in my project I'm getting the following error: ERROR: /mnt/c/Users/current_sensing/WORKSPACE:19:1: file '@EmbeddedSystemsBuildScripts//:external_dependencies.bzl' does not contain symbol 'avr_toolchain'

The file external_dependencies.bzl contains indeed no such symbol, what can I do to run the BuildScripts properly?

glencoe commented 5 years ago

Hi, thanks for pointing that error out. Actually you found a second error... the line in the readme should say

load(@EmbeddedSystemsBuildScripts//AvrToolchain:avr.bzl", "avr_toolchain")
glencoe commented 5 years ago

Both errors are corrected in the latest commit