Services and Modeling for Embedded Software Development
Embecosm divider strip
Prev  Next

7.2.1.  Adding Machine Specific Options for Newlib

Machine specific options are described in the target.opt file. By convention machine specific options begin with 'm'.

For the OpenRISC 1000  we define two options, -mor32-newlib and -mor32-newlib-uart for the plain and UART enabled versions of the BSP respectively.

For each option we provide its name on one line, any parameters on subsequent lines and a final line of description. In this case the only parameter is to say that the parameter can only appear in its positive form (i.e. --mno-or32-newlib is not permitted).

mor32-newlib
Target RejectNegative
Link with the OR32 newlib library

mor32-newlib-uart
Target RejectNegative
Link with the OR32 newlib UART library
	  

These parameters can then be used elsewhere.

Embecosm divider strip