The Hello World Application can be renamed (for example from ves_vector_app_hello_world_example to ves_vector_app_my_example) by changing the short name of the build target in the build system (CMake executable) and the short name of the application itself at the same time.

Rename For Build System

To rename the short name of the application, you must ensure that the new short name is known to the build system. Choose one of two different ways to do so:

Rename Via Command (Terminal)

  1. Navigate to the local build cache directory of your application:
  2. cd "${AMSR_SRC_DIR}/Examples/amsr-vector-app-example-hello-world/build/gcc11_linux_x86_64"

  3. Set the HWSRC_APP_OUTPUT_NAME argument with the new build target short name:
  4. cmake -D HWSRC_APP_OUTPUT_NAME="ves_vector_app_my_example" .

Rename Via Files (Manual)

  1. Open the Examples/amsr-vector-app-example-hello-world/app/hello_world/CMakeLists.txt file.
  2. Change set(TARGET hwsrc_app) to set(TARGET ves_vector_app_my_example) in the file.
  3. Change all occurrences of hwsrc_app to ves_vector_app_my_example in all files of your application directory.

Rename For Application

The easiest and most recommended way to rename your application is by using DaVinci Developer Adaptive.

  1. Open DaVinci Developer Adaptive.
  2. Open the File menu in the menu bar.
  3. Select Open Projects from File System....
  4. The Import Projects from File System or Archive dialog opens.
  5. Click [Directory...] and browse to the amsr-vector-app-my-example directory.
  6. The chosen directory path is set as import source.
  7. Click [Finish].
  8. The chosen directory is imported as new project and displayed in the Project Explorer.
  9. Open the context menu (right click) of your project.
  10. Select Configure | Convert to DaVinci Adaptive Project....
  11. The Convert to DaVinci Adaptive Project... dialog opens.
  12. Set the value of the Model field of the Project Folders settings to model.
  13. Choose User Application as Project Use Case.
  14. Click [Next] and [Finish].
  15. Open the AUTOSAR Model Explorer for your project.
  16. Navigate to the ves_vector_app_hello_word_example executable in the AUTOSAR model.
  17. Change the executable name in the name field to ves_vector_app_my_example.
  18. Save your changes.
  1. Your application is renamed.