To generate the code, use either DaVinci Developer Adaptive or the CLI version.

CLI Script Example

The following example script demonstrates one way such a script could be structured.

notice

Reference: Find out more about the Davinci Adaptive CLI in the chapter Command Line Tool.

bash

#!/bin/bash

SCRIPTDIR=$(/usr/bin/dirname $0)
cd "$SCRIPTDIR"

DAVINCI_DEVA_CORE="<path/to>/CLI/Core"
BSW_PACKAGE_ROOT="<path/to/SDK>/generator"
SRC_GEN_DIR="<dstpath/to/generated_sources>"
DAVINCI_PROJECT="<path/to/davinci_project>"
AMSR_GENERATOR_LIST="<comma separated list of amsr generators>"

"$DAVINCI_DEVA_CORE/DVACfgCmd" \
  -p $DAVINCI_PROJECT \
  --genDataDir $SRC_GEN_DIR \
  -bswPackageRootPath=$BSW_PACKAGE_ROOT \
  --generate \
  -m \"$AMSR_GENERATOR_LIST\"

exit 0