cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
noel.aye
Visitor
Visitor
2,227 Views
Registered: ‎02-26-2018

bitbake recipe modification for fsbl build

When I build fsbl, I've got "warning: "XPS_BOARD_ZCU102" redefined"; I wanted to clear this warning.

When I looked around the source tree, I have found the following recipe file containing this variable:

xilinx-zcu102-zu9-es2-rev1.0-2017.2/project-spec/meta-user/recipes-bsp/fsbl/fsbl_%.bbappend

that has the following:

YAML_COMPILER_FLAGS_append = " -DXPS_BOARD_ZCU102"

After removing this line, I've recompiled but the above warning did not disappear either.

So, I've searched in the PetaLinux toolchain (v2017.2.1) and I have found the following file:

Petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/fsbl/fsbl_git.bb

and inside was

YAML_COMPILER_FLAGS_append_zcu102-zynqmp = " -DXPS_BOARD_ZCU102"

and commented it out again. But, the warning still did not disappear.

My questions now are:

is this the right approach for my objective, i.e. to clear the warning?

am I missing some other recipe files to modify?

0 Kudos
5 Replies
shabbirk
Moderator
Moderator
2,201 Views
Registered: ‎12-04-2016

Hi

 

This is not the right place to modify the changes:-

Petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/fsbl/fsbl_git.bb

 

You could try something like this to remove this support (Try adding local.conf)

YAML_COMPILER_FLAGS_remove = " -DXPS_BOARD_ZCU102"

 

 

 Best Regards

Shabbir

 

0 Kudos
vineethc
Xilinx Employee
Xilinx Employee
2,186 Views
Registered: ‎06-29-2017

It is always good to use project-spec/meta-user/conf/petalinuxbsp.conf instead of local.conf

0 Kudos
noel.aye
Visitor
Visitor
2,181 Views
Registered: ‎02-26-2018

I have tried the suggestion but it did not remove the flag unfortunately.

Moreover, the ideal solution should be localized to the fsbl building only. If we apply at the local.conf, doesn't it affect the whole system?

0 Kudos
vineethc
Xilinx Employee
Xilinx Employee
2,162 Views
Registered: ‎06-29-2017

in the meta-user fsbl bbappend try this

 

replace append with remove

 

YAML_COMPILER_FLAGS_remove = " -DXPS_BOARD_ZCU102"

0 Kudos
noel.aye
Visitor
Visitor
2,141 Views
Registered: ‎02-26-2018

Thanks for all the responses -- one way or another they have enlightened me in different perspective into the yocto system of the petalinux.

So far I've managed to solved this problem just by removing the line

YAML_COMPILER_FLAGS_append = " -DXPS_BOARD_ZCU102"

from 

project-spec/meta-user/recipes-bsp/fsbl/fsbl_%.bbappend

But, this step alone is not sufficient for my case.

I need to to do the following two clean-up steps before my change (i.e. removal of XPS_BOARD_ZCU102) taking effect:

$ petalinux-build -x mrproper
$ rm -rf <plnx-proj-root>/components/plnx_workspace

The result was verified from  "build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_compile".

 

0 Kudos