cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
416 Views
Registered: ‎11-10-2017

Multiple HDF for single Petalinux build

Hello , 

I have a application program that I need to build for two different boards. one is a SDR board and another is a ultrazed board. While the application is same for both the boards, I need to create separate builds for each of them. Is there any way I can include mulitple HDF files in petalinux build and in my code specify to check which board the code is working for ? Is there any way to also include some global variables during the build which I can use to check if the HDF/board used is of a particular type or not just like building an application which runs on windows and linux both by specifying "ifdef win32" pre-processor statements.

Please also let me know if there can be an alternate method to achieve this task. 

0 Kudos
2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
334 Views
Registered: ‎04-15-2011

@vish.bh30 

I think it is not recommended to build multiple HDF at a time.

We always reommend one HDF for one Petalinux project.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Adventurer
Adventurer
315 Views
Registered: ‎11-10-2017

Ok, so if i have two different IP blocks in my Vivado, is there a way i can choose between them which to select at runtime ?

0 Kudos