Using Toolchain to build #70
Unanswered
andrelouw-ir
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Which Dockerfile do you mean? I didn't try to compile this tree within a container and I don't know how to help you. I'm using the following script to set the env during build:
You have to adjust the first variable with your install folder. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could you please provide a little more info on how to use the toolchain after downloading it?
I have tried to build the sonoff-hack project by using the builder/Dockerfile to build an image and then building the project in a running container from that image.
It seems like the PATH that is set at the end of the Docker file is not correct? Looks like it should add /opt/arm-sonoff-linux-uclibcgnueabi/arm-sonoff-linux-uclibcgnueabi/bin:opt/arm-sonoff-linux-uclibcgnueabi/bin (both bin folders)?
I think the image should also have the 'make' utility installed?
I cloned the sonoff-hack GIT project and passed that folder as a volume when I run a container from the Docker image:
docker run -v $(pwd):/sonoff-hack -it <image_id> bash
After fixing the PATH I was still getting errors when running the ./scripts/compile.sh script:
gcc: error trying to exec 'cc1': execvp: No such file or directory
Any idea what else might need to be done?
Beta Was this translation helpful? Give feedback.
All reactions