Difference between revisions of "Configuring EMAC OE 4.0 SDK"

From wiki.emacinc.com
Jump to: navigation, search
(Created page with "When Eclipse generates a Makefile to use for building a project, the generated Makefile includes a file named global.properties before it performs any other steps. This file i...")
 
Line 1: Line 1:
 
When Eclipse generates a Makefile to use for building a project, the generated Makefile includes a file named global.properties before it performs any other steps. This file is located in the projects directory, which is the root directory for Eclipse projects. The projects directory is located within the EMAC SDK directory provided by the EMAC SDK package (or installed on the LDC).  
 
When Eclipse generates a Makefile to use for building a project, the generated Makefile includes a file named global.properties before it performs any other steps. This file is located in the projects directory, which is the root directory for Eclipse projects. The projects directory is located within the EMAC SDK directory provided by the EMAC SDK package (or installed on the LDC).  
  
The <code>global.properties>/code> file provides information needed to build projects and upload them to the target machine (the board supplied by EMAC). The following information is provided by this file:  
+
The <code>global.properties</code> file provides information needed to build projects and upload them to the target machine (the board supplied by EMAC). The following information is provided by this file:  
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 7: Line 7:
 
! Configuration variable !! Description  
 
! Configuration variable !! Description  
 
|-
 
|-
| <code>SDKBASE</code> || The base directory for the SDK  
+
| <code>SDKBASE</code> || The base directory for the SDK .
 
|-
 
|-
| <code>CC</code>, <code>CXX</code> || Exectuable binaries to use for compiling
+
| <code>CC</code>, <code>CXX</code> || Exectuable binaries to use for compiling for the C and C++ compiler, respectively.
 +
|-
 +
| <code>LD_LIBRARY_PATH</code> || The path the linker should use to search for shared library files.
 +
|-
 +
| <code>CFLAGS</code> || The flags passed to the compiler to specify target processor architecture, debugging flags, etc.
 +
|-
 +
| <code>OFLAGS</code> || The flags passed to the compiler to specify optimization options to use.
 +
|-
 +
| <code>TARGET_IP</code> || The IP Address of the target machine (needed for uploading the compiled binary to the target machine).
 +
|-
 +
| <code>LOGIN</code> || The user name to use for logging into the target machine.
 +
|-
 +
| <code>PASSWORD</code> || The password to use for logging into the target machine.*
 +
|-
 +
| <code>WPUT</code> ||  The location of the <code>wput</code> command, along with options to pass to <code>wput</code>.
 
|}
 
|}
 +
 +
* '''NOTE''' The password is stored in plain text in this file. However, read permission is required to view this password. In most development environments, this should not be an issue. If development is taking place in a shared environment (such as a University lab) and secrecy of this password is required, simply ensure that only trusted users have read permission for this file.
 +
 +
{{mbox | type = warning | text = Configuring permissions on files is a common source of problems for people new to doing so under Linux. EMAC does not recommend altering the default settings (which should be secure in most environments) unless absolutely necessary. EMAC will only be able to provide very limited support should these settings be manually configured. The standard Linux commands, chmod, chgrp, and chown are typically used to configure these permissions. Please see the documentation for these commands using the man command, or find a reference with your favorite search engine. Caveat: This will require any user wishing to build this software to have such permission, since programs run by a user can only read files the user is permitted to use.}}

Revision as of 15:34, 7 May 2013

When Eclipse generates a Makefile to use for building a project, the generated Makefile includes a file named global.properties before it performs any other steps. This file is located in the projects directory, which is the root directory for Eclipse projects. The projects directory is located within the EMAC SDK directory provided by the EMAC SDK package (or installed on the LDC).

The global.properties file provides information needed to build projects and upload them to the target machine (the board supplied by EMAC). The following information is provided by this file:

Configuration variable Description
SDKBASE The base directory for the SDK .
CC, CXX Exectuable binaries to use for compiling for the C and C++ compiler, respectively.
LD_LIBRARY_PATH The path the linker should use to search for shared library files.
CFLAGS The flags passed to the compiler to specify target processor architecture, debugging flags, etc.
OFLAGS The flags passed to the compiler to specify optimization options to use.
TARGET_IP The IP Address of the target machine (needed for uploading the compiled binary to the target machine).
LOGIN The user name to use for logging into the target machine.
PASSWORD The password to use for logging into the target machine.*
WPUT The location of the wput command, along with options to pass to wput.
  • NOTE The password is stored in plain text in this file. However, read permission is required to view this password. In most development environments, this should not be an issue. If development is taking place in a shared environment (such as a University lab) and secrecy of this password is required, simply ensure that only trusted users have read permission for this file.