UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 57311

SDK 14.6 - How can I compile a single file in an SDK application regardless of any modification

Description

I have a source file in my application that needs to be compiled all the time regardless of any modifications.

How can I achive this?

Solution

Since the tools use a Makefile, only files that have updated timestamps will be compiled. This Makefile is also automatically generated by the tools by default.

So, we can modify the Makefile. However, we first need to un-select the automatically generate Makefile option first. To do this, right click on the BSP and select C/C++ Build Settings. In the GUI, un-check the Generate Makefiles automatically box as shown below:

 

Next, we shall Modify the Makefile. The Makefile can be found under the BSP -> Debug:

In this example, I want to compile helloworld.c every time I build regardless of any modification to the file. To do this, add the line highlighted below and save.


Now, every time the application is built, helloworld.c will be compiled regardless of any change to the source file.

AR# 57311
Date Created 08/30/2013
Last Updated 08/30/2013
Status Active
Type General Article
Tools
  • EDK - 14.6
  • Vivado Design Suite - 2012.4