devroot-manual-arm64 manual

high

Image Types:
basesdk-amd64 / sdk-amd64
Image Deployment:
APT
Type:
functional

Description

Test cross-compilation support for ARM64 architecture using devroot utility


Pre Conditions

  1. Download the arm64 devroot os pack for the respective image version that your testing

Execution Steps

  1. Download the ARM64 devroot OSpack for the respective image version that your testing:
  2. For example, if you want to build for ARM64 with the v2021.0 release, then you can download the OSpack as follows:
  3. $ wget -O ${HOME}/devroot.tar.gz https://images.apertis.org/release/v2021/v2021.0/amd64/devroot/ospack_v2021-amd64-devroot_v2021.0.tar.gz
  4. Create a directory for the devroot-64 in the /opt folder
  5. $ sudo mkdir -p /opt/devroot-64
  6. Extract the downloaded devroot:
  7. $ sudo tar -xvf ${HOME}/devroot.tar.gz -C /opt/devroot-64
  8. Ensure the package list is up-to-date:
  9. $ sudo apt-get update
  10. Download the sources for dlt-daemon:
  11. $ apt-get source dlt-daemon
  12. Retrieve Build dependencies for dlt-daemon:
  13. $ sudo apt-get build-dep dlt-daemon
  14. Enter the devroot:
  15. $ sudo devroot-enter /opt/devroot-64 --bind=${HOME}/dlt-daemon-2.18.6
  16. Change the working directory to the dlt-daemon folder:
  17. $ cd dlt-daemon-64
  18. Build the dlt-daemon package:
  19. $ dpkg-buildpackage -b -uc
  20. The debian packages should be built for ARM64 architecture for dlt-daemon, check to see if these are created in the parent folder
  21. $ ls ../

Expected

The dlt-daemon can be built using the devroot