Configuring Out-of-tree Build - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2023-10-18
Version
2023.2 English

Use the following steps to configure UBOOT/Kernel out-of-tree build.

  1. Change into the root directory of your PetaLinux project.
    cd <plnx-proj-root>
  2. Launch the top level system configuration menu.
    petalinux-config
  3. Select Linux Components Selection submenu.
    • For kernel, select linux-kernel () > remote.

      ( ) linux-xlnx

      (X) remote

      ( ) ext-local-src

    • For U-Boot, select u-boot () > remote.

      ( ) u-boot-xlnx

      (X) remote

      ( ) ext-local-src

  4. For kernel, select Remote linux-kernel settings > Remote linux-kernel git URL, and enter git URL for Linux kernel.

    For example, to use https://github.com/Xilinx/linux-xlnx, enter:

    git://github.com/Xilinx/linux-xlnx.git;protocol=https

    For U-Boot, select Remote U-Boot settings > Remote u-boot git URL and enter git URL for U-Boot. For example:

    git://github.com/Xilinx/u-boot-xlnx.git;protocol=https

    Once a remote git link is provided, you must provide any of the following values for "git TAG/Commit ID" selection, otherwise an error message is expected.

    Set any of the following values to this setting, otherwise an error message appears.

    • To point to HEAD of repository of the currently checked out branch:
      ${AUTOREV}
    • To point to any tag:
      tag/mytag
    • To point to any commit id:
      commit id sha key

      Once you select git Tag/Commit ID, you can see a prompt to enter a string value as shown in the following figure. Enter any of the previous set values.

  5. To specify BRANCH to kernel/u-boot/arm-trusted-firmware/plm/psm-firmware, select Remote settings (Optional).

    For example, to specify the master branch, type master as shown in the following figure:



  6. To specify LICENSE checksum to kernel/u-boot/arm-trusted-firmware/plm/psm-firmware, select Remote settings (Optional).

    For example, to specify file://license.rst;md5=e927e02bca647e14efd87e9e914b2443, enter the string value as shown in the following figure:



  7. Exit the menu, and save your settings.