AR# 68446

|

2016.4 PetaLinux: Migrating Kernel configs from 2016.3 PetaLinux project to 2016.4 PetaLinux Yocto based project

描述

How do I migrate 2016.3 PetaLinux project kernel configs to a 2016.4 PetaLinux project?

解决方案

1) To change the defconfig:

  1. Copy the defconfig file into your layer's "<2016.4-petalinux-project>/project-spec/meta-user/recipes-kernel/linux/files/" directory (If the directory is not present, please create the directory).
  2. Rename the file to "defconfig.cfg".
  3. Add the following lines to your layer's bbappend file:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = "  file://defconfig"

2) For incremental changes to the Linux kernel .config file:

  1. Specify configuration fragment in the your layer's bbappend file as follows.
  2. Copy the fragment files to your layer's "<2016.4-petalinux-project>/project-spec/meta-user/recipes-kernel/linux/files/" directory (If the directory is not present please create the directory).     
  3. Add the following lines to your layer's bbappend file (if fragment1.cfg and fragment2.cfg are your fragment files.)

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = "  file://fragment1.cfg \
                                          file://fragment2.cfg \
                                      "

3) If you have a final Linux kernel .config file you want to use:

  1. Copy the .config file into your layer's "<2016.4-petalinux-project>/project-spec/meta-user/recipes-kernel/linux/files/" directory (If the directory is not present please create the directory).
  2. Rename the file to "defconfig.cfg". 
  3. Add the following lines to the .bbappend file in your layer:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = "   file://defconfig"

 

Note: The SRC_URI tells the build system how to search for the file. 

The FILESEXTRAPATHS extends the FILESPATH variable (search directories) to include the files directory created for the configuration changes.

AR# 68446
日期 05/18/2018
状态 Active
Type 综合文章
器件
Tools
Boards & Kits
People Also Viewed