Changeset 22039d5 in rtems-eclipse-plug-in


Ignore:
Timestamp:
Dec 3, 2008, 8:46:31 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
4c4442c
Parents:
d280296
Message:

Fixed issue with copied BSP installations.

Location:
org.rtems.cdt.toolchain2/org/rtems/cdt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • org.rtems.cdt.toolchain2/org/rtems/cdt/Activator.java

    rd280296 r22039d5  
    4848                        out = new BufferedWriter( new FileWriter( makefile.toFile()));
    4949                        out.write(
    50                                 "include $(RTEMS_MAKEFILE_PATH)/Makefile.inc\n"
     50                                "include $(" + Constants.BSP_PATH_MAKE_VARIABLE + ")/Makefile.inc\n"
    5151                                        + "include $(RTEMS_CUSTOM)\n"
    5252                                        + "include $(PROJECT_ROOT)/make/leaf.cfg\n"
  • org.rtems.cdt.toolchain2/org/rtems/cdt/Constants.java

    rd280296 r22039d5  
    1515public class Constants {
    1616        public static final String PATH_SEPERATOR = System.getProperty( "path.separator");
     17       
     18        public static final String BSP_PATH_MAKE_VARIABLE = "PROJECT_RELEASE";
    1719       
    1820        public static final String DEFAULT_BASE_PATH = "/opt/rtems-4.9";
  • org.rtems.cdt.toolchain2/org/rtems/cdt/Storage.java

    rd280296 r22039d5  
    1919import java.util.LinkedList;
    2020import java.util.List;
    21 import java.util.Map;
    2221
    2322import org.eclipse.core.resources.IProject;
     
    7978        public static void updateTools( IProject project) {
    8079                // Create make process builder
    81                 ProcessBuilder pb = new ProcessBuilder( "make");
    82 
    83                 // Provide RTEMS_MAKEFILE_PATH environment variable
    84                 Map<String, String> env = pb.environment();
    85                 env.put( "RTEMS_MAKEFILE_PATH", getProperty( project, Constants.BSP_PATH_KEY));
     80                ProcessBuilder pb = new ProcessBuilder(
     81                        "make",
     82                        Constants.BSP_PATH_MAKE_VARIABLE + "=" + getProperty( project, Constants.BSP_PATH_KEY)
     83                );
    8684               
    8785                // Change working directory to the Makefile location
Note: See TracChangeset for help on using the changeset viewer.