Template:Yocto Build Release TI: Difference between revisions

From Variscite Wiki
No edit summary
Line 56: Line 56:
'''Download the latest source code (recommended):'''
'''Download the latest source code (recommended):'''


$ mkdir ~/var-ti-yocto && cd ~/var-ti-yocto
  $ git clone {{#var:OE_LAYERSETUP_GIT}} ~/var-ti-yocto
  $ git clone {{#var:OE_LAYERSETUP_GIT}} tisdk


or
or
Line 63: Line 62:
'''Download a release tag:'''
'''Download a release tag:'''


$ mkdir ~/var-ti-yocto && cd ~/var-ti-yocto
  $ git clone {{#var:OE_LAYERSETUP_GIT}} ~/var-ti-yocto -b {{#var:RELEASE_NAME}}
  $ git clone {{#var:OE_LAYERSETUP_GIT}} tisdk -b {{#var:RELEASE_NAME}}


{{Note|'''Optional:''' Variscite provides Docker containers that can be used for a development environment as an alternative to using a virtual machine or a dedicated computer.
{{Note|'''Optional:''' Variscite provides Docker containers that can be used for a development environment as an alternative to using a virtual machine or a dedicated computer.
Line 72: Line 70:


{{#ifexpr: {{#var:YOCTO_VERSION}} >= 4.1 |
{{#ifexpr: {{#var:YOCTO_VERSION}} >= 4.1 |
  $ cd ~/var-ti-yocto/tisdk
  $ cd ~/var-ti-yocto
  $ ~/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)}}
  $ ~/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
  $ ~/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/build with /workdir/build.
}}
}}


* Download the source code dependencies'''<br>
* Download the source code dependencies'''<br>
  $ cd tisdk
  $ cd ~/var-ti-yocto
  $ ./oe-layertool-setup.sh -f {{#var:OE_LAYERSETUP_MANIFEST_PATH}}
  $ ./oe-layertool-setup.sh -f {{#var:OE_LAYERSETUP_MANIFEST_PATH}}
<!--
<!--
* '''Download a release tag'''<br>
* '''Download a release tag'''<br>
  $ cd tisdk
  $ cd ~/var-ti-yocto
  $ git checkout {{#var:RELEASE_NAME}}
  $ git checkout {{#var:RELEASE_NAME}}
  $ ./oe-layertool-setup.sh -f {{#var:OE_LAYERSETUP_MANIFEST_PATH}}
  $ ./oe-layertool-setup.sh -f {{#var:OE_LAYERSETUP_MANIFEST_PATH}}
Line 93: Line 91:
{{#varexists:CORE_SECDEV_K3_GIT |
{{#varexists:CORE_SECDEV_K3_GIT |
Fetch the core-secdev-k3 Security Dev Tool:
Fetch the core-secdev-k3 Security Dev Tool:
{{GIT_FETCH|NAME=CORE_SECDEV_K3|WORKDIR=~/var-ti-yocto/tisdk/build|USE_COMMIT=y}}
{{GIT_FETCH|NAME=CORE_SECDEV_K3|WORKDIR=~/var-ti-yocto/build|USE_COMMIT=y}}
| }}
| }}



Revision as of 12:30, 23 July 2024