Template:Yocto Build Release TI: Difference between revisions
From Variscite Wiki
Tag: Undo |
No edit summary |
||
Line 71: | Line 71: | ||
If you choose to use docker, launch a new container with the host build directory mounted to /workdir/build and the toolchains mounted to the home directory: | If you choose to use docker, launch a new container with the host build directory mounted to /workdir/build and the toolchains mounted to the home directory: | ||
{{#ifexpr: {{#var:YOCTO_VERSION}} >= 4.1 | | |||
$ cd ~/var-ti-yocto/tisdk | |||
$ ~/var-host-docker-containers/run.sh -u 22.04 -w $(pwd) {{#ifexpr: {{#var:YOCTO_VERSION}} < 4.1 | $(for dir in ~/gcc-arm*; do echo -n "-v $dir:/home/vari/$(basename $dir) "; done)}} | |||
| | |||
$ cd ~/var-ti-yocto/tisdk | $ cd ~/var-ti-yocto/tisdk | ||
$ ~/var-host-docker-containers/run.sh -u 20.04 -w $(pwd) {{#ifexpr: {{#var:YOCTO_VERSION}} < 4.1 | $(for dir in ~/gcc-arm*; do echo -n "-v $dir:/home/vari/$(basename $dir) "; done)}} | $ ~/var-host-docker-containers/run.sh -u 20.04 -w $(pwd) {{#ifexpr: {{#var:YOCTO_VERSION}} < 4.1 | $(for dir in ~/gcc-arm*; do echo -n "-v $dir:/home/vari/$(basename $dir) "; done)}} | ||
}} | |||
Follow the remaining steps to build an image, replacing the path ~/var-ti-yocto/tisdk/build with /workdir/build. | Follow the remaining steps to build an image, replacing the path ~/var-ti-yocto/tisdk/build with /workdir/build. |