petalinux-config -c COMPONENT - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

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

The petalinux-config -c COMPONENT command allows you to use a standard menuconfig interface to control how the embedded Linux system is built, and also generates the source code for embedded software applications. When petalinux-config is executed with no other options, it launches the system-level or "generic" menuconfig. This interface allows you to specify the information, such as the desired boot device, or metadata about the system, such as the default hostname. The petalinux-config -c kernel, petalinux-config -c u-boot, and petalinux-config -c rootfs workflows launch the menuconfig interfaces for customizing the Linux kernel, U-Boot, and the root file system, respectively.

The --silentconfig option allows you to restore a prior configuration.

Example:

Execute the following command after enabling or disabling different configs by editing <proj-root>/project-spec/configs/rootfs_config

petalinux-config -c rootfs --silentconfig

Use this command to use the existing configurations without editing. In this case, the menuconfig is not launched.