Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

2.2.1.1. Modifying a Makefile with Eclipse Source Management

Table 2.  GUI Actions that Modify an Application or Makefile with Eclipse Source Management
Modification Where Modified
Specifying the application or user library name Nios II Application Properties or Nios II Library Properties dialog box.
Adding or removing source files For more information, refer to the Eclipse help system.
Specifying a path to an associated BSP Project References dialog box.
Specifying a path to an associated user library Project References dialog box.
Enabling, disabling or modifying compiler options Nios II Application Properties or Nios II Library Properties dialog box.

After the SBT has created a makefile, you can modify the makefile in the following ways:

  • With the Nios II SBT for Eclipse.
  • With Nios II SBT commands from the Nios II Command Shell.

When modifying a makefile, the SBT preserves any previous nonconflicting modifications, regardless how those modifications were made.

After you modify a makefile with the Nios II Command Shell, in Eclipse you must right-click the project and click Update linked resource to keep the Eclipse project view in step with the makefile.

When the Nios II SBT for Eclipse modifies a makefile, it locks the makefile to prevent corruption by other processes. You cannot edit the makefile from the command line until the SBT has removed the lock.

If you want to exclude a resource (a file or a folder) from the Nios II makefile temporarily, without deleting it from the project, you can use the Remove from Nios II Build command. Right-click the resource and click Remove from Nios II Build. When a resource is excluded from the build, it does not appear in the makefile, and Eclipse ignores it. However, it is still visible in the Project Explorer, with a modified icon. To add the resource back into the build, right-click the resource and click Add to Nios II Build.

Note: Do not use the Eclipse Exclude from build command. With Nios II software projects, you must use the Remove from Nios II Build and Add to Nios II Build commands instead.