Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12604 Discussions

How can i add "touch" directive to nios2 makefile, in order to update __TIME__ and __DATE__ macros, using project properties window?

aponc1
Beginner
1,099 Views

I'm trying to get __TIME__ and __DATE__ macros updated when i build my nios2 project, instead of changing or not a file (named this_file.c) date and/or time.

 

I read using "touch" directive (like "touch this_file.c") in makefile makes this work, but i want to modify my makefile using project properties of IDE Eclipse, instead of editing it by myself.

 

I will be very thanful for your help.

 

 

0 Kudos
1 Reply
Ahmed_H_Intel1
Employee
374 Views

You can access the makefile in the Eclipse Project Explorer view after you have created your project in the Nios II Software Build Tools for Eclipse framework. The software project is flexible: you can regenerate it if the system hardware changes, or modify it to add or remove functionality, or tune it for your particular system. You can also modify the BSP library file to include additional Intel-supplied software packages. But if you change the hardware system, you must recreate, update or regenerate the BSP project to keep the library header files up-to-date.

 

You can set makefile variables with the --set command-line option during configuration of the application project. The variables you can set include the pre- and post-processing settings BUILD_PRE_PROCESS and BUILD_POST_PROCESS to specify commands to be executed before and after building the application. Examine a generated application makefile to ensure you understand the current and default settings.

 

Please refer to this document (https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/edh_ed_handbook.pdf) Chapter (4.2.2.4.5)

Reply