summaryrefslogtreecommitdiffstats
path: root/org.rtems.cdt.toolchain2/org/rtems/cdt/Constants.java
blob: f18093b68733beb5216aacf1a8154a010a2d1826 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
 * Copyright (c) 2008
 * Embedded Brains GmbH
 * Obere Lagerstr. 30
 * D-82178 Puchheim
 * Germany
 * rtems@embedded-brains.de
 *
 * The license and distribution terms for this file may be found in the file
 * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
 */

package org.rtems.cdt;

public class Constants {
	public static final String [][] TARGETS = {
		{"ARM", "arm"},
		{"AVR", "avr"},
		{"Blackfin", "bfin"},
		{"Hitachi H8300", "h8300"},
		{"Intel i386", "i386"},
		{"Intel i686", "i686"},
		{"MIPS", "mips"},
		{"Motorola 68k or Freescale ColdFire", "m68k"},
		{"PowerPC", "powerpc"},
		{"SPARC", "sparc"},
		{"SuperH", "sh"}
	};

	public static final String PATH_SEPERATOR = System.getProperty( "path.separator");
	
	public static final String DEFAULT_BASE_PATH = "/opt/rtems-4.9";
	
	public static final String DEFAULT_VERSION = "4.9";
	
	public static final int DEFAULT_TARGET_INDEX = 8;
	
	public static final String DEFAULT_TARGET_NAME = TARGETS [DEFAULT_TARGET_INDEX][0];
	
	public static final String DEFAULT_TARGET = TARGETS [DEFAULT_TARGET_INDEX][1];
	
	public static final String DEFAULT_BSP_PATH = "/opt/rtems-4.9/powerpc-rtems4.9/psim";

	public static final String KEY_PREFIX = "org.rtems.cdt.key";
	
	public static final String BASE_PATH_KEY = KEY_PREFIX + ".basePath";
	
	public static final String VERSION_KEY = KEY_PREFIX + ".version";
	
	public static final String TARGET_KEY = KEY_PREFIX + ".target";
	
	public static final String BSP_PATH_KEY = KEY_PREFIX + ".bspPath";

	public static final String TOOL_KEY_PREFIX = KEY_PREFIX + ".tool";
	
	public static final String TOOL_ARCHIVER_KEY = TOOL_KEY_PREFIX + ".archiver";
	
	public static final String TOOL_ASSEMBLER_KEY = TOOL_KEY_PREFIX + ".assembler";
	
	public static final String TOOL_COMPILER_C_KEY = TOOL_KEY_PREFIX + ".compiler.c";
	
	public static final String TOOL_COMPILER_CPP_KEY = TOOL_KEY_PREFIX + ".compiler.cpp";
	
	public static final String TOOL_LINKER_C_KEY = TOOL_KEY_PREFIX + ".linker.c";
	
	public static final String TOOL_LINKER_CPP_KEY = TOOL_KEY_PREFIX + ".linker.cpp";
	
	public static final String TOOL_OPTIONS_KEY_POSTFIX = ".options";
	
	public static final String TOOL_OPTIONS_ARCHIVER_KEY = TOOL_ARCHIVER_KEY + TOOL_OPTIONS_KEY_POSTFIX;
	
	public static final String TOOL_OPTIONS_ASSEMBLER_KEY = TOOL_ASSEMBLER_KEY + TOOL_OPTIONS_KEY_POSTFIX;
	
	public static final String TOOL_OPTIONS_COMPILER_C_KEY = TOOL_COMPILER_C_KEY + TOOL_OPTIONS_KEY_POSTFIX;
	
	public static final String TOOL_OPTIONS_COMPILER_CPP_KEY = TOOL_COMPILER_CPP_KEY + TOOL_OPTIONS_KEY_POSTFIX;
	
	public static final String TOOL_OPTIONS_LINKER_C_KEY = TOOL_LINKER_C_KEY + TOOL_OPTIONS_KEY_POSTFIX;
	
	public static final String TOOL_OPTIONS_LINKER_CPP_KEY = TOOL_LINKER_CPP_KEY + TOOL_OPTIONS_KEY_POSTFIX;
	
	private Constants() {
		// Do nothing
	}
}