Create the Debian Packages from the PDK

generate_debian.py creates a Debian package from the copytarget-package-name.yaml.

  1. Get an nvidia-driveos-<DRIVEOS_RELEASE>-copytarget.deb and install it:
    sudo dpkg --install nvidia-driveos-<DRIVEOS_RELEASE>-copytarget.deb
  2. Create a directory where the Debian package are created. Use an environment variable to hold that directory.
    $DEB_OUTDIR=/home/user/debians/pdk_generated_debians/ (as an example)
  3. Run ./generate_debian.py with these required parameters:
    • --package pkg-name

      pkg-name is one out of ("configs", "firmware", "headers", "kernel-modules", "libraries", "others", "samples", "security", "setup-rootfs", "tools")

    • --copytarget_path /home/user/scripts/copytarget.py

      Path to where nvidia-driveos-<DRIVEOS_RELEASE>-copytarget.deb installs copytarget.py.

    • --python_path ${P4ROOT}"/sw/embedded/external-prebuilt/python/351/bin/python3"

      Absolute path to the python3 binary.

    • --debian_path $DEB_OUTDIR

      Location where the Debian package is created.

    • --yaml_path /drive-linux/filesystem/copytarget/manifest/

      The absolute path, not including the filename.

    • --version "5.2.3.0-1"

      The version must be the DRIVE OS release, and is used for all dependency and package names.

Optional parameter: --verbose[0|1]